How can i read two inputs in a same line 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

How can i read two inputs in a same line in Python

here two values means different data types. I want to read int and string in sameline

18th Feb 2018, 10:48 AM
RAM KRISHNA
RAM KRISHNA - avatar
3 Réponses
+ 4
It's not possible in Python (see below chapter- 3 dots indicates 3 chapter,in the middle chapter it says - integer and string cancatenation isn't possible) https://www.sololearn.com/learn/Python/2427/
18th Feb 2018, 11:52 AM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar
+ 3
input(),input() 5,"ram"
18th Feb 2018, 11:24 AM
RAM KRISHNA
RAM KRISHNA - avatar
0
what do you mean? this? intvar = 1 strvar = "abc" print(strvar + str(intvar))
18th Feb 2018, 11:13 AM
Markus Kaleton
Markus Kaleton - avatar