why "{}".format(somevariable) is used in many places instead of f"{variable}" formatter? #399
nikhil-swamix
started this conversation in
General
Replies: 1 comment
-
Well, the answer is relatively simple: f-strings were introduced in Python 3.6 which means that Python 3.5 was the most recent version that did not support f-strings. Python 3.5 however was still supported up until September 2020 (see https://endoflife.date/python) and the code that uses |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is it a coding style or has performance benefits? just curious as f"{variable}" is very intuitive than the format sting referred earlier.
Beta Was this translation helpful? Give feedback.
All reactions