1st Sep 2020, 2:48 AM
Cristopher Jesús Cabrera Eguía
Cristopher Jesús Cabrera Eguía - avatar
5 Respuestas
+ 3
Cristopher Cabrera Yes it's possible to take more than one input i/p= 2 3 4 x,y,z=map(int,input().split()) or x,y,z=input().split() you should use split () function Don't use white/blank space for indentation use tab keyword. Here you need to enter all input at once, example 2 1 2 https://code.sololearn.com/cKcrvU75Gb86/?ref=app Check this code... Now i am not getting any errors but i don't know weather this code result is same as your expected result.
2nd Sep 2020, 4:04 AM
Ajith
Ajith - avatar
+ 3
Cristopher Cabrera n,m=int(input("Qué asiento quiere?\n")) Your taking two input at once, so you need to split the input n,m=map(int,input().split ()) Check else if statement.. https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2278/?ref=app b[0][1][2]=" usando 01 "," usando 02 "," usando 03 " are you trying to edit string...? String is immutable... If your trying to add " usando 01 "," usando 02 "," usando 03 " these elements to list then use 'insert' method b.insert(pos,item)
1st Sep 2020, 3:49 AM
Ajith
Ajith - avatar
+ 1
Tank you
2nd Sep 2020, 3:17 AM
Cristopher Jesús Cabrera Eguía
Cristopher Jesús Cabrera Eguía - avatar
+ 1
#Ajith I am learning pythom3, in the tutorial it does not appear how to declare two variables, thank you very much for the help, greetings from Perú :)
3rd Sep 2020, 1:05 AM
Cristopher Jesús Cabrera Eguía
Cristopher Jesús Cabrera Eguía - avatar
0
I update it, but now another problem and a doubt, it is possible to declare two variables in an input??
2nd Sep 2020, 3:21 AM
Cristopher Jesús Cabrera Eguía
Cristopher Jesús Cabrera Eguía - avatar