943,936 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 370
  • Python RSS
Mar 28th, 2009
0

argument passing :/

Expand Post »
Hi everyone. I'm having a little trouble trying to understand what argument passing really is. I know that it 'passes' arguments, but what does that actually mean and how can you use it to my advantage?

ex:
Python Syntax (Toggle Plain Text)
  1. def New(spam,n=1):

so what does that actually do?
Similar Threads
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
besktrap is offline Offline
58 posts
since Jul 2008
Mar 28th, 2009
0

Re: argument passing :/

This online book has a good explanation of arguments http://en.wikibooks.org/wiki/Python_...ming/Functions After that, the best way to learn is to try a few things yourself, print the results, and see what is happening.
Reputation Points: 741
Solved Threads: 692
Nearly a Posting Maven
woooee is offline Offline
2,307 posts
since Dec 2006
Mar 28th, 2009
0

Re: argument passing :/

thanks alot!
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
besktrap is offline Offline
58 posts
since Jul 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Using urllib2 to post data
Next Thread in Python Forum Timeline: Removing duplicates from list in slightly different case





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC