Flubbed it in the second interation through the string: range error... HOW?

Grant Edwards grant.b.edwards at gmail.com
Wed May 29 10:02:03 EDT 2024


On 2024-05-29, Chris Angelico via Python-list <python-list at python.org> wrote:

> print(f"if block {name[index]=} {index=}")

Holy cow!  How did I not know about the f-string {=} thing?

-- 
Grant


More information about the Python-list mailing list