| | |
argument passing :/
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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:
so what does that actually do?
ex:
Python Syntax (Toggle Plain Text)
def New(spam,n=1):
so what does that actually do?
•
•
Join Date: Dec 2006
Posts: 1,065
Reputation:
Solved Threads: 299
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.
![]() |
Similar Threads
- Passing Structures by Reference (C++)
- Multiple argument passing (Python)
- Problem with execv argument passing (C++)
- passing a vector to a function? :errors: (C++)
- C++ BASICS ==> Pointers, Call by Reference/Value, Inheritance, Functions & Arrays (C++)
- Passing arguments to jsp file (Java)
- passing arrays in visual basic (Visual Basic 4 / 5 / 6)
Other Threads in the Python Forum
- Previous Thread: Using urllib2 to post data
- Next Thread: Removing duplicates from list in slightly different case
| Thread Tools | Search this Thread |
Tag cloud for Python
ansi assignment avogadro backend beginner binary bluetooth character cmd code customdialog data decimals dictionary drive dynamic error examples excel exe file float format ftp function gnu graphics gui heads homework http ideas import input java leftmouse line linux list lists logging loop module mouse newb number numbers output parsing path pointer port prime program programming progressbar projects push py2exe pygame pyqt python random recursion recursive refresh schedule screensaverloopinactive script scrolledtext sqlite ssh statistics stdout string strings sudokusolver sum table terminal text thread threading time tkinter tlapse tricks tuple tutorial ubuntu unicode update urllib urllib2 variable wikipedia windows write wxpython xlib






