fixes naming convention violations
This commit is contained in:
parent
5e1474d5a5
commit
72a11782d5
1 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ from italianfood.dough import PizzaDough
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import time
|
import time
|
||||||
pizzaName='Hello pizza'
|
pizzaName='Hello pizza'
|
||||||
class pizza:
|
class Pizza:
|
||||||
dough: PizzaDough
|
dough: PizzaDough
|
||||||
num_pizzas:int=1
|
num_pizzas:int=1
|
||||||
is_ready: bool = False
|
is_ready: bool = False
|
||||||
|
@ -19,7 +19,7 @@ class pizza:
|
||||||
self.num_pizzas = num_pizza_balls
|
self.num_pizzas = num_pizza_balls
|
||||||
self.dough = dough
|
self.dough = dough
|
||||||
self.make_pizza_balls()
|
self.make_pizza_balls()
|
||||||
def Make_pizza_balls(self):
|
def make_pizza_balls(self):
|
||||||
self.weight_per_pizza_ball = self.dough.total_weight / self.num_pizzas
|
self.weight_per_pizza_ball = self.dough.total_weight / self.num_pizzas
|
||||||
print(f"Each Pizza will be made out of {self.weight_per_pizza_ball} g dough.\n...")
|
print(f"Each Pizza will be made out of {self.weight_per_pizza_ball} g dough.\n...")
|
||||||
print("Now imagine expert pizza tossing skills!\n...")
|
print("Now imagine expert pizza tossing skills!\n...")
|
||||||
|
@ -27,7 +27,7 @@ class pizza:
|
||||||
|
|
||||||
|
|
||||||
return self
|
return self
|
||||||
def ADD_TOPPINGS(self, toppings):
|
def add_toppings(self, toppings):
|
||||||
self.toppings = toppings
|
self.toppings = toppings
|
||||||
print(f"Adding {self.toppings} to pizza(s).\n...")
|
print(f"Adding {self.toppings} to pizza(s).\n...")
|
||||||
return self
|
return self
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue