Exemple #1
0
def main():
    t_rex = dinosaur('T-Rex')
    velociraptor = dinosaur('Velociraptor')
    t_rex.stomp()
    t_rex.roar()
    velociraptor.walk()
    velociraptor.mealTime()
    t_rex.lookAtSky()
Exemple #2
0
def main():
    new_day = weather()
    new_day.random_weather()
    new_day.weatherman()

    t_rex=dinosaur('t-rex')
    velociraptor=dinosaur('velociraptor')

    t_rex.react(new_day)
    t_rex.roar()

    velociraptor.react(new_day)
    velociraptor.roar()