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")
3 Réponses
+ 1
What error messages are you getting? You code works fine for me.
+ 1
Thank you , I have solved it.
0
I get EOF error after the first input, but I should get 5 inputs