0
How do I fix this EOFError I have actually never handled one before it is a new one for me
This is my code: while True: try: Baga= int(input()) print("ohhuej") if Baga == 15: print("ogy") elif Baga == 13: print("olmlihomli") else: print("bleee") break except ValueError: The result: File"... \playground\ " line17 SyntaxError: unexpected EOF while parsing https://code.sololearn.com/cOhcbQx45642/?ref=app
3 Antworten
+ 3
Look at the bottom of your code, your code is incomplete. Change it to this:
except ValueError:
pass
+ 2
It is and it is becouse I forgot to move the print sequence that is supposed to be the result of this expect the print("ohhuej") part is suposed to be the result of the expect line thanks
0
Just gona say this I am coding nonsense just to learn how to program in a fun way