0

How to solve ASCII EOF ERROR?

import random for myChar in range(10): chr_random = random.randint(33,126) myChar = chr(chr_random) print("The random number is " + str(chr_random)) print("This number is the code for " + myChar + '\n') for MyNum in range(5): print("Please input a number, letter or symbol") MyChr = input() MyNum = ord(MyChr) print("Your code is" + str(MyNum)) print("That's it, we finished")

19th May 2019, 8:02 PM
L. Yeghiazaryan🇦🇲
L.  Yeghiazaryan🇦🇲 - avatar
3 Respuestas
+ 1
What error messages are you getting? You code works fine for me.
19th May 2019, 9:10 PM
Diego
Diego - avatar
+ 1
Thank you , I have solved it.
20th May 2019, 10:05 AM
L. Yeghiazaryan🇦🇲
L.  Yeghiazaryan🇦🇲 - avatar
0
I get EOF error after the first input, but I should get 5 inputs
20th May 2019, 8:15 AM
L. Yeghiazaryan🇦🇲
L.  Yeghiazaryan🇦🇲 - avatar