magnusmundus
Joined 10 years ago
Joined 10 years ago
Consider it proof that HN has indeed not become reddit, I guess :)
Anecdotally, I once had an outrageously difficult time explaining to a German customs officer that the bag I placed in the scanner had items belonging to both my sister and myself. It didn't help that we were travelling together, and she was also there to back my statements up. He simply would not accept the fact that there was an electronic device (e-book) that belonged to her, in a bag that belonged to me, which we forgot to take out before the scanner.
Though, I'm pretty sure I'd just spring for a thermal printer if they made toner maintenance impractical too, personally speaking.
> no one around me would want to sacrifice themselves
It's not so much a sacrifice as it is simply a different game. Some people enjoy coming up with stories more than exploring other people's stories.
Unless you want the check to be always against the initial length of your iterable, rather than its modified state, you'd have to repeat the `n = len(iterable)` inside the loop, or introduce some syntactic caramel of the walrus kind (though I'm not sure if it would work here).