Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 10 is the total number to print
- for num in range(10):
- for i in range(num):
- print (num, end=" ") #print number
- # new line after each row to display pattern correctly
- print("\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement