Ejemplo n.º 1
0
from lab_python_oop.Rectangle import Rect
from lab_python_oop.Squar import Squar
from lab_python_oop.Circle import Circle

if __name__ == "__main__":
    myrect = Rect(2,3, "Blue")
    mysquere = Squar(5, "Red")
    mycircle = Circle(5, "Green")

    print(myrect.repr())
    print(mysquere.repr())
    print(mycircle.repr())
Ejemplo n.º 2
0
Archivo: main.py Proyecto: vikks15/IAD
from lab_python_oop.Rectangle import Rectangle
from lab_python_oop.Circle import Circle
from lab_python_oop.Square import Square

if __name__ == "__main__":
    rect = Rectangle(3, 2, "синий")
    rect.repr()

    circle = Circle(5, "зеленый")
    circle.repr()

    square = Square(5, "красный")
    square.repr()