+ 2

How to use input in python more than 1 time

How to use input in Python more than 1 time? Please help me.

11th Mar 2019, 10:36 AM
Mesum Bin Shaukat
Mesum Bin Shaukat - avatar
6 Réponses
+ 9
Not possible in Sololearn in the form of 2 separate instances of input collection (although you technically input multiple times by separating with newline).
11th Mar 2019, 11:14 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 4
You might need a Python IDE. These playgrounds are good only for simple programs.
11th Mar 2019, 11:59 AM
Seb TheS
Seb TheS - avatar
+ 4
Not possible on sololearn but you can use JavaScript on sololearn to accomplish it.
11th Mar 2019, 7:03 PM
Ayush Sinha
Ayush Sinha - avatar
+ 3
not sure if you use the get method and return the input instead hope this helps
11th Mar 2019, 11:09 AM
Buhle 💃💃💃
Buhle 💃💃💃 - avatar
+ 1
On sololearn you can ask multiple inputs if you provide them in separate lines (use the line break ↩️) Other possibility, you separate the values by spaces and you do input().split() to create a list from the inputs
11th Mar 2019, 7:15 PM
Tibor Santa
Tibor Santa - avatar
0
Thank you for everyone that you help me to sort this problem out. Especially to you Prometheus.
12th Mar 2019, 4:01 AM
Mesum Bin Shaukat
Mesum Bin Shaukat - avatar