2

I have a piece of code that works on Linux, but when I try to run it on windows, I get an invalid syntax error:

def testHSPresent():
    if os.path.exists('.highScores.hs'):
        print "Highscores Present!"
    else:<<--------------------error on this line (this marker not in actual code)
        hs = open(".highScores.hs", "w")
        hs.write(str("0000"))
        hs.write('\n')
Snappawapa
  • 1,377
  • 2
  • 16
  • 36

0 Answers0