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":11133,"date":"2015-04-19T15:22:33","date_gmt":"2015-04-19T20:22:33","guid":{"rendered":"https:\/\/efrainduarte95.withknown.com\/2015\/mastery24-creation-and-use-of-tuples-in-python"},"modified":"2015-04-19T15:22:33","modified_gmt":"2015-04-19T20:22:33","slug":"mastery24-creation-and-use-of-tuples-in-python","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/mastery24-creation-and-use-of-tuples-in-python\/","title":{"rendered":"mastery24 Creation and use of tuples in Python"},"content":{"rendered":"
\n

#TC1014<\/a> #Mastery24<\/a><\/p>\n

In this mastery I will talk about tuples.A tuple is a sequence of immutable Python objects, is like lists, but they have on especially diference, that ones yu create a tuple you can not modify but in lits you can. Also the sintax of tuples are parentheses and lists use square brackets.for example:<\/p>\n

tuple1=(“efrain”,”duarte”,”lopez”,20)<\/p>\n

you can write strings,numbers is just like lists.<\/p>\n

be careful when you just write one thing inside a tuple you have to write it like this:<\/p>\n

tuple2=(“ice”,) ——> such is just one thing you have to add a comma to the end<\/p>\n

To acces values in tuples  you have to use square brackets.for example:<\/p>\n

tuple1=(“efrain”,”duarte”,”lopez”,20)<\/p>\n

print tuple[0]——–>the result will be “efrain”<\/p>\n

print tuple[0:2]—–>the result will be [“efrain”,”duarte”,”lopez”]<\/p>\n

this is counting beging form 0.<\/p>\n

You cant modify a tuple but you can create a new tuple with other tuples like this:<\/p>\n

tuple3=tuple1+tuple2<\/p>\n

tuple3 will be>>>(efrain”,”duarte”,”lopez”,20,”ice”)<\/p>\n

Also the tuples respond to the + and * operators much like strings, and this operations will create a new tuple not just strings .For example the basic tuples operations:<\/p>\n

tuple4=(1,2,3,4)<\/p>\n

print  lent(tuple4)——>resutl= 4<\/p>\n

also we can use Concatenation,Repetition,Iteration.<\/p>\n

an important point is that we can modify a list inside a tuple, but the tuple we can n ever touch it.<\/p>\n

for more information here is a link its very helpful:<\/p>\n

http:\/<\/wbr>\/<\/wbr>www.tutorialspoint.com\/<\/wbr>python\/<\/wbr>python_tuples.htm<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

#TC1014 #Mastery24In this mastery I will talk about tuples.A tuple is a sequence of immutable Python objects, is like lists, but they have on especially diference, that ones yu create a tuple you can not modify but in lits you can. Also the si… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,25],"tags":[304,45],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/11133"}],"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\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=11133"}],"version-history":[{"count":6,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/11133\/revisions"}],"predecessor-version":[{"id":19096,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/11133\/revisions\/19096"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=11133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=11133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=11133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}