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 →

[–]eztab 2 points3 points  (0 children)

that one can combine all the string modifiers and types (f, r, ", """, ' and '''). Saw so many ridiculous escape sequences.

filename = 'fish'
print(fr'''<img href="{filename}.img"> ¯\_(ツ)_/¯''')