Merging or taking two inputs in Python . | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 4

Merging or taking two inputs in Python .

Here in Sololearn we can take input only once . so how can i take two or more inputs a time . Example -: 1. int(input(Write a number)) 2. int(input(Write another number)) How could i take both the input at once ?

4th Sep 2018, 6:38 PM
OM KASHYAP
OM KASHYAP - avatar
3 Réponses
+ 6
x,y=map(int,input().split(",")) try 13,14 for ex
4th Sep 2018, 8:26 PM
VcC
VcC - avatar
+ 3
enter like this: first input second input
4th Sep 2018, 7:12 PM
Mert Yazıcı
Mert Yazıcı - avatar
+ 3
VcC it worked bro ... Thanks a lot.
5th Sep 2018, 5:13 AM
OM KASHYAP
OM KASHYAP - avatar