Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- stair = ("#")
- empty = (" ")
- num_of_steps = int(sys.argv[1])
- start = 1
- num_of_steps = num_of_steps - 2
- while num_of_steps > -1 :
- print ((empty*num_of_steps),(stair*start))
- num_of_steps -= 1;
- start += 1;
- else:
- print((stair)*(start))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement