I want to make a function with multiple Arguments and Can only be from A Dictionary. I tried Using these Codes:
Milk = "1L"
Water = "10L"
Juice = "500ml"
def Quantity(*Liquid):
AllLiquids = { Milk: "Milk", Water: "Water", Juice: "Juice" }
if Liquid in AllLiquids:
for i in Liquid:
print(i)
else:
print("An Error Occured")
Quantity(Water, Milk)
Instead of Getting the Quantity I Get this Output (Which is in the Else Statement):
An Error Occured
How Can I Do This Correctly?