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

    Join Date
    Apr 2005
    Posts
    1
    Rep Power
    0

    Returning all sorts of stuff at once


    Sorry everyone!

    Silly question, the answer to which I figured out before anyone replied.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Posts
    461
    Rep Power
    24
    well, since this could be searched i will give an answer

    you can create a tuple. so like:

    Code:
    def test():
        return 4, 'test', 'hmm'
    num, string1, string2 = test()
    print num
    print string1
    print string2
    so its pretty simple, for more info about tuples check it out on pythons web site: http://docs.python.org/tut/node7.html#SECTION007300000000000000000
  4. #3
  5. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    154
    This thread can be deleted. Since the starter of this thread remove his/her question, no one can learn from this.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2004
    Location
    There where the rabbits jump
    Posts
    556
    Rep Power
    11
    well a noob might wanna know someday so let it be
  8. #5
  9. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2004
    Location
    Meriden, Connecticut
    Posts
    1,797
    Rep Power
    154
    K.

IMN logo majestic logo threadwatch logo seochat tools logo