[Tutor] basic function concept

John Aten welcome.to.eye.o.rama at gmail.com
Sun Nov 17 07:31:38 CET 2013


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.
> 
> 
>> _______________________________________________
>> Tutor maillist  -  Tutor at python.org
>> To unsubscribe or change subscription options:
>> https://mail.python.org/mailman/listinfo/tutor
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list