Question: Python CPS - Please help me to identify why my code is not working #Calories Tracker for Canivore Diet food = input(What cut of beef

Python CPS - Please help me to identify why my code is not working

#Calories Tracker for Canivore Diet

food = input("What cut of beef is it? ")

if food == "top round":

food = 190

elif food == "NY strip":

food = 260

elif food == "rip eye":

food = 250

size = input("How many servings? ")

calories = food * size

maintenance_calorie = 2500

calorie_left = Maintenance_calorie - calories

print ("You have consume " int(size) + "calories")

if calories = 2500:

print("You have reach your goal to maintain your weight!")

elif calories > 2500:

print("You have overate. Now excercise to burn the excess calories off.")

elif calories < 2500:

print("Eat " + calorie_left + " calories more to reach your diet goal.")


Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!