Advertisement
ForestFox

Figura

Feb 8th, 2022
561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. class Figura:
  2.     def __init__(self, x, y):
  3.         self.x, self.y = x, y
  4.     def draw(self):
  5.         for x in range(40):
  6.             for y in range(40):
  7.                 if x == self.x and y == self.y:
  8.                     print("*")
  9.                 else:
  10.                     print(" ")
  11. a = Figura(1, 8)
  12. a.draw()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement