Exemplo n.º 1
0
    Fan.set_speed(blue_fan, 'medium')
elif ask_speed == 3:
    Fan.set_speed(blue_fan, 'fast')
else:
    print("You suck at life.")

ask_on_or_off = input("Is the fan on or off?\n" "1 - True\n2 - False\n")

if ask_on_or_off == 1:
    Fan.set_on(blue_fan, True)
elif ask_on_or_off == 2:
    Fan.set_on(blue_fan, False)
else:
    print("(-__-)")

ask_radius = input("What is the radius of the fan?\n"
                   "1 - 1 foot\n2 - 1.25 foot\n3 - 1.5 foot\n")

if ask_radius == 1:
    Fan.set_radius(blue_fan, 1.0)
elif ask_radius == 2:
    Fan.set_radius(blue_fan, 1.25)
elif ask_radius == 3:
    Fan.set_radius(blue_fan, 1.5)
else:
    print("No. Just no.")

print("Your {} fan has a {} foot radius, it's set to {}, and it's turned {}.".
      format(Fan.get_color(blue_fan), Fan.get_radius(blue_fan),
             Fan.get_speed(blue_fan), Fan.get_on(blue_fan)))