I’m following a tutorial on youtube on how to code a very simple game.
The part of my code which recieves the error looks like this:
player_choice = input()
if player_choice == '1':
monster['health'] = monster['health'] - player['attack']
player['health'] = player['health'] - monster['attack']
print(monster['health'])
print(player['health']
elif player_choice == '2':
print(Heal Player)
else:
print(Invalid Input)
The error I recieve:
elif player_choice == '2':
^
SyntaxError: invalid syntax
I’ve compared my codes with the tutorial and it is almost exactly identical
Heres the video for reference: https://youtu.be/kDdTgxv2Vv0?t=1843