<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>program-shoshinsya</author_name>
  <author_url>https://blog.hatena.ne.jp/program-shoshinsya/</author_url>
  <blog_title>auの日記</blog_title>
  <blog_url>https://program-shoshinsya.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>auです。 今回は久しぶりに軽いプログラミングをしてみたいと思います。 for文、while文でループをさせているときに使えるのが、breakとcontinueです。 breakは、その条件になったときに、ループを終了させます。 continueは、その条件になったときに、条件をスキップさせます。 実際に動かしてみます。 for i in range(5): if i == 3: break # 3になったときにループを終了させる print(i) 実行結果 0 1 2 3は表示されずにループが終了されました。while文でも同じことができます。 n = 0 while n &lt; 5: if n…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fprogram-shoshinsya.hatenablog.com%2Fentry%2F2018%2F03%2F11%2F234454&quot; title=&quot;for文、while文のbreakとcontinueの使い方 - auの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-03-11 23:44:54</published>
  <title>for文、while文のbreakとcontinueの使い方</title>
  <type>rich</type>
  <url>https://program-shoshinsya.hatenablog.com/entry/2018/03/11/234454</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
