+ 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
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
+ 9
There should be parentheses after print.
https://code.sololearn.com/c7gN2d3AdQAP/?ref=app
+ 2
print is a function that needs parentheses around it's parameters
0
Fine. But why it doesn't remove the whitespaces even when i fix the parentheses