Guest User

mariohacker

a guest
Jun 30th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. hash = 2
  2. counter = 1
  3. height = raw_input("Enter the height of your mario wall (1-23): ")
  4. row = int(height) - 1
  5. if height <= 0:
  6. print "Please enter a height greater than zero."
  7. if height > 23:
  8. print "Please enter a height of 23 or less."
  9. while counter < int(height):
  10. print " " * row, \
  11. "#" * hash, \
  12. " ", \
  13. "#" * hash, \
  14. " " * row
  15. hash += 1
  16. counter += 1
  17. row -= 1
Add Comment
Please, Sign In to add comment