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":15635,"date":"2015-05-06T21:44:00","date_gmt":"2015-05-07T02:44:00","guid":{"rendered":"http:\/\/kenscourses.com\/tc101winter2015\/?guid=cbdccdbea90e91b855daa71c92c043db"},"modified":"2015-05-06T21:44:39","modified_gmt":"2015-05-07T02:44:39","slug":"mastery-24-creation-and-use-of-tuples-in-python-3","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/mastery-24-creation-and-use-of-tuples-in-python-3\/","title":{"rendered":"MASTERY 24 Creation and use of tuples in Python"},"content":{"rendered":"

CREACI\u00d3N Y USO DE TUPLES<\/h2>\n
Un “tuple” es como una lista que contiene elementos de cualquier valor y tipo. La principal diferencia entre un “tuple” y una lista es que los “tuples” no son mutables, es decir, no se pueden modificar a la hora de correr el programa. Para diferencia de un “tuple” y una lista visualmente es el uso de par\u00e9ntesis o “()”. Bueno, de hecho, no se usa mucho los par\u00e9ntesis; se puede utilizar solo par\u00e9ntesis y una coma. Otra forma de crear un tiple es utilizar el comando “tuple” y par\u00e9ntesis. Utilizaremos la mastery anterior<\/a>: <\/div>\n
<\/div>\n
\"MASTERY<\/a><\/div>\n
Voy a modificar la primera l\u00ednea sustituyendo los corchetes con par\u00e9ntesis:<\/div>\n
\"MASTERY<\/a><\/div>\n
<\/div>\n
Vemos que en la l\u00ednea 3 se quiere sustituir la posici\u00f3n n\u00famero 1 de la lista “sel” de un 8 a un 3. Intentamos hacer esto con un “tuple” y esto nos mostrar\u00e1 en el output:<\/div>\n

<\/p>\n

\"MASTERY<\/a><\/div>\n
Los tupes tienen varias funciones. Uno ser\u00eda el uso del comando “divmod”. Este toma 2 argumentos y los regresa con 2 valores diferentes que ser\u00edan el cociente y el residuo. Aqu\u00ed un ejemplo:<\/div>\n
\"MASTERY<\/a><\/div>\n
<\/div>\n
Otra funci\u00f3n ser\u00eda el “zip” con listas. Tenemos 2 variables: una con “tuple” y otra con una lista. Juntamos esto con “zip” y esto nos dar\u00e1: <\/div>\n
\"MASTERY<\/a><\/div>\n
<\/div>\n","protected":false},"excerpt":{"rendered":"

CREACIÓN Y USO DE TUPLES<\/h2>\n
Un “tuple” es como una lista que contiene elementos de cualquier valor y tipo. La principal diferencia entre un “tuple” y una lista es que los “tuples” no son mutables, es decir, no se pueden modificar a la hora de correr el programa. Para diferencia de un “tuple” y una lista visualmente es el uso de paréntesis o “()”. Bueno, de hecho, no se usa mucho los paréntesis; se puede utilizar solo paréntesis y una coma. Otra forma de crear un tiple es utilizar el comando “tuple” y paréntesis. Utilizaremos la mastery anterior<\/a>: <\/div>\n
<\/div>\n
<\/a><\/div>\n
Voy a modificar la primera línea sustituyendo los corchetes con paréntesis:<\/div>\n
<\/a><\/div>\n
<\/div>\n
Vemos que en la línea 3 se quiere sustituir la posición número 1 de la lista “sel” de un 8 a un 3. Intentamos hacer esto con un “tuple” y esto nos mostrará en el output:<\/div>\n

<\/p>\n

<\/a><\/div>\n
Los tupes tienen varias funciones. Uno sería el uso del comando “divmod”. Este toma 2 argumentos y los regresa con 2 valores diferentes que serían el cociente y el residuo. Aquí un ejemplo:<\/div>\n
<\/a><\/div>\n
<\/div>\n
Otra función sería el “zip” con listas. Tenemos 2 variables: una con “tuple” y otra con una lista. Juntamos esto con “zip” y esto nos dará: <\/div>\n
<\/a><\/div>\n
<\/div>\n

Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":149,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,25],"tags":[245,304,45],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/15635"}],"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\/149"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=15635"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/15635\/revisions"}],"predecessor-version":[{"id":15636,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/15635\/revisions\/15636"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=15635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=15635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=15635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}