0
How to input in sololearn after making code
11 Antworten
+ 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.
+ 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.
+ 1
Yes you have to input two numbers in two lines
0
Yes but how 🤔 a pop up msg 'look like your code need to input ' after that how to input value?
0
Tap on the line of the message so your keyboard appears
0
After the keyboard appears full code write again?
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
0
Shaurya Garg, does it work?
0
use input functions , like in python use input()
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.