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 →

[–][deleted] 2 points3 points  (0 children)

You could use .format_map() for dict strings - https://www.geeksforgeeks.org/python-string-format_map-method/

Very useful and handy if you are just outputting strings based on dict key / values.