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(40):
- for y in range(40):
- if x == self.x and y == self.y:
- print("*")
- else:
- print(" ")
- a = Figura(1, 8)
- a.draw()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement