Question
I am trying to write a program in PYTHON that asks the user to choose between losing weight or gaining muscle. I have a problem,
I am trying to write a program in PYTHON that asks the user to choose between losing weight or gaining muscle. I have a problem, though, because even if I pick lose weight it will not only ask user questions only pertaining to people with weight concerns but also the people with the desire to gain muscle. How do I eliminate that problem? I included my image from the visual studios document and copy and pasted the code below.
overallGoal= str(input("Do you desire to lose weight or gain muscle? ")) if overallGoal == "lose weight" or overallGoal == "LOSE WEIGHT": currentWeight = int(input("Please enter current weight in pounds. ")) idealWeight= int(input("Please enter the weight you wish to obtain ultimately. "))
else if overallGoal == "gain muscle" or "GAIN MUSCLE": maxBench = int(input("Please enter your current 1 rep max bench press in pounds. ")) idealmaxBench= int(input("Please enter your ideal 1 rep max bench press in pounds. ")) maxbackSquat = int(input("Please enter your current 1 rep max back squat in pounds. ")) idealmaxSquat= int(input("Please enter your ideal 1 rep max back squat in pounds. ")) maxmilitaryPress= int(input("Please enter your current 1 rep max military press in pounds. ")) idealmilitaryPress = int(input("Please enter your ideal 1 rep max military press in pounds. ")) maxdeadLift= int(input("Please enter your current 1 rep max deadlift in pounds. ")) idealdeadLift= int(input("Please enter your ideal 1 rep max deadlift in pounds. "))
goalSetting= str(input("Do you wish to set goals biweekly or monthly? ")) if goalSetting == "biweekly" or goalSetting== "BIWEEKLY" && goalSetting == :
5hopity Python libra x 9. Classes python 3 pythorir Else: An In-C Chegg Study I Guided G and statement python x x x x C Secure I https://www.chegg.com/study/qa/post Chegg. Study TEXTBOOK SOLUTIONS EXPERT Q&A Search I submit one question per post 2 Get a fast expert answer within hours 3 Post u Exercise App-Microsot Visual Studio Quick Lau File Edit View Project Build Debug Team Tools Test Analyze Window Help Vie've notices that a tocl window 'Errer Lis is slowing Visual Studio.Manage Visual Studio Performance fx workout I am try pick los eliminat oveloal- str(input("Do you desire to lose weight or gain muscle?")) 4it overallGoal"lose weight" or overallGoal"LOSE WEIGHT" overallG if overa currentWeightint (input("Please enter current weight in nounds. ")) idealweight- int (input(" Please enter the weight you wish to obtain ultimately. ")) else if overallGoal"gain muscle" or "GAIN MUSCL 18 Selec11 12 13 14 15 16 17 axBench- int (input("Please enter your current 1 rep max bench press in pounds. ")) idealmaxBench- int(input("Please enter your ideal 1 rep max bench press in pounds. ")) maxbackSquat int(input("Please enter your current 1 rep max back squat in pounds.")) idealmaxSquat- int (input("Please enter your ideal 1 rep max back squat in pounds. ")) maxmilitaryPress- int (input "Please enter your current 1 rep max military press in pounds. ")) idealmilitaryPress int(input ( "Please enter your ideal 1 rep max military press in pounds. ")) maxdeadLift- int(input("Please enter your current 1 rep max deadlift in pounds. " idealdeadl ift- int nput"Please enter your ideal 1 rep max deadlift in pounds ")) Math Algeo 19 alsettine- str(input"Do you wish to set goals biweekly or monthly?") if goalsetting = "biweekly" or goa 1 setting--"HIWtEKLY" && goalsetting-w 21 Preca 23 3:34 PM Type here to searchStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started