{"id":3820,"date":"2013-08-23T06:01:44","date_gmt":"2013-08-22T20:01:44","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=3820"},"modified":"2013-08-23T06:01:44","modified_gmt":"2013-08-22T20:01:44","slug":"python-tuple-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/python-tuple-primer-tutorial\/","title":{"rendered":"Python Tuple Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Python\/Tuple\/Python_Tuple_Primer.jpg\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Python Tuple Primer Tutorial ... http:\/\/www.python.org\/\" src=\"http:\/\/www.rjmprogramming.com.au\/Python\/Tuple\/Python_Tuple_Primer.jpg\" title=\"Python Tuple Primer Tutorial ... http:\/\/www.python.org\/\"  \/><\/a><p class=\"wp-caption-text\">Python Tuple Primer Tutorial ... http:\/\/www.python.org\/<\/p><\/div>\n<p>In this tutorial we examine the Python data structure called tuple.   Tuples are interesting in that different base data types that can&#8217;t cohabit an array can be part of a tuple.   This tutorial builds on the <a title='Python Primer Tutorial' href='#pptbelow'>Python Primer Tutorial<\/a> of previous times, presented below.  Let&#8217;s see immediately below what Wikipedia says about the very interesting Python programming language.<\/p>\n<blockquote><p>Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs.<\/p><\/blockquote>\n<p>In this primer  <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/Python\/Tuple\/Python_Tuple_Primer.jpg'>tutorial<\/a> you can see some tuple usage in Python for a Linux Bash session via the Mac laptop application Terminal.<\/p>\n<p>Here is another Python tutorial called <a target=_blank title='Python tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=1687'>Python Processing Directory Filespec Primer Tutorial<\/a>.<\/p>\n<p>Link to downloadable Python programming source code which can be renamed to <a target=_blank title='tupletut.py' href='http:\/\/www.rjmprogramming.com.au\/Python\/Tuple\/tupletut.py_GETME'>tupletut.py<\/a> here.<\/p>\n<p>Link to downloadable supervisory shell script programming source code which can be renamed to <a target=_blank title='tupletut.sh' href='http:\/\/www.rjmprogramming.com.au\/Python\/Tuple\/tupletut.sh_GETME'>tupletut.sh<\/a> created at command line using <em>vi tupletut.sh<\/em> (vi can be scary until you realize no matter how little you know, at the end you can go wq! to save and clobber (or q! to just quit), and that &lt;esc&gt;: are your very big friends, in getting back to the : prompt, (very) often) and then went <em>chmod 777 tupletut.sh<\/em> and then to execute from the command line went <em>.\/tupletut.sh<\/em><\/p>\n<p>Link to Python website &#8230; <a target=_blank href='http:\/\/www.python.org\/' title='Home of Python'>Home of Python &#8230; where quote up the top resides<\/a><br \/>\nLink to a very useful Python tuple tutorial which helped with this tutorial, so, thanks &#8230; <a target=_blank href='http:\/\/docs.python.org\/release\/1.5.1p1\/tut\/tuples.html' title='Useful Python tuple tutorial'>Useful Python tuple tutorial<\/a><br \/>\nLink to Python jobs done &#8230; <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/Python\/' title='Python example usage'>Python jobs done<\/a> &#8230; personal experience<br \/>\nAnd yes, it&#8217;s true &#8230; the language name is a fond reference to <a target=_blank title='Monty Python' href='http:\/\/www.youtube.com\/watch?v=T70-HTlKRXo'>Monty Python<\/a><br \/>\n<!--\/p--><\/p>\n<hr \/>\n<p id=\"pptbelow\">Previous <a target=_blank title='Python Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=673'>Python Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Python\/Examples\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Python Primer Tutorial ... http:\/\/www.python.org\/\" src=\"http:\/\/www.rjmprogramming.com.au\/Python\/Python_TclTk_HangMan.JPG\" title=\"Python Primer Tutorial ... http:\/\/www.python.org\/\"  \/><\/a><p class=\"wp-caption-text\">Python Primer Tutorial ... http:\/\/www.python.org\/<\/p><\/div>\n<p>Have you heard of Python?<\/p>\n<blockquote><p>Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs.<\/p><\/blockquote>\n<p>Have used it for <a target=_blank title='Python Tkinter GUI' href='http:\/\/docs.activestate.com\/activepython\/2.6\/python\/library\/tkinter.html'>Games Programming<\/a> and it is great at <a target=_blank title='Python and the SAX API parsing XML' href='http:\/\/mail.python.org\/pipermail\/python-dev\/2000-October\/009946.html'>parsing XML via the SAX API<\/a>.<\/p>\n<p>Python has some really interesting data structures such as tuples, lists, sets, dictionaries for instance &#8230; read more <a target=_blank title='Python data types' href='http:\/\/zetcode.com\/lang\/python\/datatypes\/'>here<\/a>.<\/p>\n<p>In this primer  <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/Python\/Examples\/'>tutorial<\/a> you can see some snapshots showing examples of use.<\/p>\n<p>Here is another Python tutorial called <a target=_blank title='Python tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=1687'>Python Processing Directory Filespec Primer Tutorial<\/a>.<\/p>\n<p>Link to Python website &#8230; <a target=_blank href='http:\/\/www.python.org\/' title='Home of Python'>Home of Python &#8230; where quote up the top resides<\/a><br \/>\nLink to Python jobs done &#8230; <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/Python\/' title='Python example usage'>Python jobs done<\/a> &#8230; personal experience<br \/>\nAnd yes, it&#8217;s true &#8230; the language name is a fond reference to <a target=_blank title='Monty Python' href='http:\/\/www.youtube.com\/watch?v=T70-HTlKRXo'>Monty Python<\/a>\n<\/p>\n<hr \/>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d3820' onclick='var dv=document.getElementById(\"d3820\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?s=Python\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d3820' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we examine the Python data structure called tuple. Tuples are interesting in that different base data types that can&#8217;t cohabit an array can be part of a tuple. This tutorial builds on the Python Primer Tutorial of &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/python-tuple-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[997,1012,1316,1319],"class_list":["post-3820","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-programming","tag-python","tag-tuple","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/3820"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=3820"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/3820\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=3820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=3820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=3820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}