12
Making an iterator out of a function
(mathspp.com)
Idk...kind of neat, but is the die rolling example any better than just doing 'while roll() != 6:'?
Yeah I would avoid this. The meaning is not obvious and at least in the examples given there are far better ways to do it.
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023