String formatting [str.format()] with a dictionary key which is a str() of a number
No. According to the documentation: Because arg_name is not quote-delimited, it is not possible to specify arbitrary dictionary keys (e.g., the strings ’10’ or ‘:-]’) within a format string. So you can’t use strings consisting of numbers as dictionary keys in format strings. Note that your key isn’t numeric, and it’s not trying to use … Read more