Code Playground Py3; Multiple Inputs EOF | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Code Playground Py3; Multiple Inputs EOF

I'm trying to design a simple multiplication test on code playground. The test uses a "while False" loop when incorrect answers are given, such that the user can input another guess. I believe code playground can only accept inputs once, before running. Hence my program always returns an EOF error. I've tried handling the exception but this creates an infinite loop. I'm new to the environment and wondered if anyone can put me right or help find a solution.

28th Apr 2017, 3:57 PM
Rob Fowler
Rob Fowler - avatar
1 Answer
+ 8
There's no solution to run such program in code playground... However, as workaround, you can run Python code with a 'real' interpreter on your device ( on linux/osx Python id generally pre-installed, on windows you need to install it, on android you have apps like QPython and probably too on iOS and so on )
28th Apr 2017, 5:43 PM
visph
visph - avatar