19th Jan 2021, 3:00 AM
Jack Redden
2 Antworten
+ 2
Jack Redden Use == with of and elif instead of = . You also made mistake while printing and assigning.
19th Jan 2021, 4:35 AM
Mohd Aadil
Mohd Aadil - avatar
+ 2
Aside from = should be ==. There are few syntax errors as well. Your print should be: print('Fatal Error: ' + 'Planet: ' + planet + "is not currently supported. Please check it's name is spelled correctly.") If you want to concatenate strings, then they must each must be separated with quotation marks. ------------------------ Another, is the condition: " elif planet == ("Venus") or ("Uranus"): " Should be " elif planet == ("Venus") or planet == ("Uranus"): " https://code.sololearn.com/ca15A13a9A16
19th Jan 2021, 4:48 AM
noteve
noteve - avatar