[Tutor] Multiplication table was: Re: (no subject)
Alan Gauld
alan.gauld at yahoo.co.uk
Tue Oct 27 21:05:15 EDT 2020
Please always put a meaningful subject line in the message.
On 27/10/2020 23:15, Chukwunonso Oranyeli via Tutor wrote:
> Hello, I have been using python for a while and I have a question for my code.
> How do I write a program that returns a multiplication table of a number up to 12. For example
>
> multiplication_table(6) would return
>
> "6 12 18 24 30 36 42 48 54 60 66 72 "
This smells a bit like homework which we don't do.
But we can give hints.
So I'll give you a hint.
Look in the loops section of my tutorial(link below)
--
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