[Tutor] Variables and Functions
alan.gauld at btinternet.com
Thu Nov 29 02:01:59 CET 2007
"Devon MacIntyre" <macintyredev at gmail.com> wrote
> Just wondering, how would I get a variable out of one function and
return the value from one function and pass it as an argument to the
x = [1,2,3]
myList = oneFunction()
Does that make any kind of sense to you?
For more on functions and arguments and parameter passing
see my tutorial topic on Modules and functions.
> called 'new_game()'. Also, I'm using a Mac, but I'm not sure if that
> the code or not.
Nope, the Mac makes no difference whatsoever in this situation. :-)
Author of the Learn to Program web site
More information about the Tutor