Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":14557,"date":"2015-05-06T22:33:23","date_gmt":"2015-05-07T03:33:23","guid":{"rendered":"https:\/\/gilrg18.withknown.com\/2015\/mastery24-creation-and-use-of-tuples-in-python"},"modified":"2015-05-06T22:33:23","modified_gmt":"2015-05-07T03:33:23","slug":"mastery24-creation-and-use-of-tuples-in-python-2","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/mastery24-creation-and-use-of-tuples-in-python-2\/","title":{"rendered":"#mastery24 Creation and use of tuples in Python"},"content":{"rendered":"
\n

A tuple is an unchangeable sequence of values.<\/p>\n

x=(“Gilberto”,18,”ISC”) \u00a0 #A<\/a> tuple is written with ()<\/p>\n

When you do this you create a tuple with three elements. You can access these elements individually by typing the variable and the then inside brackets directly to the right of the variable type the number of the element to which you are referring.<\/span><\/p>\n

print (x[o])<\/span><\/p>\n

>>>Gilberto<\/span><\/p>\n

Python starts numbering at 0 so Gilberto=0,18=1 and ISC = 2<\/span><\/p>\n

Packing and Unpacking:<\/span><\/span><\/strong><\/p>\n

In tuple packing, the values on the left are \u2018packed\u2019 together in a tuple:<\/span><\/p>\n

x=(“Gilberto”,18,”ISC”)<\/p>\n

In tuple unpacking, the values in a tuple on the right are \u2018unpacked\u2019 into the variables\/names on the right:<\/span><\/p>\n

x=(“Gilberto”,18,”ISC”)<\/p>\n

(Name,Age,Studies) = x<\/p>\n

print(Name,Age,Studies)<\/p>\n

>>>Gilberto 18 ISC<\/p>\n

Sources for info. about tuples:\u00a0Link<\/a><\/p>\n

\u00a0<\/p>\n

#TC<\/a>1014<\/p>\n

#MASTERY<\/a>24<\/p>\n

Gilberto Rogel Garc\u00eda<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

\n

A tuple is an unchangeable sequence of values.<\/p>\n

x=(“Gilberto”,18,”ISC”)   #A<\/a> tuple is written with ()<\/p>\n

When you do this you create a tuple with three elements. You can access these elements individually by typing the variable and the then inside brackets directly to the right of the variable type the number of the element to which you are referring.<\/span><\/p>\n

print (x[o])<\/span><\/p>\n

>>>Gilberto<\/span><\/p>\n

Python starts numbering at 0 so Gilberto=0,18=1 and ISC = 2<\/span><\/p>\n

Packing and Unpacking:<\/span><\/span><\/strong><\/p>\n

In tuple packing, the values on the left are ‘packed’ together in a tuple:<\/span><\/p>\n

x=(“Gilberto”,18,”ISC”)<\/p>\n

In tuple unpacking, the values in a tuple on the right are ‘unpacked’ into the variables\/names on the right:<\/span><\/p>\n

x=(“Gilberto”,18,”ISC”)<\/p>\n

(Name,Age,Studies) = x<\/p>\n

print(Name,Age,Studies)<\/p>\n

>>>Gilberto 18 ISC<\/p>\n

Sources for info. about tuples: Link<\/a><\/p>\n

 <\/p>\n

#TC<\/a>1014<\/p>\n

#MASTERY<\/a>24<\/p>\n

Gilberto Rogel García<\/p>\n<\/div>\n

Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,25],"tags":[332,255,304,486,45,287],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/14557"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=14557"}],"version-history":[{"count":5,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/14557\/revisions"}],"predecessor-version":[{"id":17489,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/14557\/revisions\/17489"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=14557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=14557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=14557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}