{"id":41015,"date":"2016-11-24T00:13:44","date_gmt":"2016-11-24T05:13:44","guid":{"rendered":"https:\/\/turtlingturtlousturtle.tumblr.com\/post\/153588950853"},"modified":"2016-11-24T00:13:44","modified_gmt":"2016-11-24T05:13:44","slug":"lists-6","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/lists-6\/","title":{"rendered":"Lists"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"https:\/\/turtlingturtlousturtle.tumblr.com\/post\/153588950853\"><a href=\"https:\/\/turtlingturtlousturtle.tumblr.com\/\">Just A Turtle Coding.<\/a><\/a><\/em><br \/><\/p>\n<p>What does a list means? Basically Python has a type of data that\u2019s named list that\u2019s closely related to a tuple. It is basically the same but we use [] instead of (). The only difference is that a list can be modifiable\u00a0\u201con-the-go\u201d.\u00a0<\/p><figure class=\"tmblr-full\" data-orig-height=\"280\" data-orig-width=\"500\" data-tumblr-attribution=\"elittlejoia:Wn6kPnSMs5D32lICTc6DMw:ZrOOgxEcRyiT\"><img src=\"https:\/\/66.media.tumblr.com\/tumblr_lxnbqpYDTU1qis1zio1_500.gif\" data-orig-height=\"280\" data-orig-width=\"500\"\/><\/figure><p>A list can be created by typing the name and adding some values, it will be indexed starting from 0<\/p><p>Let\u2019s say that my friends are called Juan Pancho and Roberto<\/p><p>friends = [\u201dJuan\u201d,\u201dPancho\u201d,\u201dRoberto\u201d]<br\/>then Juan would be 0, Pancho 1 and Roberto 2.<br\/>If I call to print friends[1], it would return Pancho.<\/p><p>I could also say that friends[1] = Paco, that would modify the value of Pancho and change it to Paco instead.<\/p><p>More info on:\u00a0<a href=\"http:\/\/sthurlow.com\/python\/lesson06\/\">http:\/\/sthurlow.com\/python\/lesson06\/<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at Just A Turtle Coding. What does a list means? Basically Python has a type of data that\u2019s named list that\u2019s closely related to a tuple. It is basically the same but we use [] instead of (). The only difference is that a list can be modifiable\u00a0\u201con-the-go\u201d.\u00a0A list can be created by &hellip; <a href=\"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/lists-6\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Lists<\/span><\/a><\/p>\n","protected":false},"author":37,"featured_media":41016,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[],"class_list":["post-41015","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/41015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/comments?post=41015"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/41015\/revisions"}],"predecessor-version":[{"id":41017,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/41015\/revisions\/41017"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media\/41016"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media?parent=41015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/categories?post=41015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/tags?post=41015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}