{"id":468,"date":"2025-08-22T00:29:28","date_gmt":"2025-08-22T00:29:28","guid":{"rendered":"https:\/\/hmoweb.net\/Python\/?p=468"},"modified":"2025-08-30T17:37:46","modified_gmt":"2025-08-30T17:37:46","slug":"ejercicio-11-ciclo-while","status":"publish","type":"post","link":"https:\/\/hmoweb.net\/Python\/2025\/08\/22\/ejercicio-11-ciclo-while\/","title":{"rendered":"Ejercicio 11 Ciclo While"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Es recomendable que este ejercicio lo escribas por Partes y lo revise para ver que se obtiene el resultado esperado. Este ejercicio lo podr\u00e1s seguir en el video <a href=\"https:\/\/youtu.be\/DLikpfc64cA?si=0L72-SeJgpO8UH4l&amp;t=10530s\" target=\"_blank\" rel=\"noreferrer noopener\">Aprender Python<\/a> en el minuto [2:55:30].<\/p>\n\n\n\n<a href=\"https:\/\/youtu.be\/DLikpfc64cA?si=7NvurLMnWqAcr0KJ&#038;t=10530s\" target=\"_blank\">\n  Ver video desde el minuto 2:55:30\n<\/a>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n&quot;&quot;&quot;\nEjercicio # 11 Ciclos While\n21\/08\/2025\nEdito: AHR\n&quot;&quot;&quot;\n\nprint(&quot;\\nActividad 1&quot;)\nprint(&quot;\\nCiclo While&quot;)\nprint(&quot; while &lt;condici\u00f3n&gt;: &quot;)\nx = 20\nwhile x &lt; 35:\n    print(x)\n    x += 3\nprint(&quot;En caso de un bucle infinito teclear CTRL+C para interrumpir el bucle&quot;)\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">A continuaci\u00f3n, corre el programa desde el men\u00fa Run\/Run Module (o bien con la tecla &#8216;F5&#8217;), te muestro el resultado en la consola (Shell):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>= RESTART: C:\/Users\/Codigo\/Ejercicio 11 Ciclo While.py\n\nActividad 1\n\nCiclo While\n while &lt;condici\u00f3n&gt;: \n20\n23\n26\n29\n32\nEn caso de un bucle infinito teclear CTRL+C para interrumpir el bucle<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Es recomendable que este ejercicio lo escribas por Partes y lo revise para ver que se obtiene el resultado esperado. Este ejercicio lo podr\u00e1s seguir en el video Aprender Python en el minuto [2:55:30]. Ver video desde el minuto 2:55:30 A continuaci\u00f3n, corre el programa desde el men\u00fa Run\/Run Module (o bien con la tecla &#8230; <a title=\"Ejercicio 11 Ciclo While\" class=\"read-more\" href=\"https:\/\/hmoweb.net\/Python\/2025\/08\/22\/ejercicio-11-ciclo-while\/\" aria-label=\"Leer m\u00e1s sobre Ejercicio 11 Ciclo While\">Leer m\u00e1s<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"pagelayer_contact_templates":[],"_pagelayer_content":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-468","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/hmoweb.net\/Python\/wp-json\/wp\/v2\/posts\/468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hmoweb.net\/Python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hmoweb.net\/Python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hmoweb.net\/Python\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hmoweb.net\/Python\/wp-json\/wp\/v2\/comments?post=468"}],"version-history":[{"count":5,"href":"https:\/\/hmoweb.net\/Python\/wp-json\/wp\/v2\/posts\/468\/revisions"}],"predecessor-version":[{"id":669,"href":"https:\/\/hmoweb.net\/Python\/wp-json\/wp\/v2\/posts\/468\/revisions\/669"}],"wp:attachment":[{"href":"https:\/\/hmoweb.net\/Python\/wp-json\/wp\/v2\/media?parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hmoweb.net\/Python\/wp-json\/wp\/v2\/categories?post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hmoweb.net\/Python\/wp-json\/wp\/v2\/tags?post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}