Musical Bingo
Landscape-White-Text-e1737635639309
Musical Bingo
Landscape-White-Text-e1737635639309

Codehs Python 3.5.9 Recipe [hot]

The first step is gathering data. You will use the input function to ask the user for the number of servings. Remember that the input function always returns a string. Since you cannot perform math on a string, you must wrap that input in an int() or float() function to convert it into a number. Without this conversion, your program will crash the moment it tries to multiply.

def make_sandwich(bread="wheat", *toppings, **extras): print(f"Bread: bread") print(f"Toppings: toppings") print(f"Extras: extras") codehs python 3.5.9 recipe