Question: Having trouble trying to run program. I'm getting an syntax error on the first else statement even though I have it indented correctly ScottJr.UnitB.py-D:/Python/ScottJr.UnitB.py (3.7.0)

Having trouble trying to run program. I'm getting an syntax error on the first "else" statement even though I have it indented correctly

Having trouble trying to run program. I'm getting an syntax error on

ScottJr.UnitB.py-D:/Python/ScottJr.UnitB.py (3.7.0) File Edit Format Run Options Window Help #Declare a variable and initialize it numcode num = weight num = MOONFACTOR-0.166 num moonWeight print ("1 English or 2 Espanol >>") - code input ("Enter code for instructions") displayInstructions (code) weight input ("Enter weight for moon") moonWeight = weight * MOONFACTOR If code == 1: - print ("Your weight on the moon would be ", moonweight) print ("Su peso en la luna seria ", moonWeight) print ("Stop") displayInstructions (num langCode) str .ENGLISH_PROMPT str. SPANISH-PROMPT = "Por favor entre en su peso en libras >> " if langCode = 1: - "Please enter your weight in pounds > print ("ENGLISH PROMPT") print ("SPANISH-PROMPT") print ("Stop") else elif

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!