+ 1

Input problem in python.

Can you write me please an example of 3 inputs ... like... name , age and highschool? I tried to make more that one input and then print it but it doesn't work and idk why. Help pls.

28th Sep 2018, 8:31 AM
šŸ‡ Alex Tușinean šŸ’œ
šŸ‡ Alex Tușinean šŸ’œ - avatar
4 Answers
+ 2
In Sololearn yes. But if you use e.g. Spyder/Anaconda on PC it's different
28th Sep 2018, 3:09 PM
Matthias
Matthias - avatar
+ 1
name = input() age = int(input()) school = input() print(name, age, school) ''' input it the following way in Sololearn, since all inputs have to be given in advance: Name 17 School '''
28th Sep 2018, 8:36 AM
Matthias
Matthias - avatar
+ 1
i think i got it , thx.
28th Sep 2018, 8:54 AM
šŸ‡ Alex Tușinean šŸ’œ
šŸ‡ Alex Tușinean šŸ’œ - avatar
+ 1
so.. it doesn't metter how many inputs i create , i have to write them all just in one popup?
28th Sep 2018, 9:02 AM
šŸ‡ Alex Tușinean šŸ’œ
šŸ‡ Alex Tușinean šŸ’œ - avatar