![]() |
|
#1
|
||||
|
||||
Re: Beginning Python Tutorial (Part 10)I just posted a GID Community blog entitled: Beginning Python Tutorial (Part 10).
Quote:
Please let me know what you think. This is an auto-generated message posted by GIDNetwork™ on behalf of the author. __________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#2
|
||||
|
||||
Re: Beginning Python Tutorial (Part 10)Hmm, looks like there's something wrong w/ the indenting mechanism in the second paragraph.
__________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#3
|
||||
|
||||
Keyword ArgumentsIn one paragraph, you wrote:
Quote:
What does that mean? Can we have an example? |
|
#4
|
||||
|
||||
Re: Keyword ArgumentsOops, I was going to come back to that but forgot.
Keyword arguments are similar to default arguments, wherein a default value is assigned to each keyword. The function can use either the default value for the keyword or a new value can be assigned using the standard keyword = value. Using keyword arguments eliminates the need to match a value to an argument's position, like the normal default values do. Here's an example from the book Python How to Program: Python Code:
__________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#5
|
||||
|
||||
Re: Beginning Python Tutorial (Part 10)Quote:
__________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#6
|
||||
|
||||
Re: Keyword ArgumentsI get it now. Thank you
I think this keyword arguments thingy is so cool. This is the first time I am seeing something like this. |
Recent GIDBlog
Toyota - 2008 July Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: Beginning Python Tutorial (Part 9) | crystalattice | Python Forum | 0 | 19-Feb-2006 01:04 |
| Re: Beginning Python Tutorial (Part 6) | crystalattice | Python Forum | 0 | 05-Oct-2005 18:48 |
| Re: Beginning Python Tutorial (Part 5) | crystalattice | Python Forum | 0 | 04-Oct-2005 04:27 |
| Re: Beginning Python Tutorial (Part 2) | crystalattice | Python Forum | 2 | 31-Jul-2005 12:25 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The