{"id":38551,"date":"2016-10-27T12:31:30","date_gmt":"2016-10-27T17:31:30","guid":{"rendered":"http:\/\/shura46.wordpress.com\/?p=82"},"modified":"2016-10-27T12:31:30","modified_gmt":"2016-10-27T17:31:30","slug":"llamando-funciones","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/llamando-funciones\/","title":{"rendered":"\u201cLlamando\u201d funciones"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"https:\/\/shura46.wordpress.com\/2016\/10\/27\/llamando-funciones\/\"><a href=\"https:\/\/shura46.wordpress.com\">Python basics for everyone<\/a><\/a><\/em><br \/><\/p>\n<p>Cuando &#8220;llamas&#8221; a una funcion, basicamente lo que estas haciendo basicamente es decirle al programa que ejecute esa funcion. Asi que si tu tienes una funcion que a\u00f1ada dos numeros, por ejemplo:<\/p>\n<p><img class=\"alignnone  wp-image-86\" src=\"https:\/\/shura46.files.wordpress.com\/2016\/10\/screenshot_1.png?w=339&#038;h=85\" alt=\"screenshot_1\" width=\"339\" height=\"85\" srcset=\"https:\/\/shura46.files.wordpress.com\/2016\/10\/screenshot_1.png?w=339&amp;h=85 339w, https:\/\/shura46.files.wordpress.com\/2016\/10\/screenshot_1.png?w=150&amp;h=38 150w, https:\/\/shura46.files.wordpress.com\/2016\/10\/screenshot_1.png?w=300&amp;h=75 300w, https:\/\/shura46.files.wordpress.com\/2016\/10\/screenshot_1.png 582w\" sizes=\"(max-width: 339px) 100vw, 339px\" \/><\/p>\n<p>Tu llamarias la funcion asi:<\/p>\n<p><img class=\"alignnone  wp-image-90\" src=\"https:\/\/shura46.files.wordpress.com\/2016\/10\/screenshot_3.png?w=340&#038;h=110\" alt=\"screenshot_3\" width=\"340\" height=\"110\" srcset=\"https:\/\/shura46.files.wordpress.com\/2016\/10\/screenshot_3.png?w=340&amp;h=110 340w, https:\/\/shura46.files.wordpress.com\/2016\/10\/screenshot_3.png?w=150&amp;h=48 150w, https:\/\/shura46.files.wordpress.com\/2016\/10\/screenshot_3.png?w=300&amp;h=97 300w, https:\/\/shura46.files.wordpress.com\/2016\/10\/screenshot_3.png 675w\" sizes=\"(max-width: 340px) 100vw, 340px\" \/><\/p>\n<p>Que eso regresaria el numero 8, tu puedes poner cualquier numero dentro de los parentesis. Tambien puedes &#8220;llamar&#8221; una funcion de la siguiente manera:<\/p>\n<p><img class=\"alignnone  wp-image-94\" src=\"https:\/\/shura46.files.wordpress.com\/2016\/10\/screenshot_4.png?w=349&#038;h=114\" alt=\"screenshot_4\" width=\"349\" height=\"114\" srcset=\"https:\/\/shura46.files.wordpress.com\/2016\/10\/screenshot_4.png?w=349&amp;h=114 349w, https:\/\/shura46.files.wordpress.com\/2016\/10\/screenshot_4.png?w=150&amp;h=49 150w, https:\/\/shura46.files.wordpress.com\/2016\/10\/screenshot_4.png?w=300&amp;h=98 300w, https:\/\/shura46.files.wordpress.com\/2016\/10\/screenshot_4.png 646w\" sizes=\"(max-width: 349px) 100vw, 349px\" \/><\/p>\n<p>Esto fijaria la respuesta de la variable a 11 en ese caso.<\/p>\n<p>&nbsp;<\/p>\n<p>Fuente:\u00a0http:\/\/stackoverflow.com\/questions\/19130958\/what-does-it-mean-to-call-a-function-in-python<\/p><br \/>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/shura46.wordpress.com\/82\/\"><img alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/comments\/shura46.wordpress.com\/82\/\" \/><\/a> <img alt=\"\" border=\"0\" src=\"https:\/\/pixel.wp.com\/b.gif?host=shura46.wordpress.com&#038;blog=11870756&%23038;post=82&%23038;subd=shura46&%23038;ref=&%23038;feed=1\" width=\"1\" height=\"1\" \/>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at Python basics for everyone Cuando &#8220;llamas&#8221; a una funcion, basicamente lo que estas haciendo basicamente es decirle al programa que ejecute esa funcion. Asi que si tu tienes una funcion que a\u00f1ada dos numeros, por ejemplo: Tu llamarias la funcion asi: Que eso regresaria el numero 8, tu puedes poner cualquier numero &hellip; <a href=\"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/llamando-funciones\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u201cLlamando\u201d funciones<\/span><\/a><\/p>\n","protected":false},"author":40,"featured_media":86,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[24,33],"class_list":["post-38551","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-python","tag-tc101"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38551","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\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/comments?post=38551"}],"version-history":[{"count":16,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38551\/revisions"}],"predecessor-version":[{"id":43065,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38551\/revisions\/43065"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/pages\/86"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media?parent=38551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/categories?post=38551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/tags?post=38551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}