[Tutor] Beginner - explaining 'Flip a coin' bug

R. Alan Monroe amonroe at columbus.rr.com
Wed Feb 12 21:57:36 CET 2014


> When running it, either returned values are wrong or the script
> seems to enter in an infinite loop showing no return values at all.

One other tip: "for" loops are usually more practical when you know
exactly how many times you want to loop (100 coin flips). "while"
loops are usually more practical when you don't know in advance how
many times it might loop.

Alan



More information about the Tutor mailing list