I’m no Python expert, but have experience in several other languages. In Python indentation matters - a lot! Since your else isn’t indented the same as your if, it isn’t recognized as part of your if block. It’s a token unexpected else. Try following the format suggested by mtf earlier.