[Tutor] Algorithm
Alan Gauld
alan.gauld at btinternet.com
Mon Dec 28 12:48:57 EST 2015
On 28/12/15 17:32, Joel Goldstick wrote:
> I believe the code following should not be indented as that makes it part
> of your function
>
>
>> numlist1 = [1,2,3,4,5]
>> numlist2 = [10,20,30,40,50]
>> largest = get_algorithm_result(numlist1)
>> print largest
Ah, that makes sense. I couldn't think what the OP was trying
to do with those lines.
If they are outside the function then it all makes perfect sense.
--
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