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

Mats Wichmann mats at wichmann.us
Wed May 29 10:05:51 EDT 2024


On 5/29/24 08:02, Grant Edwards via Python-list wrote:
> 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?
> 

It's more recent than f-strings in general, so it's not that hard to miss.


More information about the Python-list mailing list