Advertisement
Guest User

Untitled

a guest
Jul 15th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. import sys
  2.  
  3. stair = ("#")
  4. empty = (" ")
  5. num_of_steps = int(sys.argv[1])
  6.  
  7. start = 1
  8. num_of_steps = num_of_steps - 2
  9. while num_of_steps > -1 :
  10. print ((empty*num_of_steps),(stair*start))
  11. num_of_steps -= 1;
  12. start += 1;
  13. else:
  14. print((stair)*(start))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement