Is it possible to run python live | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it possible to run python live

I was wondering if it is possible to run python live. For example when I run this code: Import time Print(‘hi’) Time.sleep(1) Print(‘bye’) It should say hi wait 1 second then say bye. In thonny it runs properly. Another issue caused by this is the input() command. In this is opens a menu and asks you then after you answer it runs the code in other softwares it runs all code before it asks then runs the code after it. Such as in this code Print(‘hi’) X = input() Print(x) It will say hi ask input print input

9th Nov 2021, 1:47 AM
Curtis Chase
Curtis Chase - avatar
5 Answers
+ 2
Curtis Chase SoloLearn sandbox doesn't operate as such here so you have to input all inputs upfront before run / execute ..
9th Nov 2021, 1:53 AM
BroFar
BroFar - avatar
+ 1
Curtis Chase no it is real python but limited due to the environment / sandbox
9th Nov 2021, 6:18 PM
BroFar
BroFar - avatar
0
BroFar so your saying its fake python?
9th Nov 2021, 5:47 PM
Curtis Chase
Curtis Chase - avatar
0
Sololearn first take all the user inputs and run the program with those inputs on their server and then send result to you. It is not interactive because PYTHON interpreter is not installed in your phone. Sololearn just send you the output of interpreter. Try to use PYTHON in computer or laptop. you can also use Python in your phone.
10th Nov 2021, 9:08 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
0
🌀 Shail Murtaza شعیل مرتضیٰ i run it on a rasberry pi all the time but using solo learn to code is much more convienint. I wish it would run correctly on here
13th Nov 2021, 1:50 AM
Curtis Chase
Curtis Chase - avatar