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
5 Antworten
+ 10
where's the code?
it should be CPG(CodePlayGround) limitation like time out, memory limit exceeded, no live input.
+ 3
post the code! the actual code you wrote, not the error code (though that is helpful)
+ 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 """)
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
- 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.