Question: why doesn't the else condition ever work when I enter this code. I purposefully put in a actual current weight that is GREATER than the
why doesn't the else condition ever work when I enter this code. I purposefully put in a actual current weight that is GREATER than the biweekly goal weight but it doesn't go to the else condition and print "I'm sorry but you did not reach your biweekly goal."
if eq(overallGoal.lower(), "lose weight") and (goalSetting.lower(),"biweekly"):
while True: try: actualWeight= int(input("Please enter your current weight in pounds after two weeks time. "))
break
except ValueError:
print("Invalid entry. Please enter numeric value only.")
break
if (actualWeight
else: print("I'm sorry but you did not reach your biweekly goal.") #if they fail to meet the two week goal, they are supposed to be told that they did not reach it.

201 Eif eq(overallGoal.lower(), "lose weight") and (goalsetting.lower(), "biweekly"): 202 203 204 205 206 207 288 209 210 211 212 213 214 215 216 217 218 219 220 221 while True: try actualieight- int (input("Please enter your current weight in pounds after two weeks time")) except Valuetrror: print("Invalid entry. Please enter nuneric value only.") break if (actualWeightbiweeklyWeight): tbiweek lye ight is the desired weight in two weeks time that was input by user in a portion above ught I ssbivkPts=e points- wghtlssbinkpts+258 suser is supposed to get points after obtaining this portion of the goal else: print("I'n sorry but you did not reach your biveekly goal.") sif they fail to meet the two week goal, they are supposed to be told that they did not reach it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
