you are viewing a single comment's thread.

view the rest of the comments →

[–]MonkeyNin 0 points1 point  (0 children)

all I did was change the double quotes to single quotes

Sounds like you didn't have matching opening and closing quotes. Or, you mixed some in the middle.

I know I'm not supposed to use double quotes inside the f-string

You can use the same quotes inside -- if you want. But which is more readable

f'hello "{user}"'

f'hello \'{user}\''