+ 1
If statement not seeming to work right (Python)
2 Answers
+ 2
Jack Redden Use == with of and elif instead of = .
You also made mistake while printing and assigning.
+ 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