Jan-01-2021, 02:50 PM
(Jan-01-2021, 01:45 PM)alloydog Wrote: Apparently f-strings are the new improved way of doing it...
https://realpython.com/python-f-strings/
In addition to comprehensive information in this very good coverage of f-strings I would add feature what is available from Python <= 3.8: f-strings support = for self-documenting expressions and debugging.
>>> spam = 'Life, The Universe and Everything' >>> print(f'{spam=}') spam='Life, The Universe and Everything'
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.