+ 2

Why this code is not working in python

x= input("enter your name:") y= int(input ("number of agents available")) z=[] zmax=4 while len(z)<=zmax: name=input("enter the names of the other") z.append(name) print(x) print(y) print(z)

13th Jan 2020, 10:54 AM
Taha Murad Zaman
Taha  Murad Zaman - avatar
6 Answers
+ 3
What is the error you get ?
13th Jan 2020, 11:02 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
Taha Murad Zaman then this question has been asked before many times. Sololearn does NOT support multiple inputs. Kindly delete this question, as it is a duplicate.
13th Jan 2020, 11:06 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
Eof error
13th Jan 2020, 11:05 AM
Taha Murad Zaman
Taha  Murad Zaman - avatar
+ 1
Check out the following code for better understanding of how input works in SoloLearn 👍 https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
13th Jan 2020, 11:10 AM
Ipang
+ 1
Taha Murad Zaman it suporrts u have to type ur next input in next line
14th Jan 2020, 7:48 PM
Deepak Yadav
Deepak Yadav - avatar