3 ms·
Just last week I was thinking that it would be great if Python had a way to print both the name and value of a variable without having to repeat the variable na
by ziml77 5y ago
Just last week I was thinking that it would be great if Python had a way to print both the name and value of a variable without having to repeat the variable name. I checked the formatting mini-language spec and when I didn't see it there I assumed it didn't have it. I'm glad to know now that it does have that feature!
- renox 5y agoThere are several versions of the "the formatting mini-language" and the documentation that Google return first is for an old one which didn't have this feature :-(