0

How can I enter three values in one input ?

24th Dec 2017, 3:25 AM
saleh bawazeer
saleh bawazeer - avatar
9 ответов
+ 17
This should do... x,y,z = [int(m) for m in input().split()] print(x,y,z)
24th Dec 2017, 4:56 AM
Frost
Frost - avatar
+ 9
@saleh bawazeer: Maybe this could help :- https://code.sololearn.com/c7t4VF5dgvOO/?ref=app But it takes input in three different lines..You can also add more inputs, the code will work fine
24th Dec 2017, 8:27 AM
Nikhil
Nikhil - avatar
24th Dec 2017, 7:49 AM
Nikhil
Nikhil - avatar
0
sorry not values I mean varublus
24th Dec 2017, 3:33 AM
saleh bawazeer
saleh bawazeer - avatar
0
but not in three lines
24th Dec 2017, 4:25 AM
saleh bawazeer
saleh bawazeer - avatar
0
like a,b,c=
24th Dec 2017, 4:26 AM
saleh bawazeer
saleh bawazeer - avatar
0
ok can you make a program that enter the markets of three students and if a student get from 90 to 100 print ("good") and from 50 to 89 print ("pass") and under 50 print("fall")
24th Dec 2017, 6:47 AM
saleh bawazeer
saleh bawazeer - avatar
0
three students not one @Nikhil
24th Dec 2017, 8:04 AM
saleh bawazeer
saleh bawazeer - avatar
0
@saleh: this is a code that has a populated table with scores but you can specify which score to change. e.g. Paul 2 100 You can modify it to get more input and change more scores. https://code.sololearn.com/cKKf3ilbC9bn/?ref=app Reason for single student is because SoloLearn does not accept input from console. And only accepts batch input.
24th Dec 2017, 10:00 AM
H Chiang