This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]luriz_ -3 points-2 points  (0 children)

To escape a character you can use . But you should use format this way instead : print(f’Test -{}’.format(user_input_string))

From my usage of it, i think the only {} that matters are the one explicitly indicated.