0

How to input in sololearn after making code

27th Oct 2023, 6:26 PM
Shaurya Garg
Shaurya Garg - avatar
11 Respostas
+ 2
If you share your code we can help you better. Generally in sololearn when you run your code you insert all your inputs in a popup at the beginning. If you have multiple inputs you should enter them each on a separate line.
27th Oct 2023, 9:38 PM
Mafdi
Mafdi - avatar
+ 1
If you have done a proper python code that contains one or more input() functions, we can do the input like this. When the code is started (and before it is executed on the Sololearn server), a popup window appears. Now we can enter the requested data by using different lines in input window. Finally we have to hit the RUN button. When the input should take multiple values in one go, we only need 1 inpu() function, In this case the the input has to be splitted into individual values.
27th Oct 2023, 7:21 PM
sandra
sandra - avatar
+ 1
Yes you have to input two numbers in two lines
28th Oct 2023, 3:29 PM
Mafdi
Mafdi - avatar
0
Yes but how 🤔 a pop up msg 'look like your code need to input ' after that how to input value?
28th Oct 2023, 2:58 AM
Shaurya Garg
Shaurya Garg - avatar
0
Tap on the line of the message so your keyboard appears
28th Oct 2023, 3:46 AM
Mafdi
Mafdi - avatar
0
After the keyboard appears full code write again?
28th Oct 2023, 3:59 AM
Shaurya Garg
Shaurya Garg - avatar
0
# let's say this is your code a = int(input()) b = int(input()) sum = a + b print(sum) # run the code # you need to input just two numbers on separate lines and tap submit # example of inputs: # 4 # 5
28th Oct 2023, 4:09 AM
Mafdi
Mafdi - avatar
0
Shaurya Garg, does it work?
28th Oct 2023, 4:33 AM
Mafdi
Mafdi - avatar
0
use input functions , like in python use input()
28th Oct 2023, 7:48 AM
Alhaaz
Alhaaz - avatar
0
Mafdi, just like your code when you run it, it show a msg , in this msg we have to write something or not? If yes what is this . When we run without write anything in msg it show an error.
28th Oct 2023, 8:17 AM
Shaurya Garg
Shaurya Garg - avatar