0

Help. Having problem with print

print ("What is your name?“ name = sys.stdin.readline() print ("Hello", name.capitalize) It shows me ('Hello', 'Paul\n') Is there no way it can print it without the " \n ", " ' " and " , " ?

19th Sep 2016, 1:53 PM
Paul Osakue
Paul Osakue - avatar
1 Respuesta
0
Of cus it's python.. And it worked I imported sys at the start of the code... Buh don't worry, I've gotten a solution Instead of ~print("Hello", name.capitalize) I did ~print("Hello" + name.capitalize) And it gave me >Hello Paul
21st Sep 2016, 7:06 AM
Paul Osakue
Paul Osakue - avatar