Add new file

main
Ferexio 2022-08-01 05:40:41 +00:00
parent faba31aa03
commit 6edd2cc766
1 changed files with 17 additions and 0 deletions

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()