0

Why input() function is not working in solo learn please tell me becuse it is also WORKING in python 2.7 in my pc.

input function

6th Jun 2019, 5:26 AM
Mudasir Ali
8 Respuestas
+ 5
Let me guess, you're asking that why don't this code is taking multiple inputs. Is it ??
6th Jun 2019, 6:19 AM
Ayan Fox
Ayan Fox - avatar
+ 2
There are some restrictions in using input() in SoloLearn. So the best way to get a clear picture from your trouble would be if you share us your code in Code playground.
6th Jun 2019, 5:58 AM
Lothar
Lothar - avatar
+ 1
Mudasir Ali you have to put all your inputs together at sololearn playground else you will get error See this : https://code.sololearn.com/c91X1LCKylB7/?ref=app
6th Jun 2019, 7:14 AM
Daljeet Singh
Daljeet Singh - avatar
0
print("what is your name") myName=input() print("nice to meet you, "+ myName) print("length of your name is:") print(len(myName)) print("what is your age") myAge=input()
6th Jun 2019, 6:01 AM
Mudasir Ali
0
now tell me about my code
6th Jun 2019, 6:01 AM
Mudasir Ali
0
yes i want to say about multiple inputs can this code work in multiple inputs
6th Jun 2019, 6:27 AM
Mudasir Ali
0
print("what is your name") myName=input() print("nice to meet you, "+ myName) print("length of your name is:") print(len(myName)) print("what is your age") myAge=input() error in line 7 multiple inputs yes i want to say about multiple inputs can this code work in multiple input it is not working in solo learn but it is working in python 2.7 in my pc. why it is not working in solo learn???
6th Jun 2019, 6:36 AM
Mudasir Ali
0
yes
6th Jun 2019, 8:12 AM
Mudasir Ali