#from sys import exit
#
#medical_kit = (0)
#
#def room_4b():
# global medical_kit
# if medical_kit >= 1:
# print "You have a medical kit."
# else medical_kit <= 0:
# print "If only you could revive him somehow."
#
####Here is the error I get when script is ran in PowerShell####
#PS C:\test> python gameerror.py
# File "gameerror.py", line 9
# else medical_kit <= 0:
# ^
#SyntaxError: invalid syntax
I am trying to get the function room_4b() to check the medical kit variable's value. The line "if medical_kit >= 1:" seems to be working fine for me, however, the line "else medical_kit <= 0:" doesn't want to work for me. I know I'm missing something here and I've scrutinized the syntax to make sure there was no mistake. I thank you in advance for any help here.