{"id":125,"date":"2019-11-15T16:01:25","date_gmt":"2019-11-15T07:01:25","guid":{"rendered":"http:\/\/aiacademy.jp\/media\/?p=125"},"modified":"2024-08-06T16:46:51","modified_gmt":"2024-08-06T07:46:51","slug":"%e3%80%90%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%80%91if%e6%96%87%e3%81%a8%e3%81%af%e4%bd%95%e3%81%8b%ef%bc%9fpython%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e5%88%b6%e5%be%a1%e6%a7%8b%e6%96%87","status":"publish","type":"post","link":"https:\/\/aiacademy.jp\/media\/?p=125","title":{"rendered":"\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011if\u6587\u3068\u306f\u4f55\u304b\uff1fPython\u3092\u4f7f\u3063\u3066\u5236\u5fa1\u69cb\u6587\u3092\u5b66\u307c\u3046\uff01"},"content":{"rendered":"<div id=\"sgb-css-id-1\">\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-font-size is-style-fill has-medium-font-size\"><a class=\"wp-block-button__link has-vivid-green-cyan-background-color has-background wp-element-button\" href=\"https:\/\/lin.ee\/3E4GzWk\" rel=\"nofollow noopener\" target=\"_blank\">LINE\u53cb\u3060\u3061\u767b\u9332 \u25b6 Python\u30b3\u30fc\u30b9 \u25b6 \u53d7\u8b1b\u5272\u5f15\u30af\u30fc\u30dd\u30f3 \u7121\u6599\u52d5\u753b<\/a><\/div>\n<\/div>\n<\/div>\n\n<div class=\"toc\">    <div id=\"toc_container\" class=\"sgb-toc--no-bullets js-smooth-scroll\" data-dialog-title=\"Table of Contents\">\n      <p class=\"toc_title\">\u76ee\u6b21 <\/p>\n      <ul class=\"toc_list\">  <li class=\"first\">    <a href=\"#i-0\">\u5236\u5fa1\u69cb\u9020<\/a>  <\/li>  <li>    <a href=\"#i-1\">\u30d7\u30ed\u30b0\u30e9\u30e0\u51e6\u7406\u306e\u6d41\u308c<\/a>  <\/li>  <li>    <a href=\"#i-2\">\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u3068\u30a4\u30f3\u30c7\u30f3\u30c8<\/a>  <\/li>  <li>    <a href=\"#i-3\">\u6761\u4ef6\u5206\u5c90 (if\u6587)<\/a>  <\/li>  <li>    <a href=\"#i-4\">\u6761\u4ef6\u5f0f\u306e\u4f5c\u308a\u65b9<\/a>  <\/li>  <li>    <a href=\"#i-5\">\u30eb\u30fc\u30d7<\/a>  <\/li>  <li>    <a href=\"#i-6\">for\u6587<\/a>  <\/li>  <li>    <a href=\"#i-7\">\u8f9e\u66f8\u578b\u306e\u30c7\u30fc\u30bf\u3092\u30eb\u30fc\u30d7\u3059\u308b<\/a>  <\/li>  <li>    <a href=\"#i-8\">while\u6587<\/a>  <\/li>  <li>    <a href=\"#i-9\">\u7121\u9650\u30eb\u30fc\u30d7<\/a>  <\/li>  <li>    <a href=\"#i-10\">\u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18<\/a>  <\/li>  <li>    <a href=\"#i-11\">\u305d\u306e\u4ed6\u5185\u5305\u8868\u8a18<\/a>  <\/li>  <li>    <a href=\"#i-12\">\u6a19\u6e96\u5165\u529b<\/a>  <\/li>  <li>    <a href=\"#i-13\">\u307e\u3068\u3081<\/a>  <\/li>  <li class=\"last\">    <a href=\"#i-14\">\u6f14\u7fd2\u554f\u984c<\/a>  <\/li><\/ul>\n      \n    <\/div><\/div><div class=\"toc\"><p><\/p>\n<\/div><h2 id=\"i-0\">\u5236\u5fa1\u69cb\u9020<\/h2>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u4e0a\u304b\u3089\u4e0b\u306b\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<br>\u6c7a\u3081\u3089\u308c\u305f\u6587\u6cd5\u3067\u51e6\u7406\u65b9\u6cd5\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<br>\u3053\u306e\u7ae0\u3067\u306f\u3001if\u6587\u3084Loop\u6587\u306a\u3069\u3092\u7fd2\u3044\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u6d41\u308c\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002<\/p>\n<h2 id=\"i-1\">\u30d7\u30ed\u30b0\u30e9\u30e0\u51e6\u7406\u306e\u6d41\u308c<\/h2>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u57fa\u672c\u7684\u306a\u6d41\u308c\u306f\u4e0a\u304b\u3089\u4e0b\u306e\u9806\u306b\u6d41\u308c\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/camo.qiitausercontent.com\/cf98ae393995cad9dabfbbc2e606fdf9534a4585\/68747470733a2f2f71696974612d696d6167652d73746f72652e73332e616d617a6f6e6177732e636f6d2f302f3130353838372f35323833646230312d346530352d313034652d333931352d3562366337323662336263332e706e67\" alt=\"\"><\/p>\n<p>\u4e0a\u306e\u56f3\u3092Python\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u8a18\u8ff0\u3059\u308b\u3068\u3001\u4f8b\u3048\u3070\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/aiacademy.jp\/assets\/images\/step_flow.png\" alt=\"\"><\/p>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u5185\u5bb9\u304c\u9806\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"shell\">\u6700\u521d\u306e\u51e6\u7406\n\u6b21\u306e\u51e6\u7406\n\u6700\u5f8c\u306e\u51e6\u7406\n<\/code><\/pre>\n<p><strong><em>\u3064\u307e\u308a\u3001\u57fa\u672c\u7684\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u8a18\u8ff0\u3057\u305f\u9806\u306b\u4e0a\u304b\u3089\u4e0b\u3078\u3068\u6d41\u308c\u3066\u51e6\u7406\u3055\u308c\u307e\u3059\u3002<\/em><\/strong><\/p>\n<h2 id=\"i-2\">\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u3068\u30a4\u30f3\u30c7\u30f3\u30c8<\/h2>\n<p>Python\u3067\u306f\u3001\u30a4\u30f3\u30c7\u30f3\u30c8(\u5b57\u4e0b\u3052\uff09\u3067\u51e6\u7406\u3092\u307e\u3068\u3081\u307e\u3059\u3002<br>\u3053\u306e\u30a4\u30f3\u30c7\u30f3\u30c8\u306fPython\u306e\u5927\u4e8b\u306a\u7279\u5fb4\u306b\u306a\u308a\u307e\u3059\u3002<br>\u57fa\u672c\u7684\u306b\u306f\u3001\u534a\u89d2\u30b9\u30da\u30fc\u30b94\u3064\u3082\u3057\u304f\u306f\u30bf\u30d6\u30ad\u30fc\u304c\u30a4\u30f3\u30c7\u30f3\u30c8\u306e\u5f79\u5272\u306b\u306a\u308a\u307e\u3059\u304c\u3001Python\u306e\u6587\u6cd5\u3067\u306f\u3001<br>\u672b\u5c3e\u306b\u30b3\u30ed\u30f3\u300c:\u300d\u304c\u3064\u304f\u69cb\u6587\u304c\u591a\u3044\u3067\u3059\u3002<br>\uff08\u6761\u4ef6\u5206\u5c90\u6587\uff08if, elif, else)\u3001for\u6587\u3001while\u6587\u3001\u95a2\u6570\u3001\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\uff09<\/p>\n<p>\u672b\u5c3e\u306b:\u304c\u51fa\u3066\u304d\u305f\u3089\u3001\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u3044\u3046\u306e\u304cPython\u306e\u6c7a\u307e\u308a\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br>\u4f8b\u3048\u3070\u3001:\u304c\u3042\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u3057\u3066\u6b21\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002<br>\u3053\u306e\u7ae0\u3067\u306f\u3001\u3053\u308c\u304b\u3089<strong>if\u6587\u53ca\u3073for\u6587<\/strong>\u306a\u3069\u3092\u8aac\u660e\u3057\u3066\u884c\u304d\u307e\u3059\u306e\u3067\u3001\u4eca\u306e\u6bb5\u968e\u3067\u306f\u4e0b\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u610f\u5473\u304c\u7406\u89e3\u3067\u304d\u306a\u304f\u3066\u69cb\u3044\u307e\u305b\u3093\u3002<br>\u4e00\u65e6\u306f:\u304c\u51fa\u3066\u304d\u305f\u3089\u30a4\u30f3\u30c7\u30f3\u30c8\u304c\u5fc5\u8981\u3060\u3068\u3044\u3046\u3053\u3068\u3092\u7406\u89e3\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code>for i in range(10):\n    if i%2==0:\n        print(\"{} is even.\".format(i))\n    else:\n        print(\"{} is odd.\".format(i))\n\n\"\"\"\n\u51fa\u529b\u7d50\u679c\n0 is even.\n1 is odd.\n2 is even.\n3 is odd.\n4 is even.\n5 is odd.\n6 is even.\n7 is odd.\n8 is even.\n9 is odd.\n\"\"\"\n<\/code><\/pre>\n<h2 id=\"i-3\">\u6761\u4ef6\u5206\u5c90 (if\u6587)<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.youtube.com\/embed\/fUNL8-zyqGI\" alt=\"VIDEO\"><\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u306f\u3001\u3042\u308b\u6761\u4ef6\u306b\u5f53\u3066\u306f\u307e\u308b\u304b\u3069\u3046\u304b\u306b\u3088\u3063\u3066\u51e6\u7406\u3092\u5206\u3051\u307e\u3059\u3002<br>\u4f8b\u3048\u3070\u300c\u30c6\u30b9\u30c8\u306e\u70b9\u6570\uff08\u6761\u4ef6\uff09\u306b\u3088\u3063\u3066\u6210\u7e3e\uff08\u51e6\u7406\uff09\u3092\u5909\u3048\u308b\u300d\u3068\u3044\u3046\u306e\u3082\u6761\u4ef6\u5206\u5c90\u3067\u8868\u3059\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<br>\u69cb\u6587\u3068\u3057\u3066\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code># \u6ce8) \u3053\u306e\u30b3\u30fc\u30c9\u306f\u52d5\u4f5c\u3057\u306a\u3044\u306e\u3067\u6ce8\u610f\u3067\u3059\u3002\nif \u6761\u4ef6A:\n    \u6761\u4ef6A\u304cTrue\u306a\u3089\u5b9f\u884c\nelif \u6761\u4ef6B:\n    \u6761\u4ef6A\u304cFalse\u304b\u3064\u6761\u4ef6B\u304cTrue\u306a\u3089\u5b9f\u884c\nelse:\n    \u6761\u4ef6A\u3082B\u3082False\u306a\u3089\u5b9f\u884c\n<\/code><\/pre>\n<p>if\u6587\u3092\u7528\u3044\u308b\u3068\u300c\u3082\u3057\u25cb\u25cb\u306a\u3089\u3070\u2613\u2613\u3092\u884c\u3046\u300d\u3068\u3044\u3046\u51e6\u7406\u3092\u3001\u6761\u4ef6\u5206\u5c90\u306b\u3088\u3063\u3066\u8868\u73fe\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u4f8b\u3048\u3070\u3001\u30c6\u30b9\u30c8\u306e\u70b9\u6570\u304c\u304c78\u70b9\u4ee5\u4e0a\u3067\u3042\u308c\u3070\u3001\u5408\u683c\u3068\u51fa\u529b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u6b21\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code># if\u306e\u5f8c\u306b\u6761\u4ef6\u5f0f\u3092\u6307\u5b9a\u3057\u3001\u305d\u306e\u6761\u4ef6\u304c\u6210\u308a\u7acb\u3064\u3068\u304d\u306b\u5b9f\u884c\u3059\u308b\u51e6\u7406\u3092\u6b21\u306e\u884c\u306b\u66f8\u304d\u307e\u3059\u3002\n\nscore = 80\nif score &gt; 78: # \u6bd4\u8f03\u6f14\u7b97\u5b50 &gt; \u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002\u6bd4\u8f03\u6f14\u7b97\u5b50\u306f\u3053\u306e\u5f8c\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\n    print(\"\u5408\u683c\u3067\u3059\")\n<\/code><\/pre>\n<h2 id=\"i-4\">\u6761\u4ef6\u5f0f\u306e\u4f5c\u308a\u65b9<\/h2>\n<p><strong>\u6761\u4ef6\u5f0f\u306e\u4e2d\u3067\u306f\u3001\uff12\u3064\u306e\u5024\u3092\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306e\u8a18\u53f7\u300c\u6bd4\u8f03\u6f14\u7b97\u5b50\u300d\u304c\u3088\u304f\u4f7f\u308f\u308c\u307e\u3059\u3002<\/strong><br>\u6bd4\u8f03\u6f14\u7b97\u5b50\u306b\u306f\u4e0b\u8a18\u306e\u753b\u50cf\u306e\u3088\u3046\u306a\u6f14\u7b97\u5b50\u304c\u3042\u308a\u307e\u3059\u3002<br>\u53f3\u8fba\u3068\u5de6\u8fba\u304c\u7b49\u3057\u3044\u304b\u3069\u3046\u304b\u3092\u8868\u3059\u306b\u306f == \u3092\u4f7f\u3044\u307e\u3059\u3002<br>\u307e\u305f\u3001\u53f3\u8fba\u3068\u5de6\u8fba\u304c\u7b49\u3057\u304f\u306a\u3044\u304b\u3069\u3046\u304b\u3092\u8868\u3059\u306b\u306f != \u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/camo.qiitausercontent.com\/750038a97ce8ebafe5c31350efa8e0a79290f7d2\/68747470733a2f2f71696974612d696d6167652d73746f72652e73332e616d617a6f6e6177732e636f6d2f302f3130353838372f33663239363737302d313634322d386662362d656666302d6632663661666563343032342e706e67\" alt=\"\"><\/p>\n<p><strong>\u6761\u4ef6\u90e8\u5206\u306f\u3001\u300cif \u6761\u4ef6\u5f0f :\u300d\u306e\u3088\u3046\u306b\u66f8\u304d\u307e\u3059\u3002<\/strong><br>\u884c\u672b\u306e\u30b3\u30ed\u30f3\u3092\u3064\u3051\u5fd8\u308c\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u306e\u3067\u6ce8\u610f\u3067\u3059\u3002<\/p>\n<pre><code>score = 80\nif score &gt; 78: # \u6bd4\u8f03\u6f14\u7b97\u5b50 &gt; \u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002\n    print(\"\u5408\u683c\u3067\u3059\u3002\u304a\u3081\u3067\u3068\u3046\uff01\")\nelse:\n    print(\"\u4e0d\u5408\u683c\u3002\u6b21\u56de\u9811\u5f35\u308a\u307e\u3057\u3087\u3046\u3002\")\n\nscore = 100\nif score == 100:\n    print(\"\u6e80\u70b9\")\nelif score &gt; 85:\n    print(\"\u5408\u683c\uff01\")\nelse:\n    print(\"\u4e0d\u5408\u683c\u3002\u6b21\u56de\u9811\u5f35\u308a\u307e\u3057\u3087\u3046\u3002\")\n<\/code><\/pre>\n<p>Python\u3067\u306f\u30b3\u30fc\u30c9\u306e\u5b57\u4e0b\u3052\uff08\u30a4\u30f3\u30c7\u30f3\u30c8\/\u534a\u89d2\u30b9\u30da\u30fc\u30b92\u3082\u3057\u304f\u306f4\u3064\uff09\u304c\u305d\u306e\u307e\u307e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u52d5\u4f5c\u306b\u5f71\u97ff\u3057\u307e\u3059\u306e\u3067\u3001\u5b57\u4e0b\u3052\uff08\u30a4\u30f3\u30c7\u30f3\u30c8\uff09\u306b\u6c17\u3092\u3064\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 id=\"i-5\">\u30eb\u30fc\u30d7<\/h2>\n<p>\u307b\u3068\u3093\u3069\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u5236\u5fa1\u69cb\u6587\u306e\u57fa\u672c\u306f\u30eb\u30fc\u30d7\u3067\u3059\u3002<br>\u30eb\u30fc\u30d7\u306f\u8907\u6570\u56de\u540c\u3058\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u5236\u5fa1\u69cb\u6587\u3067\u3059\u3002<br>\u3088\u304f\u3001\u30ea\u30b9\u30c8\u306e\u5404\u8981\u7d20\u306b\u540c\u3058\u51e6\u7406\u3092\u3057\u305f\u3044\u3068\u304d\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<h2 id=\"i-6\">for\u6587<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.youtube.com\/embed\/w2QnmOfvDCY\" alt=\"VIDEO\"><\/p>\n<p>for\u6587\u306b\u3088\u308b\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002<br>for\u6587\u306e\u66f8\u5f0f\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre><code>\"\"\"\nfor \u30eb\u30fc\u30d7\u5185\u5909\u6570 in \u30ea\u30b9\u30c8\u540d:\n    \u5b9f\u884c\u3059\u308b\u51e6\u7406\n\"\"\"\n\nfor i in [\"apple\", \"banana\", \"melon\"]:\n    print(i)\n\n\n# \u51fa\u529b\u7d50\u679c\n\"\"\"\napple\nbanana\nmelon\n\"\"\"\n<\/code><\/pre>\n<p>\u30ea\u30b9\u30c8\u304c\u30eb\u30fc\u30d7\u5185\u5909\u6570\u306ei\u306b\u683c\u7d0d\u3055\u308c\u3001\u305d\u308c\u304c\u51fa\u529b(print)\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br>\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002<br>\u307e\u305a\u3001\u5148\u982d\u306eapple(\u6dfb\u3048\u5b570\u756a\u76ee)\u3068\u3044\u3046\u8981\u7d20\u304c\u5909\u6570i\u306b\u4ee3\u5165\u3055\u308c\u3001print(i)\u3067\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<br>\u6b21\u306b\u3001banana\u304c\u53d6\u308a\u51fa\u3055\u308c\u3001i\u306b\u4ee3\u5165\u3001\u6700\u5f8c\u306emelon\u3082\u540c\u69d8\u306bi\u306b\u4ee3\u5165\u3055\u308c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<br>\u30ea\u30b9\u30c8\u306e\u8981\u7d20\u3092\u5168\u3066\u53d6\u308a\u51fa\u3057\u305f\u305f\u3081\u3001\u3053\u306efor\u6587\u306e\u51e6\u7406\u306f\u305d\u306e\u6642\u70b9\u3067\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n<p>for\u6587\u3067\u4e00\u5b9a\u56de\u6570\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u884c\u3046\u306b\u306f<strong>range()\u95a2\u6570<\/strong>\u3092\u7528\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>range()\u95a2\u6570\u306f\u6b21\u306e\u3088\u3046\u306a\u5f79\u5272\u3092\u6301\u3061\u307e\u3059\u3002<\/p>\n<blockquote>\n<p>range(x): 0\u304b\u3089x-1\u307e\u3067\u306e\u9023\u756a\u306e\u30ea\u30b9\u30c8\u3092\u8fd4\u3059<br>range(x,y): x\u304b\u3089y-1\u307e\u3067\u306e\u9023\u756a\u306e\u30ea\u30b9\u30c8\u3092\u8fd4\u3059<\/p>\n<\/blockquote>\n<p>\u4f8b\u3048\u3070\u3001range()\u3092\u7528\u3044\u3066\u30010~9\u307e\u3067\u306e\u8a0810\u56de\u7e70\u308a\u8fd4\u3059\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code>for i in range(10):\n    print(i)\n\n# \u51fa\u529b\u7d50\u679c\n\"\"\"\n0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n\"\"\"\n<\/code><\/pre>\n<p>\u4ed6\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u4f8b\u3082\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br>\u5c11\u3057\u9577\u3044\u3067\u3059\u304c\u3001\u3058\u3063\u304f\u308a\u8aad\u3093\u3067\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code>data = [20, 40, 60, 88]\nfor d in data:\n    print(d)\n\n\n# \u51fa\u529b\u7d50\u679c\n\"\"\"\n20\n40\n60\n88\n\"\"\"\n\n# (1)\nsum_d = 0\nfor d in data:\n    # *=\u3067\u3001\u304b\u3051\u308f\u305b\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\n    sum_d += d # sum_d = sum_d + d\u3092\u7701\u7565\u3057\u305f\u66f8\u304d\u65b9\u3067\u3059\u3002\n\nprint(sum_d) # 208\u304c\u51fa\u529b\u300220 + 40 + 60 + 88\u3092\u8db3\u3057\u5408\u308f\u305b\u305f\u6570\u3002\n\n\n\"\"\"\n\u51fa\u529b\u7d50\u679c\n208\n\"\"\"\n\n# for\u6587\u306felse\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\n\nsum_d = 0\n\n# (2)\nfor d in data:\n    sum_d += d\n# \u30eb\u30fc\u30d7\u304c\u7d42\u308f\u3063\u305f\u30891\u56de\u51e6\u7406\u3057\u305f\u3044\u3082\u306e\u304c\u51e6\u7406\u3067\u304d\u308b\u3002\nelse:\n    print(sum_d)\n\n\n\"\"\"\n\u51fa\u529b\u7d50\u679c\n208\n\"\"\"\n\n\n\"\"\"\nPython\u3067\u306f\u3001\u3053\u3053\u3067\u898b\u305ffor\u6587\u3001\u5f8c\u304b\u3089\u898b\u308bWhile\u6587\u306e\u30eb\u30fc\u30d7\u3067else\u3092\u4f7f\u3046\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002\nelse\u3092\u8a18\u8ff0\u3059\u308b\u3068\u3001\u30eb\u30fc\u30d7\u304c\u7d42\u4e86\u3059\u308b\u3068\u304d\u306belse\u306e\u4e2d\u304c\u51e6\u7406\u3055\u308c\u307e\u3059\u3002\n\"\"\"\n\n# \u4e0a\u306e(1)\u3068(2)\u306felse\u3092\u4f7f\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306e\u9055\u3044\u3067\u3059\u304c\u3001\u51fa\u529b\u7d50\u679c\u306f\u540c\u3058\u3067\u3059\u3002\n\n\n## break\u3068continue\n\n# cotinue 1\u56de\u30b9\u30ad\u30c3\u30d7\nfor i in range(10):\n    if i == 3:\n        continue\n    print(i)\n\n\"\"\"\n\u51fa\u529b\u7d50\u679c\n0\n1\n2\n4\n5\n6\n7\n8\n9\n\"\"\"\n\n# break \u51e6\u7406\u3092\u7d42\u4e86\nfor i in range(10):\n    if i == 3:\n        break\n    print(i) # 0 1 2\u3092\u51fa\u529b\n\n\n\"\"\"\n\u51fa\u529b\u7d50\u679c\n0\n1\n2\n\"\"\"\n\n\n\"\"\"\n\u5148\u307b\u3069\u898b\u305felse\u3092for\u6587\u3068\u4f7f\u3046\u969b\u306b\u3001\u300cbreak\u300d\u3092\u4f7f\u3046\u3068\u3001else\u306e\u4e2d\u306e\u51e6\u7406\u306f\u5b9f\u884c\u3055\u308c\u306a\u3044\u306e\u3067\u6ce8\u610f\u3067\u3059\u3002\n\u3053\u306e\u5834\u5408\u3067\u3059\u3068\u3001\u30ea\u30b9\u30c8\u5185\u306b\"f\"\u304c\u3042\u308b\u306e\u3067\u3001found\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u304c\u3001\nelse\u5185\u306enot found\u306f\u51fa\u529b\u3055\u308c\u307e\u305b\u3093\u3002\n\"\"\"\n\ndata = [1, 2, 3, 4, 5, \"f\"]\nfor x in data:\n    if x == 'f':\n        print('found')\n        break\nelse:\n    print('not found') # \u3053\u306e\u30b5\u30f3\u30d7\u30eb\u306e\u5834\u5408else\u306e\u51e6\u7406\u306f\u5b9f\u884c\u3055\u308c\u306a\u3044\uff01\n\n\"\"\"\n\u51fa\u529b\u7d50\u679c\nfound\n\"\"\"\n<\/code><\/pre>\n<p>python\u306efor\u306fiterator\uff08\u30a4\u30c6\u30ec\u30fc\u30bf)\u3068\u547c\u3070\u308c\u308b\u4ed5\u7d44\u307f\u3067\u3001<br>\u30bf\u30d7\u30eb\u3084\u3001\u6587\u5b57\u5217\u3001\u8f9e\u66f8\u306a\u3069\u3082key\u3068\u3057\u3066\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<pre><code>for char in \"hello\":\n    print(char)\n\"\"\"\nh\ne\nl\nl\no\n\"\"\"\n<\/code><\/pre>\n<p>\u30ea\u30b9\u30c8\u306e\u8981\u7d20\u3092\u9806\u306b\u51e6\u7406\u3057\u3064\u3064\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u3082\u77e5\u308a\u305f\u3044\u5834\u5408\u304c\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br>\u305d\u306e\u5834\u5408\u3001<strong>enumerate()<\/strong>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre><code>for index, name in enumerate([\"apple\", \"banana\", \"melon\"]):\n    print(index, name)\n\"\"\"\n0 apple\n1 banana\n2 melon\n\"\"\"\n<\/code><\/pre>\n<p>\u307e\u305flist()\u3068range()\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a1~100\u307e\u3067\u306e\u8981\u7d20\u3092\u6301\u3063\u305f\u30ea\u30b9\u30c8\u3092\u7c21\u6f54\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3082\u51fa\u6765\u307e\u3059\u3002<\/p>\n<pre><code class=\"python:\">print(list(range(101)))\n\n\"\"\"\n# \u51fa\u529b\u7d50\u679c\n[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100]\n\"\"\"\n<\/code><\/pre>\n<h2 id=\"i-7\">\u8f9e\u66f8\u578b\u306e\u30c7\u30fc\u30bf\u3092\u30eb\u30fc\u30d7\u3059\u308b<\/h2>\n<p>\u8f9e\u66f8\u578b\u306e\u30c7\u30fc\u30bf\u3092\u30eb\u30fc\u30d7\u3059\u308b\u306b\u306f\u6b21\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"python:\">data = {\"tani\": 21, \"kazu\": 22, \"python\": 100}\nfor key, value in data.items():\n     print(\"key: {} value: {}\".format(key, value))\n\n\n\"\"\"\nkey: tani value: 21\nkey: kazu value: 22\nkey: python value: 100\n\"\"\"\n<\/code><\/pre>\n<h2 id=\"i-8\">while\u6587<\/h2>\n<p><strong>while\u6587\u306f\u3001\u7279\u5b9a\u6761\u4ef6\u3092\u6e80\u305f\u3059\u307e\u3067\u30eb\u30fc\u30d7\u3092\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002<\/strong><br>\u301c\u306e\u9593\u306f\u305a\u3063\u3068\u30eb\u30fc\u30d7\u3068\u3044\u3063\u305f\u30a4\u30e1\u30fc\u30b8\u3067\u3001for\u307b\u3069\u4f7f\u3046\u983b\u5ea6\u306f\u5c11\u306a\u3044\u3067\u3059\u304c\u3001<br>\u660e\u793a\u7684\u306b\u7121\u9650\u30eb\u30fc\u30d7\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f\u3001while\u3067\u306e\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre><code># n\u304c10\u306b\u306a\u308b\u307e\u3067\u7e70\u308a\u8fd4\u3057\nn = 0\nwhile n &lt; 10:\n    print(n)\n    n += 1 # +1\u3059\u308b\u306e\u3092\u5fd8\u308c\u305a\u306b\u3002\n\n\"\"\"\n\u51fa\u529b\u7d50\u679c\n0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n\"\"\"\n<\/code><\/pre>\n<p><strong><em>n += 1\u3082\u3057\u304f\u306f\u3001n = n + 1\u3092\u8a18\u8ff0\u3057\u306a\u3044\u5834\u5408\u3001\u7121\u9650\u30eb\u30fc\u30d7\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/em><\/strong><br>\u7121\u9650\u30eb\u30fc\u30d7\u306b\u5165\u3063\u305f\u3089\u3001Ctrl + c\u3067\u7d42\u4e86\u3057\u3066\u3042\u3052\u307e\u3057\u3087\u3046\u3002<br>\u7121\u9650\u30eb\u30fc\u30d7\u306b\u306a\u3089\u306a\u3044\u3088\u3046\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h2 id=\"i-9\">\u7121\u9650\u30eb\u30fc\u30d7<\/h2>\n<p>\u3061\u306a\u307f\u306b\u3001\u7121\u9650\u30eb\u30fc\u30d7\u3092\u6545\u610f\u306b\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u66f8\u304d\u307e\u3059\u3002<\/p>\n<pre><code># \u7121\u9650\u30eb\u30fc\u30d7\u3067\u3059\u306e\u3067\u3001\u4e0b\u8a18\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u3001Ctrl + c\u3067\u7d42\u4e86\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n# \u3082\u3057\u304f\u306f\u30bf\u30fc\u30df\u30ca\u30eb\/\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u5f37\u5236\u7684\u306b\u7d42\u4e86\uff08\u9589\u3058\u3066\uff09\u304f\u3060\u3055\u3044\u3002\nwhile True:\n    print(\"\u7121\u9650\u30eb\u30fc\u30d7\")\n<\/code><\/pre>\n<h2 id=\"i-10\">\u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18<\/h2>\n<p><strong>\u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18(List Comprehensions)\u306f\u65e2\u5b58\u306e\u30ea\u30b9\u30c8\u3084\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u304b\u3089\u65b0\u3057\u3044\u30ea\u30b9\u30c8\u3092\u4f5c\u308b\u3082\u306e\u3067\u3059\u3002<\/strong><br>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306f1\u304b\u308910\u307e\u3067\u306e\u6570\u5024\u3092\u305d\u308c\u305e\u308c2\u4e57\u3057\u305f\u6570\u5024\u306e\u30ea\u30b9\u30c8\u3092\u4f5c\u308b\u5834\u5408\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3001\u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18\u3067\u8a18\u8ff0\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n<pre><code>result = [x**2 for x in range(1,11)]\nprint(result) # [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]\n\n# \u901a\u5e38\u306e\u30eb\u30fc\u30d7\u3067\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\nresult = []\nfor i in range(1,11):\n    result.append(i**2)\n\nprint(result) # [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]\n<\/code><\/pre>\n<p><strong>\u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18\u306f\u3001\u65e2\u5b58\u306e\u30ea\u30b9\u30c8\u304b\u3089\u53d6\u308a\u51fa\u3057\u305f\u8981\u7d20\u306b\u5bfe\u3057\u51e6\u7406\u3092\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u6761\u4ef6\u306b\u5fdc\u3058\u305f\u5834\u5408\u306b\u3060\u3051\u65b0\u3057\u3044\u30ea\u30b9\u30c8\u306b\u8ffd\u52a0\u3057\u305f\u3044\u5834\u5408\u306b\u3082\u4f7f\u3048\u307e\u3059\u3002<\/strong><br>\u5185\u5305\u8868\u8a18\u306e\u30e1\u30ea\u30c3\u30c8\u306f\u3001\u51e6\u7406\u3092\u7c21\u6f54\u306b\u66f8\u3051\u3001\u65b0\u3057\u3044\u30ea\u30b9\u30c8\u306a\u3069\u3078\u306e\u8ffd\u52a0\u30e1\u30bd\u30c3\u30c9\u306e\u547c\u3073\u51fa\u3057\u306b\u304b\u304b\u308b\u30b3\u30b9\u30c8\u3092\u8efd\u6e1b\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2 id=\"i-11\">\u305d\u306e\u4ed6\u5185\u5305\u8868\u8a18<\/h2>\n<p>\u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18\u4ee5\u5916\u306b\u3082\u3001\u30bb\u30c3\u30c8\u3068\u8f9e\u66f8\u3092\u751f\u6210\u3059\u308b\u5185\u5305\u8868\u8a18\u3082\u3042\u308a\u307e\u3059\u3002<br><strong><em>\u30bb\u30c3\u30c8\u3068\u8f9e\u66f8\u5185\u5305\u8868\u8a18\u306e\u5834\u5408\u3001\u751f\u6210\u3059\u308b\u5024\u306b\u3088\u3063\u3066\u306f\u51fa\u529b\u3055\u308c\u308b\u5024\u306e\u9806\u756a\u304c\u4fdd\u6301\u3055\u308c\u306a\u3044\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u5229\u7528\u306e\u969b\u306b\u306f\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/em><\/strong><\/p>\n<pre><code>s = {x**2 for x in range(1,6)}\nprint(s) # {1, 4, 9, 16, 25}\n<\/code><\/pre>\n<p>\u8f9e\u66f8\u5185\u5305\u8868\u8a18\u306e\u66f8\u304d\u65b9\u306f\u3001\u30ad\u30fc\u3068\u5024\u3092\u30b3\u30ed\u30f3\u300c:\u300d\u3067\u533a\u5207\u308a\u3001<br>\u30bb\u30c3\u30c8\u5185\u5305\u8868\u8a18\u3068\u540c\u69d8\u306b{}\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre><code>d = {x*2:x**2 for x in range(1,11)}\nprint(d) # {2: 1, 4: 4, 6: 9, 8: 16, 10: 25, 12: 36, 14: 49, 16: 64, 18: 81, 20: 100}\n<\/code><\/pre>\n<p>\u307e\u305f\u3001tuple\u5185\u5305\u8868\u8a18\u306b\u95a2\u3057\u3066\u3067\u3059\u304c\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3068generator\uff08\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\uff09\u306b\u306a\u308a\u307e\u3059\u3002<br>()\u3067\u5b9a\u7fa9\u3059\u308b\u3068\u3001\u30bf\u30d7\u30eb\u5185\u5305\u8868\u8a18\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u306e\u3067\u6ce8\u610f\u3067\u3059\u3002<br>\u8fd4\u3063\u3066\u304f\u308b\u306e\u306f\u8981\u7d20\u3092\u751f\u6210\u3059\u308bgenerator\u306b\u306a\u308a\u307e\u3059\u3002<br>\u203bgenerator\u3068\u3044\u3046\u8a00\u8449\u306e\u610f\u5473\u306f\u4e00\u65e6\u7406\u89e3\u3057\u306a\u304f\u3066\u69cb\u3044\u307e\u305b\u3093\u3002<br>tuple\u306e\u6642\u306f\u30bb\u30c3\u30c8\u578b\u3068\u8f9e\u66f8\u578b\u3068\u306f\u9055\u3044generator\u304c\u8fd4\u3063\u3066\u304d\u3066\u3001list()\u3067\u30ad\u30e3\u30b9\u30c8\u3059\u308b\u3068\u5185\u5305\u8868\u8a18\u3092\u5b9f\u73fe\u3067\u304d\u308b\u3068\u3044\u3046\u306e\u3092\u77e5\u3063\u3066\u3044\u308c\u3070\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<br><strong><em>tuple\u306b\u3059\u308b\u969b\u306b\u306f\u3001tuple()\u3067\u30ad\u30e3\u30b9\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/em><\/strong><\/p>\n<pre><code>t = (x for x in range(5))\nprint(t)\n# &lt;generator object &lt;genexpr&gt; at 0x1095c8eb8&gt;\n\nt = tuple([x for x in range(5)])\nprint(t) # (0, 1, 2, 3, 4)\n<\/code><\/pre>\n<h2 id=\"i-12\">\u6a19\u6e96\u5165\u529b<\/h2>\n<p><strong>input()\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u304b\u3089\u306e\u5165\u529b\u3092\u53d7\u3051\u53d6\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/strong><br>\u203bPython \u30d0\u30fc\u30b8\u30e7\u30f32\u7cfb\u3067\u306f\u3001raw_input()\u3067\u3057\u305f\u304c\u3001Python3\u7cfb\u3067\u306f\u3001raw_input()\u306f\u4f7f\u3048\u305a\u3001input()\u3092\u4f7f\u3044\u307e\u3059\u3002<br>\u4ee5\u4e0b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b3\u30f3\u30bd\u30fc\u30eb(Mac\u306e\u65b9\u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3001WIndows\u306e\u65b9\u306f\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8)\u306e\u5165\u529b\u304c\u5f85\u3061\u72b6\u614b\u306b\u306a\u308a\u3001\u4f55\u304b\u3092\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u5165\u529b\u3059\u308b\u3068input()\u3067\u5165\u529b\u5024\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002<\/p>\n<pre><code>print(\"\u540d\u524d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\")\nname = input()\nprint(\"\u3042\u306a\u305f\u306e\u540d\u524d\u306f\"+name+\"\u3067\u3059\")\n<\/code><\/pre>\n<p><strong><em>\u3053\u3053\u30671\u3064\u6ce8\u610f\u3067\u3059\u304c\u3001input()\u3092\u4f7f\u3063\u3066\u53d7\u3051\u53d6\u3063\u305f\u5024\u306f\u3001\u6587\u5b57\u5217\u578b\u306b\u306a\u308a\u307e\u3059\u3002<\/em><\/strong><br>\u6570\u5024\u3092\u5165\u529b\u3057\u305f\u5834\u5408\u3001\u6587\u5b57\u5217\u578b\u306b\u30ad\u30e3\u30b9\u30c8\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u306e\u3067\u3001\u305d\u306e\u5f8c\u306e\u6570\u5024\u51e6\u7406\u306b\u306f\u6c17\u3092\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<br>\uff08\u4e00\u65e6int()\u7b49\u3067\u30ad\u30e3\u30b9\u30c8\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\n<p>\u4ee5\u4e0b\u306f\u7121\u9650\u306b\u30e6\u30fc\u30b6\u304c\u5165\u529b\u3057\u305f\u5185\u5bb9\u3092\u51fa\u529b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002<br><strong>\u53d7\u3051\u53d6\u3063\u305f\u5024\u3092\u5909\u6570i\u306b\u4ee3\u5165\u3057\u3001print()\u3067i\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/strong><\/p>\n<pre><code># Ctr-C\u3067\u7d42\u4e86\u3057\u307e\u3059\u3002\nwhile True:\n    print(\"Please Input!\")\n    i = input()\n    print(i)\n<\/code><\/pre>\n<h2 id=\"i-13\">\u307e\u3068\u3081<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001\u5236\u5fa1\u69cb\u6587\u3092\u307f\u3066\u304d\u307e\u3057\u305f\u3002<br>\u6761\u4ef6\u5206\u5c90\u3084\u30eb\u30fc\u30d7\u51e6\u7406\u306f\u4eca\u5f8c\u3082\u3088\u304f\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u591a\u304f\u306a\u308b\u306e\u3067\u3001\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 id=\"i-14\">\u6f14\u7fd2\u554f\u984c<\/h2>\n<p><strong>\uff11\uff09 3 2 1 Go! \u3068\u51fa\u529b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092for\u6587\u3092\u4f7f\u3063\u3066\u8a18\u8ff0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/camo.qiitausercontent.com\/89b8fc60fcb4b43a7332df209ec22f9832383b67\/68747470733a2f2f71696974612d696d6167652d73746f72652e73332e616d617a6f6e6177732e636f6d2f302f3130353838372f61363932613930392d316133352d326234342d653239392d3562333832376539373738622e706e67\" alt=\"\"><\/p>\n<p><strong>\uff12\uff09 1 \u2013 100\u307e\u3067\u306e\u6570\u5b57\u306e\u4e2d\u304b\u3089\u5076\u6570\u306e\u5024\u3092\u6301\u3064\u5024\u3060\u3051\u306eList\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/camo.qiitausercontent.com\/6c4a733c6fe21b4b104f6292989af8ee390b5c4e\/68747470733a2f2f71696974612d696d6167652d73746f72652e73332e616d617a6f6e6177732e636f6d2f302f3130353838372f38303031376165302d653666662d656234302d363430352d3066343335643439373765362e706e67\" alt=\"\"><\/p>\n<p><a href=\"https:\/\/qiita.com\/AI_Academy\/private\/c152165f3cf3cfd07783\" rel=\"nofollow noopener\" target=\"_blank\">\u6f14\u7fd2\u554f\u984c\u56de\u7b54<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"aiacademy.jp\/bootcamp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"341\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-1024x341.png\" alt=\"\" class=\"wp-image-691\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-1024x341.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-300x100.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-768x256.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-940x313.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u6b21 \u5236\u5fa1\u69cb\u9020 \u30d7\u30ed\u30b0\u30e9\u30e0\u51e6\u7406\u306e\u6d41\u308c \u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u3068\u30a4\u30f3\u30c7\u30f3\u30c8 \u6761\u4ef6\u5206\u5c90 (if\u6587) \u6761\u4ef6\u5f0f\u306e\u4f5c\u308a\u65b9 \u30eb\u30fc\u30d7 for\u6587 \u8f9e\u66f8\u578b\u306e\u30c7\u30fc\u30bf\u3092\u30eb\u30fc\u30d7\u3059\u308b while\u6587 \u7121\u9650\u30eb\u30fc\u30d7 \u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18 \u305d\u306e\u4ed6\u5185\u5305\u8868\u8a18 \u6a19\u6e96\u5165\u529b \u307e &#8230; <\/p>\n","protected":false},"author":1,"featured_media":484,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[95,94,85,90],"tags":[],"class_list":{"0":"post-125","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-for","8":"category-if","9":"category-python","10":"category-90"},"_links":{"self":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=125"}],"version-history":[{"count":4,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/125\/revisions"}],"predecessor-version":[{"id":4751,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/125\/revisions\/4751"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/media\/484"}],"wp:attachment":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}