s = \'the brown fox\'
...do something here...
s should be:
s
\'The Brown Fox\'
What\'s the easiest
Easiest solution for your question, it worked in my case:
import string def solve(s): return string.capwords(s,' ') s=input() res=solve(s) print(res)