+ 3

How to take 2 inputs in python

like if we want to take x=input("Enter a no.") y=input("Enter 2nd no.")

25th Oct 2018, 11:08 AM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
3 Réponses
+ 3
if you write it like that you have to write the input in two seperate lines 2 3 x = 2 y = 3 https://code.sololearn.com/cO5UBoBh0bUz/?ref=app
25th Oct 2018, 11:12 AM
Mbrustler
Mbrustler - avatar
+ 2
I am saying that if we need 2 no. example , for multiplication . Then how should we take them from user in Python
25th Oct 2018, 1:51 PM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 1
You know,if u want to get numeric input,you could write write it as.. -var=eval(input("Enter a number")) *You could use a loop to get multiple numbers and store them in a list...
25th Oct 2018, 12:05 PM
Mensch
Mensch - avatar