Thread: to the devCoach

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    5
    Rep Power
    0

    to the devCoach


    ummm yeh i know that this might be a bit demanding, but can i get all the key words with what they do and examples with them + all the "import" functions
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Could you please look at the sticky regarding how to ask a question at the top of this forum . Also, in future please direct questions to particular users to them via PM or email.

    >>> import keyword
    >>> keyword.kwlist
    ['and', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'exec', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'not', 'or', 'pass', 'print', 'raise', 'return', 'try', 'while', 'yield']
    >>>
    Well here's your list of key words from the keyword module: http://www.python.org/doc/2.3.4/lib/module-keyword.html

    Mark.
    programming language development: www.netytan.com Hula

  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    5
    Rep Power
    0
    yeh ive already got all of those, but can i get a list of them e.g.

    raw_input()..
    this function will allow the user to input numbers and ....

    myInput=raw_input("don't bother typing anything>")

    elif..
    this keyword is similar to or, else, and if

    (i cant think of an example of this)

    but i hope you get wat i mean now
  6. #4
  7. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    13
    This is for Python 2.1 but most of the stuff is relevant:
    http://www.brunningonline.net/simon/python/PQR2.1.html
  8. #5
  9. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    You can find a more up to date version of teh Quick Ref here. Though i dout that even this covers the functions are about to be added in 2.4 .

    Edit: You can also find pretty good explinations of the functions here.

    Mark.
    Last edited by netytan; July 21st, 2004 at 02:35 AM.
    programming language development: www.netytan.com Hula

  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    5
    Rep Power
    0
    hey thanks guys this is great

    if anyone has anymore links please post them

IMN logo majestic logo threadwatch logo seochat tools logo