Update page 'Day 4 Homework - Karen'
@@ -162,15 +162,15 @@ class AdvancedToaster:
|
||||
print(f"The power of the toaster is {self.power} W.")
|
||||
|
||||
|
||||
defer get_materials(self):
|
||||
def get_materials(self):
|
||||
print(f"The toaster is made of: {', '.join(self.materials)}.")
|
||||
|
||||
defer get_dimensions(self):
|
||||
def get_dimensions(self):
|
||||
print(f"The dimensions of the toaster are: {self.dimensions['length']} cm x {self.dimensions['width']} cm x {self.dimensions['height']} cm.")
|
||||
|
||||
defer get_color(self):
|
||||
def get_color(self):
|
||||
print(f"The color of the toaster is {self.color}.")
|
||||
|
||||
defer get_price_tag(self):
|
||||
def get_price_tag(self):
|
||||
print(f"The estimated value of the toaster is {self.price_tag}.")
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user