0

input function

this INPUT gives me s = input("Enter something please: ") print(s) Enter something please as OUTPUT this INPUT gives me s = input("Enter something please: ") k = input(" enter your ID no :") print(k) m = input(" Adress ") print(m) j = input(" Date of Birth : ") print(j) gives me Enter your name : Enter your no : Traceback (most recent call last): File "./Playground/file0.py", line 3, in <module> k = input(" Enter your no :") EOFError: EOF when reading a line as OUTPUT CAN i KNOW WHY ??

31st Mar 2020, 5:42 AM
Mani
Mani - avatar
2 odpowiedzi
+ 4
The description is almost unreadable. Please write your code in SoloLearn's code playground and share the link here. And also try to be more specific in your description. Thank you!
31st Mar 2020, 5:46 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
Mani The problem is how you are taking input. In Sololearn you can't take input one by one. You need to take input together with new line. For example:- If you want to take yourId and address then you need to take like this. 123 india
31st Mar 2020, 5:57 AM
A͢J
A͢J - avatar