18 lines
349 B
Python
18 lines
349 B
Python
|
def nutrition(food):
|
||
|
food = food.upper()
|
||
|
match food:
|
||
|
case "APPLE":
|
||
|
return 130
|
||
|
case "AVOCADO":
|
||
|
return "50"
|
||
|
case "SWEET CHERRIES":
|
||
|
return "100"
|
||
|
case _:
|
||
|
return ""
|
||
|
|
||
|
def main():
|
||
|
food = input("Write your food: ")
|
||
|
print(f"Calories: {nutrition(food)}")
|
||
|
|
||
|
main()
|