{"id":38942,"date":"2016-11-07T12:17:00","date_gmt":"2016-11-07T18:17:00","guid":{"rendered":"https:\/\/kenscourses.com\/tc101fall2016\/?guid=1bd45d004fd72c49d4938c7d352f9d5c"},"modified":"2016-11-07T12:17:44","modified_gmt":"2016-11-07T18:17:44","slug":"programming-and-hobbies-2016-11-07-121700","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/programming-and-hobbies-2016-11-07-121700\/","title":{"rendered":"Programming and Hobbies 2016-11-07 12:17:00"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"http:\/\/christa-vanilla98.blogspot.com\/2016\/11\/python-range-en-una-de-mis.html\"><a href=\"http:\/\/christa-vanilla98.blogspot.com\/\">Programming and Hobbies<\/a><\/a><\/em><br \/><\/p>\n<div style=\"text-align: center;\"><span style=\"color: #e06666;\"><u><b><span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">Python Range()<\/span><\/b><\/u><\/span><\/div><span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\"><br \/><\/span><div class=\"separator\" style=\"clear: both; text-align: center;\"><a href=\"https:\/\/2.bp.blogspot.com\/-eUynK7kz-WQ\/WCDADDiuOCI\/AAAAAAAAEWw\/7uZ5pUJGHf8MSoJNmobeCfU_5lJYBLGTgCLcB\/s1600\/rango.jpg\" imageanchor=\"1\" style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\"><img border=\"0\" height=\"198\" src=\"https:\/\/2.bp.blogspot.com\/-eUynK7kz-WQ\/WCDADDiuOCI\/AAAAAAAAEWw\/7uZ5pUJGHf8MSoJNmobeCfU_5lJYBLGTgCLcB\/s400\/rango.jpg\" width=\"400\" \/><\/a><\/div><span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">En una de mis publicaciones anteriores utilic\u00e9 la funci\u00f3n de range\/rango, pero no tuve la oportunidad de explicarlos; as\u00ed que en esta ocasi\u00f3n les explicar\u00e9 que son y como se utilizan.<\/span><br \/><span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\"><br \/><\/span><span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\"><br \/><\/span><span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\"><br \/><\/span><span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">Cuando deseamos definir un l\u00edmite drentro de nuestro c\u00f3digo podemos utilizar nuestra opci\u00f3n de \"range\", ya que nuestra funci\u00f3n crea una lista de n\u00fameros enteros en suceci\u00f3n aritm\u00e9tica. Adem\u00e1s nuestra funci\u00f3n puede recivir de 1-3 argumentos num\u00e9ricos enteros.<\/span><br \/><br \/><span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">Es importante mencionar que range puede utilizarse dentro de condicionales, por ejemplo:&nbsp;<\/span><br \/><span style=\"color: #0b5394;\"><span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">for n in range (1,10): do this.<\/span><\/span><br \/><br \/><span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\"><span style=\"color: #38761d;\"><span style=\"color: black;\">Tambi\u00e9n puede utilizarse para encontrar numeros de manera aleatoria, como se muestra a continuaci\u00f3n:<\/span><\/span><\/span><br \/><span style=\"color: #351c75;\"><span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">numAleatorio = random.randrange(1, 101)<\/span><\/span><br \/><span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\"><span style=\"color: #38761d;\"><span style=\"color: black;\">En este caso es importante destacar que nuestra funci\u00f3n siempre toma un valor anterior al que se le pide, en este caso solo se tomar\u00e1n en cuenta los valores de 1-100.&nbsp;<\/span><\/span><\/span><br \/><br \/><span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\"><span style=\"color: #38761d;\"><span style=\"color: black;\">Espero les sirva esta publicaciones, si tienen dudas pueden publicarlas en mi blog, tambi\u00e9n pueden observar el siguiente link para conocer un poco m\u00e1s sobre esta funci\u00f3n: <a href=\"https:\/\/geekytheory.com\/la-funcion-range-en-python\/\" >Funci\u00f3n range()<\/a>&nbsp;<\/span> <\/span><\/span><br \/><span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">&nbsp;<\/span>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at Programming and Hobbies Python Range()En una de mis publicaciones anteriores utilic\u00e9 la funci\u00f3n de range\/rango, pero no tuve la oportunidad de explicarlos; as\u00ed que en esta ocasi\u00f3n les explicar\u00e9 que son y como se utilizan.Cuando deseamos definir un l\u00edmite drentro de nuestro c\u00f3digo podemos utilizar nuestra opci\u00f3n de &#8220;range&#8221;, ya que nuestra &hellip; <a href=\"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/programming-and-hobbies-2016-11-07-121700\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Programming and Hobbies 2016-11-07 12:17:00<\/span><\/a><\/p>\n","protected":false},"author":23,"featured_media":38943,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[],"class_list":["post-38942","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\/38942","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\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/comments?post=38942"}],"version-history":[{"count":4,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38942\/revisions"}],"predecessor-version":[{"id":40117,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38942\/revisions\/40117"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media\/38943"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media?parent=38942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/categories?post=38942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/tags?post=38942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}