Behavior of the for-else construct

Michael F. Stemper michael.stemper at gmail.com
Thu Mar 3 09:03:30 EST 2022


On 03/03/2022 07.24, computermaster360 wrote:
> I want to make a little survey here.
> 
> Do you find the for-else construct useful? Have you used it in
> practice? Do you even know how it works, or that there is such a thing
> in Python?

I only found out about it within the last year or so. I've used it
probably half-a-dozen times. It seems quite elegant to me.


-- 
Michael F. Stemper
A preposition is something you should never end a sentence with.


More information about the Python-list mailing list