[Tutor] basic function concept
Alan Gauld
alan.gauld at btinternet.com
Sun Nov 17 01:51:47 CET 2013
On 16/11/13 21: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 somebody made a mistake.
I don't know if this is your code or something you found in a
book or web page but whichever it's an error and Python won't
run it.
Also funct() is a waste of space since its never used...
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list