Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sym = '^'
- weigh = int(input('ENTER weigh '))
- heigh = int(input('ENTER heigh '))
- def build_step(weigh,heigh, sym):
- step = []
- step.append(print(sym * weigh))
- for i in range(1, heigh):
- step.append(print(' ' * (weigh - 1) + sym))
- return step
- #print(build_step(weigh,heigh, sym))
- def move_figure(figure, move):
- moved = []
- for line in figure:
- moved.append((' ' * move) + line)
- return move_figure
- def print_figure():
- for line in figure:
- print(line)
- step = build_step (weigh, heigh, sym)
- moved = move_figure(step, 2)
- print_figure(move_figure)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement