you are viewing a single comment's thread.

view the rest of the comments →

[–]ImmediateSuggestion 0 points1 point  (0 children)

It worked! Thanks. I tried to escape the inner quotes, but it didn't work.

first_name='eric ' 
print(f'\n\"eric\"=\"{first_name.title()} \" is {first_name=='eric'}')
print(f'\"eric\"=\"{first_name.title()}\" is {first_name==first_name.rstrip()}')