Join Club ShowMeDo to Learn Python!

This series is a part of Club ShowMeDo. Click to learn why you should join our club with a simple monthly subscription.

  • We teach Python and all the cool modules
  • Topics include beginner Python, GUIs, Web and Desktop Apps
  • Long, specially crafted video tutorials just for you
  • Club video tutorials extend our normal Free content
  • Save your time - we've done the research for you
  • Keep your skills up-to-date
  • Learn at your own pace, everything you need is shown to you
  • Over 12 hours of archived material are waiting for you in the club

Name: [002] Ian Ozsvald
Member: 109 months
Authored: 181 videos
Description: I am the co-founder of ShowMeDo (see http://showmedo.com/about), author of `The Screencasting Handbook <http://thescreencastinghandbook.com>`_ and the founder of the professional screencast production company `ProCasts <http://procasts.co.uk>`_: .. image:: http://procasts.co.uk/media/procasts_sma ...

tuple [ID:753] (12/14)

in series: Python Beginners - Common Variables and Containers

(Showmedo is undergoing major changes. To report any problems viewing the videos please email us and include browser and OS specifics. Cheers - Kyran.)

Tuples are quite similar to lists (as shown earlier). You can bundle several items together which are passed around under one variable, this can be handy.

I'll show you how they work and discuss how they're similar to lists. You might find that you want to ignore them when you're first learning Python and instead focus on using lists, it'll be useful to you to know the syntax for tuples of course.

Got any questions?

Get answers in the ShowMeDo Learners Google Group.

Video statistics:

  • Video's rank shown in the most popular listing
  • Video plays: 229 (since July 30th)
  • Plays in last week: 0
  • Published: 77 months ago

Thank-yous, questions and comments

If this video tutorial was helpful please take some time to say thank-you to the authors for their hard work. Feel free to ask questions. Let the author know why their video tutorial was useful - what are you learning about? Did the video tutorial save you time? Would you like to see more?

You may also want to see our ShowMeDo Google Group to speak to our active users and authors.

Your email address will not be published.

Show some quick comments >>








All comments excluding tick-boxed quick-comments

to get

<type 'tuple'>

I have to type

type((1,))

but this is not how you showed it in the video.


When I (using Python 2.6.2 on darwin) type in

type(1, )

I get

<type 'int'>

but

a = (1,)

and

type(a)

gives

<type 'tuple'>

Why is that?

There is a discussion on the pronunciation of 'tuple' at <http://www.velocityreviews.com/forums/t354344-how-do-you-pronounce-tuple.html>

When you link to the online Python documentation, you could link to the specific place on the page; tuples are e.g. on <http://docs.python.org/tutorial/datastructures.html#tuples-and-sequences>. What you link to is <http://docs.python.org/tutorial/datastructures.html#SECTION007300000000000000000>, but there is no anchor named "SECTION007300000000000000000", so the top is shown.


Useful... I wonder if tuples are unique to Python? I have never encountered them before.


A practical real world example will help grasp the cocept in the context intended


Guido van Rossum pronounces ist that way ;-)

On a more serious note: The word "tuple" (if I remember correctly) comes from mathematics (n-tuple). I've never heard anyone pronounce it "'tʌpl", just ˈtuːpɪl or ˈtjuːpɪl (including my maths teachers) but that's just my personal experience.


Lucas, can you give us a reference? I've searched it over internet's English dictionaries, but none seem to specify its pronunciation.


I think it's pronounced ˈt(j)uːpɪl


feedback: You use 'brackets' to refer to the parenthesis, although it would be more precise to say "round-brackets".


The ShowMeDo Robot says - this video is now published, thanks for adding to ShowMeDo.


Your video has been edited. This is an automatic post by ShowMeDo.


Your video has been edited. This is an automatic post by ShowMeDo.


Showmedo is a peer-produced video-tutorials and screencasts site for free and open-source software (FOSS)- with the exception of some club videos, the large majority are free to watch and download.

how to help » about » faq »

Educating the Open-source Community With Showmedo

Although as important as the software it supports, education and documentation are relatively neglected in the Open-source world. Coders love to code, and explaining how best to use or improve the software tends to be deferred or even sidelined.

At Showmedo we believe the community can play a vital role here and also say thanks for the tools and software that make our lives easier. If you have a piece of software you love or a programming langugage you are enthusiastic about, why not make a screencast showing others how to use it? All the stuff you wish you'd been told, the tips, tricks, insights that would have saved you time and frustration.

Screencasting is easier than you think, and we're happy to help you. You can emailus for advice or just use some of the how-to screencasts on the site. This screencasting learning-pathis a good place to start.

Kudos and Thanks for Ian

Learning Paths

This series lies on the following learning-paths. Learning-paths are a new initiative at Showmedo, to start structuring our content better. You can find out more here.

Content

Feedback

Showmedo's development is fairly rapid and bugs will inevitably creep in. If you have any problems please drop us a line using the contact address below. Likewise, any suggestions for improvements to the site are gratefully received.

feedback@showmedo.com