Python Pyramid Pattern Programs - Star Pattern

Publicado em: 18 Novembro 2019
no 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).


Nesta página do site você pode assistir ao vídeo on-line Python Pyramid Pattern Programs - Star Pattern duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário CodeWithAbhishek 18 Novembro 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 3,549 vezes e gostou 98 espectadores. Boa visualização!