learnbyexample to Python@programming.devEnglish • 2 months agoMaking an iterator out of a functionmathspp.commessage-square2fedilinkarrow-up112arrow-down10
arrow-up112arrow-down1external-linkMaking an iterator out of a functionmathspp.comlearnbyexample to Python@programming.devEnglish • 2 months agomessage-square2fedilink
minus-square@rutrumAlinkfedilinkEnglish3•edit-22 months agoIdk…kind of neat, but is the die rolling example any better than just doing ‘while roll() != 6:’?