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).
On this page of the site you can watch the video online Python Pyramid Pattern Programs - Star Pattern with a duration of hours minute second in good quality, which was uploaded by the user CodeWithAbhishek 18 November 2019, share the link with friends and acquaintances, this video has already been watched 3,549 times on youtube and it was liked by 98 viewers. Enjoy your viewing!