Advertisement
Guest User

[PYTHON] star * pyramid

a guest
Nov 18th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. # 10 is the total number to print
  2. for num in range(10):
  3.     for i in range(num):
  4.         print (num, end=" ") #print number
  5.     # new line after each row to display pattern correctly
  6.     print("\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement