Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Figura:
- def __init__(self, x, y):
- self.x, self.y = x, y
- def draw(self):
- for x in range(20, -21, -1):
- for y in range(-20, 21):
- if y == self.x and x == self.y:
- print("*", end ="")
- elif x == 0 and y == 0:
- print("+", end="")
- elif x == 0:
- print("—", end ="")
- elif y == 0:
- print("|", end ="")
- else:
- print(" ", end ="")
- print()
- a = Figura(-1, -8)
- a.draw()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement