class Dog(): def __init__( self ): self .age = 0 self .name = "" self .weight = 0 |
class Person(): def __init__( self ): self .name = "" self .cell_phone = "" self .email = "" |
my_bird = Bird() my_bird.color = "green" my_bird.name = "Sunny" my_bird.breed = "Sun Conure" |
class Person(): def __init__( self ): self .name = "" self .money = 0 nancy = Person() name = "Nancy" money = 100 |
class Person(): def __init__( self ): self .name = "" self .money = 0 bob = Person() print (bob.name, "has" , money, "euros." ) |