Ask coding questions

← Back to all posts
Why is it doing this?
MaciahLawson (32)

Why is it doing this when I enter the which period I want to go to??

You will understand when you see all of the code.

Answered by FloCal35 (668) [earned 5 cycles]
View Answer
Comments
hotnewtop
FloCal35 (668)

in that if/else statement, else means if grades aren't 50. Also, you can't have more than one variable being "measured" in an if/else statement. Here's what I think your trying to do

if grades <= 50:
  print("You failed")
else:
  ...

if health == 0:
  print("How do you die in high school")
else:
  ...
Bunnytoes (116)

@MaciahLawson you still need to set a starting health or it generates errors jock is only thing that works