In this video you learn how to write code of pyramidal pattern in python Programming
Pattern 4
*
*
code:
num = int(input("Enter the number of rows "))
for i in range(0,num):
for j in range(0,num-i-1):
print(end=" ")
for j in range(0,i+1):
print("*",end=" ")
print()
pattern 5
*
* *
code:
num = int(input("Enter the number of rows "))
for i in range(0,num):
for j in range(0,num-i-1):
print(end=" ")
for j in range(0,2*i+1):
print("*",end=" ")
print()
On this page of the site you can watch the video online Python Programming - Triangular or Pyramidal shape star Pattern Program with a duration of hours minute second in good quality, which was uploaded by the user Coding Cup 29 June 2020, share the link with friends and acquaintances, this video has already been watched 49 times on youtube and it was liked by 4 viewers. Enjoy your viewing!