[Tutor] my function doesn't print out anything when i pass an argument through it
Alan Gauld
alan.gauld at yahoo.co.uk
Mon May 4 03:20:00 EDT 2020
On 03/05/2020 22:50, Michael Crooks wrote:
>
I assume you attached your code rather than pasted it into the message?
(I saw it when it was in the moderation queue so I know it was
originally there!) Unfortunately the server strips attachments for
security reasons, so you need to post the code pasted into the message.
I didn't look closely but one obvious issue you had was that your
return statement was inside your for loop so it always returns
after the first element. It never processes the others.
If that doesn't fix the issue repost with the code pasted into
the body.
--
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