title
tile
adding .lower() to something will make it lower case. in an input, it can make the input lowercase so it matches the code written.
t = input()
print("normal input is " + t)
print("input with .lower is " + t.lower())
menu = {"burger": 3.99,
"fries": 1.99,
"drink": 0.99}
total = 0
#shows the user the menu and prompts them to select an item
print("Menu")
for k,v in menu.items():
print(k + " $" + str(v)) #why does v have "str" in front of it?
#ideally the code should prompt the user multiple times
def function():
global total
item = input("Please select an item from the menu")
if item.lower() == "done":
print(total)
else:
for k,v in menu.items():
if item.lower() == k:
if k == "fries":
print("You ordered fries.")
else:
print("You ordered a " + k + ".")
total += v
function()
function()
print(total)
#code should add the price of the menu items selected by the user
menu = {"burger": 3.99,
"fries": 1.99,
"drink": 0.99}
menu.items()
x = 2
def function():
global x
x += 2
function()
print(x)