MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/igvny1/python_goes_brrrr/g2wq7ak/?context=3
r/ProgrammerHumor • u/das_freak • Aug 26 '20
789 comments sorted by
View all comments
Show parent comments
155
I fucking love fstrings. I use them so much
42 u/Moldy_pirate Aug 26 '20 Is there ever a reason to use a “regular” string rather than an f”string? 0 u/[deleted] Aug 26 '20 [deleted] 19 u/Sir_Bucket Aug 26 '20 Yes you can, you need to double them:print(f”open: {{ close: }}”)Result:open: { close: } → More replies (6)
42
Is there ever a reason to use a “regular” string rather than an f”string?
0 u/[deleted] Aug 26 '20 [deleted] 19 u/Sir_Bucket Aug 26 '20 Yes you can, you need to double them:print(f”open: {{ close: }}”)Result:open: { close: } → More replies (6)
0
[deleted]
19 u/Sir_Bucket Aug 26 '20 Yes you can, you need to double them:print(f”open: {{ close: }}”)Result:open: { close: } → More replies (6)
19
Yes you can, you need to double them:
print(f”open: {{ close: }}”)
Result:
open: { close: }
→ More replies (6)
155
u/AinsleyBoy Aug 26 '20
I fucking love fstrings. I use them so much