0

python code cannot work

there is a problem in the input whenever i write the code even if i copied it from my pc ... but the code works in the IDLE why it doesn't work here

3rd Oct 2017, 9:41 AM
Ahmed Ezzat001
5 ответов
+ 10
where's the code? it should be CPG(CodePlayGround) limitation like time out, memory limit exceeded, no live input.
3rd Oct 2017, 10:27 AM
Lord Krishna
Lord Krishna - avatar
+ 3
post the code! the actual code you wrote, not the error code (though that is helpful)
3rd Oct 2017, 4:29 PM
Aethenosity
+ 1
Is that string meant to be multiline? If so, it seems like you made a mistake with the quotation. Multiline is realized like this: (""" STRING STRING String """)
6th Oct 2017, 8:55 PM
Timo
Timo - avatar
0
its a calculator .. "" [1]Add(+) [2]Subtract(-) [3]Multiply(x) [4]Divide(≈) [5]To Exit Select The Operation: Enter first number: Traceback (most recent call last): File "..\Playground\", line 29, in <module> num1 = int(input("\tEnter first number: ")) EOFError: EOF when reading a line"" idk why , the code works in the IDLE
3rd Oct 2017, 11:27 AM
Ahmed Ezzat001
- 1
Somehow I was under the impression that it might just show the used number of quotation marks. But that would most likely depend on the ide then.
7th Oct 2017, 10:55 PM
Timo
Timo - avatar