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).
На этой странице сайта вы можете посмотреть видео онлайн Python Pyramid Pattern Programs - Star Pattern длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь CodeWithAbhishek 18 Ноябрь 2019, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 3,549 раз и оно понравилось 98 зрителям. Приятного просмотра!