[Tutor] Feeding a list into a function as arguments
Stevie Broadfoot
coollikestevie at gmail.com
Thu Apr 26 09:53:17 CEST 2007
I have a list... say for example
list = ["hello", "there"]
and i have a function
def printout(firstword, secondword):
print firstword
print secondword
and i want to call
the function like this
printout(list)
but that doesnt work because it takes the list as an argument.
How can I get around this problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070426/907bac9e/attachment.htm
More information about the Tutor
mailing list