+ 3

Interactive Code - Python

I like having my codes be interactive - I ask a question and based on the response I get, I give a different answer. Unfortunately on SoloLearn's Code Playground, it looks like you have to answer all the inputs up front (instead of getting a prompt each time a question comes up like how it is in an IDE like PyCharm). Is there any way around this? I'd like to share my code and get input from others on how to improve/if they like it, but I feel kinda limited this way. Thanks!

11th Jul 2019, 3:27 AM
Corrin
Corrin - avatar
2 Respostas
+ 3
You’ll have to use an offline compiler. Online compilers do not allow communication with the code. You can do what I did and convert your python code into a JavaScript/HTML/CSS format (Web) and it you’ll be able to interact with it :)
11th Jul 2019, 3:37 AM
Jake
Jake - avatar
+ 4
Thanks! I didn't realize online compilers didn't allow interactive communication (I'm still pretty new to code, especially Python). Looks like I'll have to try out converting it to another format. Appreciate the help! :)
11th Jul 2019, 3:55 AM
Corrin
Corrin - avatar