Update page 'Day 4 Homework - Karen'
@@ -52,6 +52,7 @@ class AdvancedToaster:
|
|||||||
|
|
||||||
def get_uses(self):
|
def get_uses(self):
|
||||||
return {
|
return {
|
||||||
|
# use of the toaster
|
||||||
'turn_on': "Turn on the toaster.",
|
'turn_on': "Turn on the toaster.",
|
||||||
'turn_off': "Turn off the toaster.",
|
'turn_off': "Turn off the toaster.",
|
||||||
'insert_bread': "Insert bread into the toaster.",
|
'insert_bread': "Insert bread into the toaster.",
|
||||||
@@ -62,6 +63,7 @@ class AdvancedToaster:
|
|||||||
'remove_bread': "Remove a slice of bread from the toaster.",
|
'remove_bread': "Remove a slice of bread from the toaster.",
|
||||||
'toast': "Toast the bread in the toaster.",
|
'toast': "Toast the bread in the toaster.",
|
||||||
'empty_crumb_tray': "Empty the crumb tray.",
|
'empty_crumb_tray': "Empty the crumb tray.",
|
||||||
|
# characteristics of the toaster
|
||||||
'weigh': "Weigh the toaster.",
|
'weigh': "Weigh the toaster.",
|
||||||
'measure_voltage': "Measure the voltage of the toaster.",
|
'measure_voltage': "Measure the voltage of the toaster.",
|
||||||
'measure_power': "Measure the power of the toaster.",
|
'measure_power': "Measure the power of the toaster.",
|
||||||
@@ -74,6 +76,7 @@ class AdvancedToaster:
|
|||||||
def start(self):
|
def start(self):
|
||||||
print("Toaster started.")
|
print("Toaster started.")
|
||||||
|
|
||||||
|
# temperature check
|
||||||
def set_temperature(self, temperature):
|
def set_temperature(self, temperature):
|
||||||
self.temperature = temperature
|
self.temperature = temperature
|
||||||
print(f"Toaster temperature set to {temperature} degrees Celsius.")
|
print(f"Toaster temperature set to {temperature} degrees Celsius.")
|
||||||
|
|||||||
Reference in New Issue
Block a user