how to do double input in the sololearn compiler | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

how to do double input in the sololearn compiler

?

15th Mar 2024, 6:13 PM
Sankhiss bisnes
Sankhiss bisnes - avatar
3 Réponses
+ 6
To make a double entry in python use the input() function for example you store one variable and another in another variable var = input() var1 = input() and there you have your double entry, keep asking and you will be able to clear your doubts and move forward
17th Mar 2024, 5:20 AM
STE4LPH
STE4LPH - avatar
+ 3
Sankhiss bisnes , depending on the requirements of the input (task description) we can also give multiple inputs in one line separated by a space or a comma for instance. in this case, the code has to split this input line to individual objects.
15th Mar 2024, 7:21 PM
Lothar
Lothar - avatar
+ 1
Hi, Sankhiss bisnes ! At SoloLearn’s Playground, for each input() in your code, enter each input on a new line in the input box before hitting submit.
15th Mar 2024, 6:54 PM
Per Bratthammar
Per Bratthammar - avatar