Flubbed it in the second interation through the string: range error... HOW?
Grant Edwards
grant.b.edwards at gmail.com
Wed May 29 11:35:46 EDT 2024
On 2024-05-29, Mats Wichmann via Python-list <python-list at python.org> wrote:
> 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.
I really should make a habit of reading through the "what's new" pages
when new releases come out...
--
Grant
More information about the Python-list
mailing list