0

first calculator

Whenever i open code playground it immediately asks for input before displaying options, then when the program runs time limit is exceeded error shows up. Please help an extremely frustrated noob

18th Nov 2017, 7:26 PM
John Goodwin
John Goodwin - avatar
2 Answers
+ 1
The code playground is not great for interactive things (unless you write javascript). It will wait for your script to finish and only then send the answer back to your browser. Since you just loop forever, nothing happens, and the script times out. So, totally not your fault. Running code on your PC is better, but if you want to use the code playground, you want to read all the input at once, then process it, then quit. Infinite loops won't work!
18th Nov 2017, 7:34 PM
Schindlabua
Schindlabua - avatar
0
If the code playground isn't working then I suggest downloading python 3.6.2 from https://www.python.org and getting atom from https://atom.io. This is what I use and it's great, also there are plenty of youtube tutorials to help.
17th Jan 2018, 5:30 PM
ICantThinkOfAUsername
ICantThinkOfAUsername - avatar