learnbyexample to Python@programming.devEnglish • 4 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 • 4 months agomessage-square2fedilink
minus-square@rutrumAlinkfedilinkEnglish3•edit-24 months agoIdk…kind of neat, but is the die rolling example any better than just doing ‘while roll() != 6:’?