My code is not working. | Sololearn: Learn to code for FREE!

My code is not working.

name=input("type your name") print("My name is" + name) email=input("type your email") print("My email is" + email) password=input("type your password") print("My password is" + password)

29th Dec 2021, 9:30 AM
Sivalingam Varmith
Sivalingam Varmith - avatar
2 Answers
+ 7
Sivalingam Varmith , the output has the issue that it will be concatenated like: "My name isTom" (for an input of 'Tom') there should be a space inbetween. you can correct this by adding an additional space or better use: print("My name is", name)
29th Dec 2021, 3:55 PM
Lothar - avatar
+ 1
Check input is correct, each input in sololearn should be on a new line.
29th Dec 2021, 1:45 PM
Juee - avatar