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":9687,"date":"2015-04-05T03:03:00","date_gmt":"2015-04-05T08:03:00","guid":{"rendered":"http:\/\/kenscourses.com\/tc101winter2015\/?guid=07fb0f7491ddfa10387b41e274a34c91"},"modified":"2015-04-05T03:03:29","modified_gmt":"2015-04-05T08:03:29","slug":"mastery-14-creating-and-using-a-python-module-3","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/mastery-14-creating-and-using-a-python-module-3\/","title":{"rendered":"MASTERY 14 Creating and using a Python Module"},"content":{"rendered":"

CREAR Y USAR UN M\u00d3DULO EN PYTHON<\/h2>\n
Ya sabemos qu\u00e9 es un m\u00f3dulo y c\u00f3mo utilizarlos. Como toque adicional a este Mastery, se puede crear tus propios m\u00f3dulos con sus funciones como el de las funciones. Para eso voy a tener que utilizar 2 archivos diferentes. Uno se va llamar Mach.py y el otro Modulos.py.<\/div>\n
<\/div>\n
Aqu\u00ed te muestro el primer archivo:<\/div>\n
\"MASTERY<\/a><\/div>\n
Estoy definiendo 2 funciones: una que hace una operaci\u00f3n matem\u00e1tica y otra que solo imprime caracteres. Esto es necesario a la hora de crear m\u00f3dulos. Al final, hay que guardar el archivo con nombre(en este caso Mach.py).<\/div>\n
<\/div>\n
Ahora pasamos al otro archivo:<\/div>\n
\"MASTERY<\/a><\/div>\n
Como en el MASTERY 13<\/a>, se debe de importar el nombre del m\u00f3dulo o, en este caso, del archivo, pero sin el “.py”.  Tambi\u00e9n nombrar el m\u00f3dulo primero y luego, el nombre de la funci\u00f3n o de las funciones y sus respectivos argumentos. Aqu\u00ed estoy nombrando esas funciones para que me haga est\u00e9n involucrados en una operaci\u00f3n dentro de una funci\u00f3n del otro archivo. El output ser\u00eda as\u00ed: <\/div>\n
\"MASTERY<\/a><\/div>\n
Lo de “None” en el resultado pienso que ser\u00eda que en la funci\u00f3n Machi no se declar\u00f3 ni un argumento, es solo una funci\u00f3n que imprime varios caracteres. No s\u00e9 si esa es la causa de mi resultado.<\/div>\n","protected":false},"excerpt":{"rendered":"

CREAR Y USAR UN MÓDULO EN PYTHON<\/h2>\n
Ya sabemos qué es un módulo y cómo utilizarlos. Como toque adicional a este Mastery, se puede crear tus propios módulos con sus funciones como el de las funciones. Para eso voy a tener que utilizar 2 archivos diferentes. Uno se va llamar Mach.py y el otro Modulos.py.<\/div>\n
<\/div>\n
Aquí te muestro el primer archivo:<\/div>\n
<\/a><\/div>\n
Estoy definiendo 2 funciones: una que hace una operación matemática y otra que solo imprime caracteres. Esto es necesario a la hora de crear módulos. Al final, hay que guardar el archivo con nombre(en este caso Mach.py).<\/div>\n
<\/div>\n
Ahora pasamos al otro archivo:<\/div>\n
<\/a><\/div>\n
Como en el MASTERY 13<\/a>, se debe de importar el nombre del módulo o, en este caso, del archivo, pero sin el “.py”.  También nombrar el módulo primero y luego, el nombre de la función o de las funciones y sus respectivos argumentos. Aquí estoy nombrando esas funciones para que me haga estén involucrados en una operación dentro de una función del otro archivo. El output sería así: <\/div>\n
<\/a><\/div>\n
Lo de “None” en el resultado pienso que sería que en la función Machi no se declaró ni un argumento, es solo una función que imprime varios caracteres. No sé si esa es la causa de mi resultado.<\/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":[214,45],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/9687"}],"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=9687"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/9687\/revisions"}],"predecessor-version":[{"id":9688,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/9687\/revisions\/9688"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=9687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=9687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=9687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}