[Tutor] basic function concept

Mark Lawrence breamoreboy at yahoo.co.uk
Sun Nov 17 13:19:44 CET 2013


On 17/11/2013 06:31, John Aten wrote:
> Too bad that doesn't work.
>
> On Nov 16, 2013, at 11:16 PM, Alex Kleider wrote:
>
>> On 2013-11-16 13:20, Byron Ruffin wrote:
>>> def main(x, y, z):
>>>      print (x, y, z)
>>> def funct():
>>>      x = 1
>>>      y = 2
>>>      z = 3
>>>      return x, y, z
>>> main()
>>> Can someone tell me why main is not being given any arguments?
>>
>> Because you didn't give it any.
>> Try
>> main(funct())
>> instead.
>>

1) Please don't top post.
2) Your statement isn't of much use on a tutor mailing list so why not 
explain why and show the corrected code?

-- 
Python is the second best programming language in the world.
But the best has yet to be invented.  Christian Tismer

Mark Lawrence



More information about the Tutor mailing list