Add new file

This commit is contained in:
Ferexio 2022-08-01 05:40:41 +00:00
parent faba31aa03
commit 6edd2cc766

17
nutrition.py Normal file
View file

@ -0,0 +1,17 @@
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()