[Tutor] Need help to generate random number without library functions.
Alan Gauld
alan.gauld at yahoo.co.uk
Tue Sep 8 11:57:57 EDT 2020
On 08/09/2020 00:11, Alan Gauld via Tutor wrote:
> - You use value as if it were a collection of some
> kind(you call len()) but then you go on to assign a numerical
> result to it so next time round the loop len() will return 1.
Oops, my bad. In fact, calling len() on a number
results in a type error.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list