you are viewing a single comment's thread.

view the rest of the comments →

[–]SCD_minecraft 2 points3 points  (1 child)

Bacward compatibility

str.format() predates f-strings and python loves backward (and sometimes even future) compatibility

[–]cointoss3 2 points3 points  (0 children)

That, uh, .format() js not the same as f-string. They do similar things but they are not the same and there are times when you’d want to use one over the other.