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())
normal input is Hello
input with .lower is hello
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
You ordered a burger.
You ordered a burger.
You ordered a burger.
You ordered fries.
You ordered a drink.
You ordered a drink.
You ordered fries.
You ordered a drink.
You ordered a burger.
22.909999999999997
22.909999999999997
menu =  {"burger": 3.99,
         "fries": 1.99,
         "drink": 0.99}

menu.items()
dict_items([('burger', 3.99), ('fries', 1.99), ('drink', 0.99)])
x = 2

def function():
  global x
  x += 2

function()
print(x)
4