ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-tutor
python-tutor
[Tutor] parameters vs arguments
by Kristin Wilcox other posts by this author
Nov 4 2009 5:11PM messages near this date
Re: [Tutor] Making http posts | Re: [Tutor] parameters vs arguments
I'm just starting to learn Python, and some of the vocabulary has me a bit
confused. I was hoping someone could help me out. People were so helpful
last time!

I'm reading stuff from multiple sources, and it seems to me like the words
"parameters" and "arguments" are used interchangeably. But I'm not sure if
this is a wrong perception, due to my lack of understanding, or if these
terms are truly synonyms.

When I define, say, function example like this...
def example(x,y):

are x and y arguments? or parameters?

And when I call the function and pass it values

example(32,17) are those values arguments or parameters? I *thought* this
was called 'passing arguments'...

I actually thought x and y would be referred to as arguments in both cases,
but then sometimes I think I hear them called parameters.

Help? Am I missing some nuances here?

Thanks for reading!

-Kris
Thread:
Kristin Wilcox
Modulok
Binto
Alan Gauld
Binto
Kent Johnson

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved