vendredi 16 août 2019

Why idn't my if/else statement working, and why can't I indent it? [on hold]

I am getting an error message around my else statement and I cannot figure out why. Moreover, I would like to indent them for readability but when I try, I start getting error messages for the if statement as well. Is indentation not an option in PyCharm?

My if statement seems to be working fine, but I cannot figure out why I am getting error statements for else. They are both unindented, as are their uh...sub-arguments because the program won't allow me to intent them without causing more error codes.

if injury_level: !=0
print(topo_reg + "is not functioning normally")
else:
print("This area is functioning normally")

The sidebar error message is saying "Statement expected, found Py:COLON" and "Statement expected, found Py:ELSE_KEYWORD"

Aucun commentaire:

Enregistrer un commentaire