Advertisement
Spocoman

04. Triangle of Dollars

Jan 2nd, 2022
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. num = int(input())
  2. for i in range(1, num + 1):
  3.     output = ''
  4.     for j in range(i):
  5.         output += '$' + ' '
  6.     print(output)
  7.  
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement