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

19th Oct 2019, 11:50 PM
Mine Minecrafft
Mine Minecrafft - avatar
3 Respuestas
+ 3
Look at the bottom of your code, your code is incomplete. Change it to this: except ValueError: pass
20th Oct 2019, 1:09 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 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
20th Oct 2019, 1:14 AM
Mine Minecrafft
Mine Minecrafft - avatar
0
Just gona say this I am coding nonsense just to learn how to program in a fun way
19th Oct 2019, 11:51 PM
Mine Minecrafft
Mine Minecrafft - avatar