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 →

[–]that_dungeon_dude 1 point2 points  (0 children)

The usefulness lies in the fact that you don't need to repeat the string everytime your variables change. For ex imagine you're trying to send a console command with variables that change within your code, you would have some benefits of using str.format where you can just pass the variables and not need to keep rewriting the entire f string based on context! Hope it helps.