while True: print ("options:") print ("Enter 'add' to add numbers") print ("Enter 'quit' to end program") u | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

while True: print ("options:") print ("Enter 'add' to add numbers") print ("Enter 'quit' to end program") u

Please I have been getting EOF error, can any one tell me what I did wrong

11th Dec 2016, 4:16 PM
otokiniye
otokiniye - avatar
1 Réponse
+ 1
No hay una condición que te saque del ciclo while, tu ciclo se repite infinitamente. cambia la condición del ciclo.
11th Dec 2016, 5:35 PM
Juan Pablo Millán Sotelo
Juan Pablo Millán Sotelo - avatar