+ 1

Having an EOF error tried many things no use(python)

While using input function I'm getting an EOF error plz help me its my first calculator project while True : print ("enter add to add") print ("enter substract to substract") z = input(": ") if z == "add": Num1 = (float(input("Enter number:"))) Num2 = (float(input("another numer:"))) Result=(Num1 + Num2 ) print(Result )''

1st Jun 2020, 6:56 AM
Ananth
Ananth - avatar
1 Antwort
+ 3
You need to give all the inputs at once in sololearn Like add 5 6 break(I mean some condition for breaking out of while loop)
1st Jun 2020, 7:05 AM
Abhay
Abhay - avatar