0

Need a helping hand : I tried this code str(input("Enter First Name:")) + str(input("Enter Last Name:")) \n print(input) After entering the first name, it gives an error. Pls What's wrong with the code?

Code error

10th Jul 2016, 6:51 AM
Paul Osakue
Paul Osakue - avatar
7 ответов
+ 1
The \n is not in quotes. Infact you don't need it in that code. You don't need the str () either. The input function always returns values as a string.
10th Jul 2016, 7:32 AM
Gershon Fosu
Gershon Fosu - avatar
+ 1
The input() function ALWAYS return a string (even if the user typed in a number).
10th Jul 2016, 5:06 PM
Francisco Gómez García
Francisco Gómez García - avatar
0
Okay,, I'll try it out.... Thanks
10th Jul 2016, 4:13 PM
Paul Osakue
Paul Osakue - avatar
0
Okay,, I'll try it out.... Thanks
10th Jul 2016, 4:13 PM
Paul Osakue
Paul Osakue - avatar
0
I removed str and \n.. It still gives an error message
11th Jul 2016, 10:31 AM
Paul Osakue
Paul Osakue - avatar
0
I'm a big time beginner 🔰 though
11th Jul 2016, 10:32 AM
Paul Osakue
Paul Osakue - avatar
- 1
@Paul Osakue, how did you solve it
11th Jul 2016, 5:04 AM
Ahmed Kamal
Ahmed Kamal - avatar