+ 1

What am I doing wrong on this code ?

i wanted to remove the whitespaces in my code using strip action. Why is it getting a syntax error ? https://code.sololearn.com/c9biUHBs4pNp

8th Dec 2017, 1:17 AM
TomĂĄs Nascimento
TomĂĄs Nascimento - avatar
4 Answers
+ 1
Because you are trying to strip the 'h', but the string starts and ends with spaces that need to be stripped first
8th Dec 2017, 1:49 AM
Jesse Bayliss
Jesse Bayliss - avatar
+ 9
There should be parentheses after print. https://code.sololearn.com/c7gN2d3AdQAP/?ref=app
8th Dec 2017, 1:32 AM
qwerty
qwerty - avatar
+ 2
print is a function that needs parentheses around it's parameters
8th Dec 2017, 1:38 AM
Jesse Bayliss
Jesse Bayliss - avatar
0
Fine. But why it doesn't remove the whitespaces even when i fix the parentheses
8th Dec 2017, 1:45 AM
TomĂĄs Nascimento
TomĂĄs Nascimento - avatar