Advertisement
Guest User

Untitled

a guest
Nov 18th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. sym = '^'
  2. weigh = int(input('ENTER weigh '))
  3. heigh = int(input('ENTER heigh '))
  4.  
  5. def build_step(weigh,heigh, sym):
  6. step = []
  7. step.append(print(sym * weigh))
  8. for i in range(1, heigh):
  9. step.append(print(' ' * (weigh - 1) + sym))
  10. return step
  11.  
  12. #print(build_step(weigh,heigh, sym))
  13.  
  14.  
  15. def move_figure(figure, move):
  16. moved = []
  17. for line in figure:
  18. moved.append((' ' * move) + line)
  19. return move_figure
  20.  
  21. def print_figure():
  22. for line in figure:
  23. print(line)
  24.  
  25.  
  26. step = build_step (weigh, heigh, sym)
  27. moved = move_figure(step, 2)
  28. print_figure(move_figure)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement