0

how do I print in my python code bit output before asking for input

my python code works fine in my python IDE, but when I wrote the code in sololearn it asks for input before printing initial data.

15th Apr 2020, 2:11 PM
Danny.
6 Réponses
+ 2
In sololearn inputs should be provided before execution of program.So in this case it is not possible. If you are using any other ide than print("prited text") a=input("enter some thing") Thats what I understand your questions if you are asking about anything else than ask about it
15th Apr 2020, 2:14 PM
Muhammad Bilal
Muhammad Bilal - avatar
+ 2
Sololearn was built by the developers in such a manner.. There is no other way for that.. Your code is visible to users know,so they can understand which kinda input they need to give.. 👍
15th Apr 2020, 2:33 PM
sarada lakshmi
sarada lakshmi - avatar
+ 1
what if users need to know what type of input to enter?
15th Apr 2020, 2:23 PM
Danny.
+ 1
Danny. Sololearn playground(in which you write code) is limited.It have limitations .It ask about all inputs that are used in program before execution.So in sololearn telling about what user have to input is not possible but if you are using any other ide than you can do it like a=int(input("Enter an integer: ")) output: Enter an integer:
15th Apr 2020, 2:28 PM
Muhammad Bilal
Muhammad Bilal - avatar
0
thanks
15th Apr 2020, 2:29 PM
Danny.
0
okay then...much appreciated
15th Apr 2020, 2:37 PM
Danny.