Múltiples inputs? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
- 1

Múltiples inputs?

Hi, How can I do to put a variable in multiple inputs when i run the code? Thanks

19th Jun 2020, 3:48 PM
27MateoGuerrero66
27MateoGuerrero66 - avatar
4 ответов
+ 3
You need to know how many inputs are to be given in program ,and then give them all at once ,each one in new line suppose there are two inputs a=input() b=input() then you need to enter like this 3 4
19th Jun 2020, 3:49 PM
Abhay
Abhay - avatar
+ 7
It's still not clear what you are going to achieve. So please make a sample input, and how it should look like. Thanks!
19th Jun 2020, 4:51 PM
Lothar
Lothar - avatar
+ 5
Are you talking about python?
19th Jun 2020, 4:14 PM
Lothar
Lothar - avatar
0
A=list(map(" ",input().split()))
19th Jun 2020, 4:17 PM
Anurag Jain
Anurag Jain - avatar