In Python, f-strings are a string formatting mechanism that allow us to embed Python expressions in string literals. 'F-string' is short for 'forma...
For further actions, you may consider blocking this person and/or reporting abuse
Any version of python before 3.6 was dead to me the instant f-strings came out. They are so freaking useful!
Yes, they're very handy!
f-string? Better way to use .format()
Keep in mind, f-string is only available for python 3.6 and upper
I find the syntax of format a little bit harder to read than f-strings. F-strings make strings with variables read like prose
Thank you for noting the Python version. Excellent point!
Shouldn't you edit the article to mention the version?
Good article in any case :)
Yes, thanks for the suggestion. :)
A nice shorthand of the format function.
A beautiful explanation. (Y)
What is that
(Y)
doing at the end? 😅I was trying to give a thumbs up
(👍🏻)
Thank you!