Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions