Python Pyramid Pattern Programs - Star Pattern

Publicado el: 18 noviembre 2019
en el canal de: CodeWithAbhishek
3,549
98

Python Pyramid Pattern Programs - Star Pattern
In this video we will see the beauty of Python, printing patterns in single loop.

You can also write the below code for the above star pyramid pattern.

n=int(input("Enter The Number Of Rows: "))
for i in range(1,n+1):
print((n-i)*" "+" ".join(i*"*"))

The join() is a string method which returns a string concated with the element of an iterables(such as list,string and tuple).


En esta página del sitio puede ver el video en línea Python Pyramid Pattern Programs - Star Pattern de Duración hora minuto segunda en buena calidad , que subió el usuario CodeWithAbhishek 18 noviembre 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 3,549 veces y le gustó 98 a los espectadores. Disfruta viendo!