{"id":4718,"date":"2026-10-20T19:51:40","date_gmt":"2026-10-20T10:51:40","guid":{"rendered":"https:\/\/techchance.jp\/blog\/?p=4718"},"modified":"2026-10-20T19:51:40","modified_gmt":"2026-10-20T10:51:40","slug":"programming-loops-for-while","status":"publish","type":"post","link":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/","title":{"rendered":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u300c\u7e70\u308a\u8fd4\u3057\u300d\u3068\u306f\uff1f\u4e5d\u4e5d\u3067\u5b66\u3076for\u6587\u30fbwhile\u6587\u306e\u9055\u3044"},"content":{"rendered":"<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u304a\u3051\u308b\u300c\u7e70\u308a\u8fd4\u3057\u300d\u3068\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u540c\u3058\u51e6\u7406\u3092\u4f55\u5ea6\u3082\u81ea\u52d5\u3067\u5b9f\u884c\u3059\u308b\u4ed5\u7d44\u307f<\/strong><\/span>\u306e\u3053\u3068\u3067\u3059\u3002\u4f8b\u3048\u3070\u4e5d\u4e5d\u306e\u300c2\u306e\u6bb5\u300d\u306a\u3089\u3001\u300c2\u306b\u304b\u3051\u308b\u6570\u3092\u8a08\u7b97\u3057\u3066\u3001\u7b54\u3048\u3092\u8868\u793a\u3059\u308b\u300d\u3068\u3044\u3046\u4e00\u9023\u306e\u51e6\u7406\u3092\u3001\u304b\u3051\u308b\u6570\u30921\u305a\u3064\u5909\u3048\u306a\u304c\u30899\u56de\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u307e\u305a\u8996\u899a\u7684\u306b\u308f\u304b\u308a\u3084\u3059\u3044Scratch\u3092\u4f7f\u3063\u30662\u306e\u6bb5\u3092\u4f5c\u3063\u305f\u3042\u3068\u3001\u30c6\u30ad\u30b9\u30c8\u8a00\u8a9e\u3067\u3042\u308bPython\u306e\u300cfor\u6587\u300d\u3068\u300cwhile\u6587\u300d\u3067\u540c\u3058\u8a08\u7b97\u3092\u518d\u73fe\u3057\u3066\u307f\u307e\u3059\u3002<strong>\u300c\u3069\u306e\u547d\u4ee4\u3092\u7e70\u308a\u8fd4\u3059\u306e\u304b\u300d\u300c\u9014\u4e2d\u3067\u3069\u306e\u5024\u304c\u5909\u308f\u308b\u306e\u304b\u300d\u300c\u3069\u3046\u306a\u3063\u305f\u3089\u7d42\u308f\u308b\u306e\u304b\u300d<\/strong>\u3092\u6574\u7406\u3057\u306a\u304c\u3089\u3001\u30b3\u30fc\u30c9\u3092\u8aad\u3093\u3060\u3060\u3051\u3067\u5b9f\u884c\u56de\u6570\u3084\u7d50\u679c\u3092\u6b63\u3057\u304f\u4e88\u60f3\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u203b\u63b2\u8f09\u3057\u3066\u3044\u308b\u4e5d\u4e5d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3084\u7df4\u7fd2\u554f\u984c\u306f\u3001\u5b66\u7fd2\u7528\u306b\u4f5c\u6210\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002Python\u3084Scratch\u306e\u4ed5\u69d8\u306f\u516c\u5f0f\u8cc7\u6599\u306b\u57fa\u3065\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u5b66\u7fd2\u306e\u9032\u3081\u65b9\u3084\u4fdd\u8b77\u8005\u306e\u65b9\u304b\u3089\u306e\u58f0\u304b\u3051\u306e\u30d2\u30f3\u30c8\u3082\u3042\u308f\u305b\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u304a\u3051\u308b\u7e70\u308a\u8fd4\u3057\u306e\u57fa\u672c<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/01-insert-3.png\" alt=\"\" width=\"1672\" height=\"941\" class=\"aligncenter size-full wp-image-4721\" srcset=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/01-insert-3.png 1672w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/01-insert-3-300x169.png 300w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/01-insert-3-1024x576.png 1024w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/01-insert-3-768x432.png 768w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/01-insert-3-1536x864.png 1536w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/01-insert-3-390x219.png 390w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/01-insert-3-250x141.png 250w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/01-insert-3-175x98.png 175w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/01-insert-3-150x84.png 150w\" sizes=\"auto, (max-width: 1672px) 100vw, 1672px\" \/><\/p>\n<p><strong>\u540c\u3058\u547d\u4ee4\u3084\u3072\u3068\u307e\u3068\u307e\u308a\u306e\u51e6\u7406\u3092\u7d9a\u3051\u3066\u5b9f\u884c\u3059\u308b\u3053\u3068\u3092\u300c\u53cd\u5fa9\u51e6\u7406\u300d\u3068\u3044\u3044\u3001\u3053\u306e\u7e70\u308a\u8fd4\u3057\u306e\u69cb\u9020\u306f\u300c\u30eb\u30fc\u30d7\u300d\u3068\u3082\u547c\u3070\u308c\u307e\u3059<\/strong>\u3002\u4f8b\u3048\u3070\u300110\u554f\u306e\u30af\u30a4\u30ba\u3092\u9806\u756a\u306b\u51fa\u984c\u3059\u308b\u51e6\u7406\u3084\u3001\u30b2\u30fc\u30e0\u5185\u3067\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u306e\u4f4d\u7f6e\u3092\u5c11\u3057\u305a\u3064\u66f4\u65b0\u3057\u7d9a\u3051\u308b\u51e6\u7406\u306a\u3069\u306b\u6b20\u304b\u305b\u306a\u3044\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d44\u307f\u7acb\u3066\u308b\u57fa\u672c\u69cb\u9020\u306b\u306f\u3001<strong>\u547d\u4ee4\u3092\u4e0a\u304b\u3089\u9806\u306b\u5b9f\u884c\u3059\u308b\u300c\u9806\u6b21\u300d\u3001\u6761\u4ef6\u306b\u3088\u3063\u3066\u51e6\u7406\u3092\u632f\u308a\u5206\u3051\u308b\u300c\u6761\u4ef6\u5206\u5c90\u300d\u3001\u305d\u3057\u3066\u540c\u3058\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3059\u300c\u53cd\u5fa9\u300d\u306e3\u3064<\/strong>\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306f\u9ad8\u6821\u306e\u300c\u60c5\u5831\u2160\u300d\u306e\u6559\u54e1\u7814\u4fee\u7528\u6559\u6750\u3067\u3082\u57fa\u790e\u3068\u3057\u3066\u6271\u308f\u308c\u3066\u3044\u308b\u91cd\u8981\u306a\u6982\u5ff5\u3067\u3059\u3002<a href=\"https:\/\/www.mext.go.jp\/content\/20200722-mxt_jogai02-100013300_005.pdf\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>\u6587\u90e8\u79d1\u5b66\u7701\u306e\u6559\u6750\u30fb\u7b2c3\u7ae0<\/strong><\/a><\/p>\n<p>\u7e70\u308a\u8fd4\u3057\u306e\u51e6\u7406\u3092\u8aad\u307f\u89e3\u304f\u969b\u306f\u3001\u307e\u305a<strong>\u300c\u3069\u306e\u7bc4\u56f2\u306e\u547d\u4ee4\u3092\u7e70\u308a\u8fd4\u3057\u3066\u3044\u308b\u304b\u300d<\/strong>\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u8a08\u7b97\u3060\u3051\u3092\u7e70\u308a\u8fd4\u3057\u3066\u3044\u308b\u306e\u304b\u3001\u8a08\u7b97\u3068\u753b\u9762\u8868\u793a\u306e\u4e21\u65b9\u3092\u7e70\u308a\u8fd4\u3057\u3066\u3044\u308b\u306e\u304b\u306b\u3088\u3063\u3066\u3001\u753b\u9762\u306b\u51fa\u3066\u304f\u308b\u7d50\u679c\u304c\u5927\u304d\u304f\u5909\u308f\u308b\u305f\u3081\u3067\u3059\u3002\u305d\u306e\u3046\u3048\u3067\u3001\u300c\u4f55\u56de\u7e70\u308a\u8fd4\u3059\u304b\u300d\u300c\u3069\u3093\u306a\u6761\u4ef6\u3067\u7d42\u308f\u308b\u304b\u300d\u300c\u7e70\u308a\u8fd4\u3057\u306e\u9014\u4e2d\u3067\u3069\u306e\u5024\u304c\u5909\u5316\u3059\u308b\u304b\u300d\u3092\u4e01\u5be7\u306b\u8ffd\u3063\u3066\u3044\u304f\u3053\u3068\u304c\u5927\u5207\u3067\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5168\u4f53\u306e\u4ed5\u7d44\u307f\u304b\u3089\u5fa9\u7fd2\u3057\u305f\u3044\u65b9\u306f\u3001<a href=\"https:\/\/techchance.jp\/blog\/2026\/10\/07\/what-is-programming\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>\u300c\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3068\u306f\u300d\u306e\u89e3\u8aac\u8a18\u4e8b<\/strong><\/a>\u3092\u5148\u306b\u8aad\u3080\u3068\u3001\u53cd\u5fa9\u51e6\u7406\u304c\u57fa\u672c\u69cb\u9020\u306e\u3069\u3053\u306b\u4f4d\u7f6e\u3065\u3051\u3089\u308c\u3066\u3044\u308b\u304b\u3092\u30b9\u30e0\u30fc\u30ba\u306b\u7406\u89e3\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u4e5d\u4e5d\u3067\u8003\u3048\u308b\u53cd\u5fa9\u51e6\u7406\u3068\u5909\u6570<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/02-insert-2.png\" alt=\"\" width=\"1672\" height=\"941\" class=\"aligncenter size-full wp-image-4722\" srcset=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/02-insert-2.png 1672w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/02-insert-2-300x169.png 300w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/02-insert-2-1024x576.png 1024w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/02-insert-2-768x432.png 768w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/02-insert-2-1536x864.png 1536w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/02-insert-2-390x219.png 390w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/02-insert-2-250x141.png 250w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/02-insert-2-175x98.png 175w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/02-insert-2-150x84.png 150w\" sizes=\"auto, (max-width: 1672px) 100vw, 1672px\" \/><\/p>\n<h3>\u540c\u3058\u8a08\u7b97\u3068\u8868\u793a\u30929\u56de\u4e26\u3079\u308b\u65b9\u6cd5<\/h3>\n<p>\u307e\u305a\u306f\u30012\u00d71\u304b\u30892\u00d79\u307e\u3067\u306e\u7b54\u3048\u3092\u9806\u756a\u306b\u8868\u793a\u3059\u308b\u3053\u3068\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u7e70\u308a\u8fd4\u3057\u3092\u4f7f\u308f\u305a\u306b\u8a08\u7b97\u3068\u8868\u793a\u306e\u547d\u4ee4\u30921\u884c\u305a\u3064\u4e26\u3079\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff08\u3053\u3053\u3067\u306f\u51e6\u7406\u306e\u6d41\u308c\u3092\u65e5\u672c\u8a9e\u3067\u8868\u73fe\u3057\u3066\u3044\u307e\u3059\uff09\u3002<\/p>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-text\" data-lang=\"Text\"><code>2\u00d71\u3092\u8a08\u7b97\u3057\u3066\u8868\u793a\u3059\u308b\r\n2\u00d72\u3092\u8a08\u7b97\u3057\u3066\u8868\u793a\u3059\u308b\r\n2\u00d73\u3092\u8a08\u7b97\u3057\u3066\u8868\u793a\u3059\u308b\r\n2\u00d74\u3092\u8a08\u7b97\u3057\u3066\u8868\u793a\u3059\u308b\r\n2\u00d75\u3092\u8a08\u7b97\u3057\u3066\u8868\u793a\u3059\u308b\r\n2\u00d76\u3092\u8a08\u7b97\u3057\u3066\u8868\u793a\u3059\u308b\r\n2\u00d77\u3092\u8a08\u7b97\u3057\u3066\u8868\u793a\u3059\u308b\r\n2\u00d78\u3092\u8a08\u7b97\u3057\u3066\u8868\u793a\u3059\u308b\r\n2\u00d79\u3092\u8a08\u7b97\u3057\u3066\u8868\u793a\u3059\u308b<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u3053\u306e\u66f8\u304d\u65b9\u3067\u3082\u30012\u30014\u30016\u30018\u300110\u300112\u300114\u300116\u300118\u3068\u9806\u756a\u306b\u8868\u793a\u3067\u304d\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3053\u308c\u3092\u300c3\u306e\u6bb5\u300d\u306b\u5909\u66f4\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001<strong>9\u304b\u6240\u3059\u3079\u3066\u306b\u3042\u308b\u300c2\u300d\u3092\u300c3\u300d\u3078\u3068\u66f8\u304d\u76f4\u3055\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093<\/strong>\u3002\u9014\u4e2d\u306e1\u884c\u3092\u3046\u3063\u304b\u308a\u66f8\u304d\u5fd8\u308c\u308b\u3068\u3001\u7b54\u3048\u304c1\u3064\u629c\u3051\u843d\u3061\u3066\u3057\u307e\u3046\u539f\u56e0\u306b\u3082\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u5909\u308f\u3089\u306a\u3044\u51e6\u7406\u3068\u6bce\u56de\u5909\u308f\u308b\u6570<\/h3>\n<p>\u3053\u306e9\u3064\u306e\u547d\u4ee4\u3092\u3088\u304f\u898b\u6bd4\u3079\u308b\u3068\u3001\u300c2\u3092\u304b\u3051\u3066\u3001\u305d\u306e\u7b54\u3048\u3092\u8868\u793a\u3059\u308b\u300d\u3068\u3044\u3046\u624b\u9806\u81ea\u4f53\u306f\u3059\u3079\u3066\u5171\u901a\u3057\u3066\u3044\u307e\u3059\u3002<strong>\u6bce\u56de\u5909\u308f\u3063\u3066\u3044\u308b\u306e\u306f\u30011\u30012\u30013\u2026\u2026\u30681\u305a\u3064\u5897\u3048\u3066\u3044\u304f\u300c\u304b\u3051\u308b\u6570\u300d\u3060\u3051<\/strong>\u3067\u3059\u3002\u3053\u306e\u5909\u5316\u3059\u308b\u6570\u5024\u3092\u300c\u304b\u3051\u308b\u6570\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u5909\u6570\u3068\u3057\u3066\u7ba1\u7406\u3059\u308c\u3070\u3001\u30d0\u30e9\u30d0\u30e9\u3060\u3063\u305f\u547d\u4ee4\u30921\u3064\u306e\u307e\u3068\u307e\u308a\u306b\u307e\u3068\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u5909\u6570\u3068\u306f\u3001<strong>\u5024\uff08\u30c7\u30fc\u30bf\uff09\u306b\u540d\u524d\u3092\u4ed8\u3051\u3066\u4e00\u6642\u7684\u306b\u4fdd\u5b58\u3057\u3001\u3042\u3068\u304b\u3089\u8a08\u7b97\u3084\u6761\u4ef6\u306e\u5224\u5b9a\u306b\u4f7f\u3044\u56de\u3059\u305f\u3081\u306e\u4ed5\u7d44\u307f<\/strong>\u3067\u3059\u3002\u4eca\u56de\u306f\u3001\u73fe\u5728\u306e\u8a08\u7b97\u30672\u306b\u304b\u3051\u308b\u6570\u5024\u3092\u3053\u306e\u5909\u6570\u306b\u8a18\u9332\u3057\u307e\u3059\u3002\u6700\u521d\u306b\u300c1\u300d\u3092\u5165\u308c\u3066\u304a\u304d\u3001\u8a08\u7b97\u3068\u8868\u793a\u304c1\u56de\u7d42\u308f\u308b\u305f\u3073\u306b\u5024\u30921\u305a\u3064\u5897\u3084\u3059\u3053\u3068\u3067\u3001\u6b21\u306f2\u00d72\u3001\u305d\u306e\u6b21\u306f2\u00d73\u2026\u2026\u3068\u81ea\u52d5\u7684\u306b\u51e6\u7406\u3092\u9032\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u304b\u3051\u308b\u6570\u30921\u304b\u30892\u3078\u5909\u3048\u305f\u3068\u304d\u3001\u753b\u9762\u306b\u306f\u4f55\u304c\u8868\u793a\u3055\u308c\u308b\u3067\u3057\u3087\u3046\u304b\u3002\u7b54\u3048\u306f\u300c4\u300d\u3067\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30e0\u4e0a\u306f\u307e\u3063\u305f\u304f\u540c\u3058\u8a08\u7b97\u547d\u4ee4\u3092\u4f7f\u3063\u3066\u3044\u3066\u3082\u3001\u305d\u306e\u6642\u70b9\u3067\u5909\u6570\u306b\u5165\u3063\u3066\u3044\u308b\u5024\u304c\u5909\u308f\u308c\u3070\u3001\u5f97\u3089\u308c\u308b\u7d50\u679c\u3082\u5909\u308f\u308a\u307e\u3059\u3002<em class=\"yellow-under\">\u300c\u5b9f\u884c\u3057\u3066\u3044\u308b\u547d\u4ee4\u304c\u540c\u3058\u3067\u3042\u308b\u3053\u3068\u300d\u3068\u300c\u7d50\u679c\u3068\u3057\u3066\u51fa\u308b\u7b54\u3048\u304c\u540c\u3058\u3067\u3042\u308b\u3053\u3068\u300d\u306f\u5225\u7269<\/em>\u3068\u3057\u3066\u6349\u3048\u308b\u306e\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<\/p>\n<p>\u5024\u306e\u4fdd\u5b58\u65b9\u6cd5\u3084\u5909\u66f4\u306e\u624b\u9806\u3092\u8a73\u3057\u304f\u5fa9\u7fd2\u3057\u305f\u3044\u5834\u5408\u306f\u3001<a href=\"https:\/\/techchance.jp\/blog\/2026\/09\/24\/programming-variable-for-kids\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>\u300c\u5909\u6570\u300d\u306e\u89e3\u8aac\u8a18\u4e8b<\/strong><\/a>\u3082\u4f75\u305b\u3066\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>Scratch\u306b\u3088\u308b2\u306e\u6bb5\u306e\u4f5c\u6210<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/03-insert-2.png\" alt=\"\" width=\"1672\" height=\"941\" class=\"aligncenter size-full wp-image-4723\" srcset=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/03-insert-2.png 1672w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/03-insert-2-300x169.png 300w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/03-insert-2-1024x576.png 1024w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/03-insert-2-768x432.png 768w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/03-insert-2-1536x864.png 1536w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/03-insert-2-390x219.png 390w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/03-insert-2-250x141.png 250w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/03-insert-2-175x98.png 175w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/03-insert-2-150x84.png 150w\" sizes=\"auto, (max-width: 1672px) 100vw, 1672px\" \/><\/p>\n<p>Scratch\uff08\u30b9\u30af\u30e9\u30c3\u30c1\uff09\u3067\u306f\u3001\u547d\u4ee4\u304c\u66f8\u304b\u308c\u305f\u30d6\u30ed\u30c3\u30af\u3092\u30b8\u30b0\u30bd\u30fc\u30d1\u30ba\u30eb\u306e\u3088\u3046\u306b\u7d44\u307f\u5408\u308f\u305b\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308a\u307e\u3059\u3002\u4eca\u56de\u306f\u3001\u753b\u9762\u4e0a\u306b\u3044\u308b\u30cd\u30b3\u306a\u3069\u306e\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u306b\u3001\u4e5d\u4e5d\u306e\u7b54\u3048\u30921\u79d2\u305a\u3064\u8a00\u308f\u305b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u306a\u304a\u3001Scratch\u3067\u306f<strong>\u753b\u9762\u4e0a\u306e\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u306e\u3053\u3068\u3092\u300c\u30b9\u30d7\u30e9\u30a4\u30c8\u300d\u3068\u547c\u3073\u307e\u3059<\/strong>\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u5909\u6570\u306e\u4f5c\u6210\u3068\u30d6\u30ed\u30c3\u30af\u306e\u914d\u7f6e<\/h3>\n<p>\u307e\u305a\u306f<a href=\"https:\/\/scratch.mit.edu\/projects\/editor\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Scratch\u306e\u4f5c\u6210\u753b\u9762<\/strong><\/a>\u3092\u958b\u304d\u3001\u753b\u9762\u4e0a\u90e8\u306e\u5730\u7403\u5100\u30de\u30fc\u30af\uff08\u8a2d\u5b9a\u2192\u8a00\u8a9e\uff09\u304b\u3089<strong>\u8868\u793a\u8a00\u8a9e\u3092\u300c\u65e5\u672c\u8a9e\u300d\u306b\u8a2d\u5b9a\u3057\u307e\u3059<\/strong>\uff08\u3072\u3089\u304c\u306a\u306e\u300c\u306b\u307b\u3093\u3054\u300d\u3092\u9078\u3076\u3068\u30d6\u30ed\u30c3\u30af\u306e\u8868\u8a18\u304c\u5909\u308f\u308b\u305f\u3081\u3001\u4eca\u56de\u306f\u6f22\u5b57\u6df7\u3058\u308a\u306e\u300c\u65e5\u672c\u8a9e\u300d\u3092\u57fa\u6e96\u306b\u9032\u3081\u307e\u3059\uff09\u3002<\/p>\n<ol>\n<li>\u30cd\u30b3\u306e\u30b9\u30d7\u30e9\u30a4\u30c8\u3092\u9078\u629e\u3057\u3001\u300c\u30b3\u30fc\u30c9\u300d\u30bf\u30d6\u3092\u958b\u304d\u307e\u3059\u3002<\/li>\n<li>\u300c\u5909\u6570\u300d\u30ab\u30c6\u30b4\u30ea\u30fc\u306b\u3042\u308b\u300c\u5909\u6570\u3092\u4f5c\u308b\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001<strong>\u5909\u6570\u540d\u3092\u300c\u304b\u3051\u308b\u6570\u300d\u306b\u3057\u307e\u3059<\/strong>\u3002<strong>\u300c\u3059\u3079\u3066\u306e\u30b9\u30d7\u30e9\u30a4\u30c8\u7528\u300d<\/strong>\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u305f\u307e\u307e\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li>\u300c\u30a4\u30d9\u30f3\u30c8\u300d\u304b\u3089\u3001\u7dd1\u306e\u65d7\u306e\u30a2\u30a4\u30b3\u30f3\u304c\u4ed8\u3044\u305f\u300c\u2691 \u304c\u62bc\u3055\u308c\u305f\u3068\u304d\u300d\u3092\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u306b\u7f6e\u304d\u307e\u3059\u3002<\/li>\n<li>\u305d\u306e\u771f\u4e0b\u306b\u3001\u300c\u5909\u6570\u300d\u306e<strong>\u300c\u304b\u3051\u308b\u6570\u30921\u306b\u3059\u308b\u300d<\/strong>\u3092\u7e4b\u3052\u307e\u3059\u3002\u3053\u308c\u304c\u30b9\u30bf\u30fc\u30c8\u6642\u306e\u521d\u671f\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>\u7d9a\u3051\u3066\u300c\u5236\u5fa1\u300d\u304b\u3089<strong>\u300c9\u56de\u7e70\u308a\u8fd4\u3059\u300d<\/strong>\u3092\u7e4b\u3052\u307e\u3059\u3002<\/li>\n<li>\u3053\u306e\u7e70\u308a\u8fd4\u3057\u306e\u67a0\u306e\u5185\u5074\u306b\u3001\u300c\u898b\u305f\u76ee\u300d\u306e\u300c\uff08\u3000\uff09\u30681\u79d2\u8a00\u3046\u300d\u3092\u5165\u308c\u307e\u3059\u3002<\/li>\n<li>\u300c\uff08\u3000\uff09\u30681\u79d2\u8a00\u3046\u300d\u306e\u4e38\u3044\u5165\u529b\u6b04\u306b\u3001\u300c\u6f14\u7b97\u300d\u306e\u300c\u25cb * \u25cb\u300d\u30d6\u30ed\u30c3\u30af\u3092\u306f\u3081\u8fbc\u307f\u3001\u5de6\u5074\u306b\u534a\u89d2\u6570\u5b57\u306e\u300c2\u300d\u3001\u53f3\u5074\u306b\u5909\u6570\u30d6\u30ed\u30c3\u30af\u306e\u300c\u304b\u3051\u308b\u6570\u300d\u3092\u5165\u308c\u307e\u3059\u3002<\/li>\n<li>\u300c\u8a00\u3046\u300d\u30d6\u30ed\u30c3\u30af\u306e\u3059\u3050\u4e0b\u306b\u3001\u300c\u5909\u6570\u300d\u306e<strong>\u300c\u304b\u3051\u308b\u6570\u30921\u305a\u3064\u5909\u3048\u308b\u300d<\/strong>\u3092\u7e4b\u3052\u307e\u3059\u3002<strong>\u3053\u306e\u30d6\u30ed\u30c3\u30af\u3082\u5fc5\u305a\u7e70\u308a\u8fd4\u3057\u306e\u5185\u5074\u306b\u914d\u7f6e\u3057\u3066\u304f\u3060\u3055\u3044<\/strong>\u3002<\/li>\n<\/ol>\n<p>\u5b8c\u6210\u3057\u305f\u30d6\u30ed\u30c3\u30af\u306e\u7d44\u307f\u5408\u308f\u305b\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff08<strong>\u30a4\u30f3\u30c7\u30f3\u30c8\u3055\u308c\u3066\u3044\u308b2\u3064\u306e\u547d\u4ee4\u304c\u300c9\u56de\u7e70\u308a\u8fd4\u3059\u300d\u306e\u5185\u5074\u306b\u5165\u308a\u307e\u3059<\/strong>\uff09\u3002\u30d6\u30ed\u30c3\u30af\u306e\u540d\u79f0\u306f<a href=\"https:\/\/raw.githubusercontent.com\/scratchfoundation\/scratch-l10n\/master\/editor\/blocks\/ja.json\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Scratch\u516c\u5f0f\u306e\u65e5\u672c\u8a9e\u7ffb\u8a33<\/strong><\/a>\u306b\u6e96\u62e0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-text\" data-lang=\"Text\"><code>\u2691 \u304c\u62bc\u3055\u308c\u305f\u3068\u304d\r\n\u304b\u3051\u308b\u6570\u3092\uff081\uff09\u306b\u3059\u308b\r\n\uff089\uff09\u56de\u7e70\u308a\u8fd4\u3059\r\n    \uff08\uff082\uff09*\uff08\u304b\u3051\u308b\u6570\uff09\uff09\u3068\uff081\uff09\u79d2\u8a00\u3046\r\n    \u304b\u3051\u308b\u6570\u3092\uff081\uff09\u305a\u3064\u5909\u3048\u308b<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u300c\u304b\u3051\u308b\u6570\u30921\u306b\u3059\u308b\u300d\u30d6\u30ed\u30c3\u30af\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u5fc5\u305a\u7e70\u308a\u8fd4\u3057\u306e\u5916\u5074\uff08\u624b\u524d\uff09\u306b\u7f6e\u3044\u3066\u304f\u3060\u3055\u3044<\/strong><\/span>\u3002\u3082\u3057\u67a0\u306e\u5185\u5074\u306b\u5165\u308c\u3066\u3057\u307e\u3046\u3068\u3001\u7e70\u308a\u8fd4\u3059\u305f\u3073\u306b\u5024\u304c1\u3078\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3057\u307e\u3044\u3001\u300c2\u300d\u3068\u3060\u3051\u5ef6\u3005\u3068\u8a00\u3044\u7d9a\u3051\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u5b9f\u884c\u7d50\u679c\u3068\u5909\u6570\u306e\u78ba\u8a8d<\/h3>\n<p>\u753b\u9762\u4e0a\u90e8\u306e\u7dd1\u306e\u65d7\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30cd\u30b3\u306e\u5439\u304d\u51fa\u3057\u306b<strong>\u300c2\u300d\u300c4\u300d\u300c6\u300d\u2026\u2026\u300c18\u300d\u3068\u9806\u756a\u306b\u7b54\u3048\u304c\u8868\u793a\u3055\u308c\u307e\u3059<\/strong>\u3002\u300c1\u79d2\u8a00\u3046\u300d\u30d6\u30ed\u30c3\u30af\u3092\u4f7f\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u8868\u793a\u3055\u308c\u305f\u7b54\u3048\u3092\u843d\u3061\u7740\u3044\u3066\u76ee\u3067\u8ffd\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u5909\u6570\u30d1\u30ec\u30c3\u30c8\u3067\u300c\u304b\u3051\u308b\u6570\u300d\u306e\u5de6\u5074\u306b\u3042\u308b\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u5165\u308c\u308b\u3068\u3001\u30b9\u30c6\u30fc\u30b8\u4e0a\u306b\u73fe\u5728\u306e\u5909\u6570\u306e\u5024\u304c\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>9\u56de\u76ee\u306e\u51e6\u7406\u3067\u306f\u3001\u300c\u304b\u3051\u308b\u6570\u300d\u304c9\u306e\u72b6\u614b\u3067\u300c18\u300d\u3068\u8a00\u3063\u305f\u3042\u3068\u3001<strong>\u5024\u30921\u5897\u3084\u3057\u3066\u300c10\u300d\u306b\u306a\u308a\u307e\u3059<\/strong>\u3002\u305d\u3057\u306610\u306b\u306a\u3063\u305f\u77ac\u9593\u3001\u6307\u5b9a\u3055\u308c\u305f9\u56de\u306e\u7e70\u308a\u8fd4\u3057\u3092\u7d42\u3048\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u505c\u6b62\u3057\u307e\u3059\u3002\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001<em class=\"yellow-under\">\u300c9\u56de\u7e70\u308a\u8fd4\u3059\u300d\u3068\u3044\u3046\u30d6\u30ed\u30c3\u30af\u304c\u7d42\u4e86\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3092\u5236\u5fa1\u3057\u3001\u300c\u304b\u3051\u308b\u6570\u300d\u3068\u3044\u3046\u5909\u6570\u304c\u8a08\u7b97\u306b\u4f7f\u3046\u6570\u5024\u3092\u7ba1\u7406<\/em>\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u304a\u5b50\u3055\u3093\u3068\u4e00\u7dd2\u306b\u53d6\u308a\u7d44\u3080\u969b\u306f\u3001\u6700\u521d\u306e\u6570\u5024\u30922\u306b\u5909\u3048\u308b\u524d\u306b\u300c\u6700\u521d\u306e\u7b54\u3048\u3068\u6700\u5f8c\u306e\u7b54\u3048\u306f\u3069\u3046\u5909\u308f\u308b\u3068\u601d\u3046\uff1f\u300d\u3068\u554f\u3044\u304b\u3051\u3066\u307f\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002\u7e70\u308a\u8fd4\u3059\u56de\u6570\u30929\u56de\u306e\u307e\u307e\u306b\u3057\u3066\u304a\u3051\u3070\u3001\u7b54\u3048\u306f4\u304b\u308920\u307e\u3067\u5909\u5316\u3057\u307e\u3059\u3002<em class=\"yellow-under\">\u300c\u30b9\u30bf\u30fc\u30c8\u306e\u5024\u300d\u3068\u300c\u7e70\u308a\u8fd4\u3059\u56de\u6570\u300d\u304c\u305d\u308c\u305e\u308c\u5225\u306e\u8a2d\u5b9a\u9805\u76ee<\/em>\u3067\u3042\u308b\u3053\u3068\u3092\u5b9f\u611f\u3067\u304d\u308b\u826f\u3044\u5b9f\u9a13\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>Python\u306efor\u6587\u306b\u3088\u308b\u7e70\u308a\u8fd4\u3057<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/04-insert-3.png\" alt=\"\" width=\"1672\" height=\"941\" class=\"aligncenter size-full wp-image-4724\" srcset=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/04-insert-3.png 1672w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/04-insert-3-300x169.png 300w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/04-insert-3-1024x576.png 1024w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/04-insert-3-768x432.png 768w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/04-insert-3-1536x864.png 1536w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/04-insert-3-390x219.png 390w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/04-insert-3-250x141.png 250w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/04-insert-3-175x98.png 175w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/04-insert-3-150x84.png 150w\" sizes=\"auto, (max-width: 1672px) 100vw, 1672px\" \/><\/p>\n<p>\u3053\u3053\u304b\u3089\u306f\u3001\u5b9f\u52d9\u3067\u3082\u5e83\u304f\u4f7f\u308f\u308c\u3066\u3044\u308b\u30c6\u30ad\u30b9\u30c8\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u300cPython\uff08\u30d1\u30a4\u30bd\u30f3\uff09\u300d\u3092\u4f7f\u3063\u3066\u540c\u3058\u51e6\u7406\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002Python\u3092\u5b9f\u884c\u3067\u304d\u308b\u74b0\u5883\uff08Google Colaboratory\u3084\u5404\u7a2e\u30a8\u30c7\u30a3\u30bf\u306a\u3069\uff09\u306b\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u5b9f\u884c\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u306a\u304a\u3001<span style=\"color: #ff0000;\"><strong>\u30b3\u30fc\u30c9\u5185\u306e\u8a18\u53f7\u3084\u82f1\u6570\u5b57\u306f\u3059\u3079\u3066\u534a\u89d2\u3067\u5165\u529b\u3057\u307e\u3059<\/strong><\/span>\u3002<\/p>\n<p>Python\u306efor\u6587\u306f\u3001\u30ea\u30b9\u30c8\u3084\u7bc4\u56f2\u306a\u3069\u306e<strong>\u300c\u307e\u3068\u307e\u3063\u305f\u30c7\u30fc\u30bf\u300d\u304b\u3089\u8981\u7d20\u30921\u3064\u305a\u3064\u53d6\u308a\u51fa\u3057\u306a\u304c\u3089\u3001\u540c\u3058\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3059<\/strong>\u305f\u3081\u306e\u69cb\u6587\u3067\u3059\u3002\u4eca\u56de\u306f\u3001<strong>\u9023\u7d9a\u3057\u305f\u6574\u6570\u306e\u4e26\u3073\u3092\u751f\u6210\u3059\u308brange\u95a2\u6570<\/strong>\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u30019\u56de\u306e\u8a08\u7b97\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<a href=\"https:\/\/docs.python.org\/ja\/3\/tutorial\/controlflow.html#for-statements\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Python\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306efor\u6587\u3068range<\/strong><\/a><\/p>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>for n in range(1, 10):\r\n    print(2 * n)<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-text\" data-lang=\"Text\"><code>2\r\n4\r\n6\r\n8\r\n10\r\n12\r\n14\r\n16\r\n18<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u3053\u3053\u3067\u4f7f\u3063\u3066\u3044\u308bn\u306f\u5909\u6570\u540d\u3067\u3001Scratch\u3067\u4f5c\u6210\u3057\u305f\u300c\u304b\u3051\u308b\u6570\u300d\u3068\u540c\u3058\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002<strong>for\u6587\u306b\u3088\u3063\u3066\u53d6\u308a\u51fa\u3055\u308c\u305f\u5024\u304c\u3001\u3053\u306en\u306b\u9806\u756a\u306b\u5165\u3063\u3066\u3044\u304d\u307e\u3059<\/strong>\u3002<strong>print()\u306f\u62ec\u5f27\u306e\u4e2d\u8eab\u3092\u753b\u9762\u306b\u8868\u793a\u3059\u308b\u547d\u4ee4<\/strong>\u3067\u3001*\u306f\u639b\u3051\u7b97\u3092\u8868\u3059\u8a18\u53f7\u306a\u306e\u3067\u30012 * n\u3067\u300c2\u00d7n\u300d\u3092\u8a08\u7b97\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6ce8\u610f\u3057\u305f\u3044\u306e\u304crange(1, 10)\u306e\u6307\u5b9a\u65b9\u6cd5\u3067\u3059\u3002range(\u958b\u59cb\u5024, \u7d42\u4e86\u5024)\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u958b\u59cb\u5024\u306e1\u306f\u542b\u307f\u307e\u3059\u304c\u3001\u7d42\u4e86\u5024\u306e10\u306f\u542b\u307f\u307e\u305b\u3093<\/strong><\/span>\u3002\u3064\u307e\u308a<strong>\u300c1\u304b\u30899\u307e\u3067\u300d\u306e\u6574\u6570\u304c\u9806\u756a\u306b\u53d6\u308a\u51fa\u3055\u308c\u307e\u3059<\/strong>\u3002\u6700\u521d\u306fn\u304c1\u306a\u306e\u3067\u300c2\u300d\u3001\u6b21\u306fn\u304c2\u306a\u306e\u3067\u300c4\u300d\u304c\u8868\u793a\u3055\u308c\u3001\u6700\u5f8c\u306bn\u304c9\u306b\u306a\u3063\u3066\u300c18\u300d\u3092\u8868\u793a\u3057\u305f\u3042\u3068\u3001\u53d6\u308a\u51fa\u3059\u30c7\u30fc\u30bf\u304c\u306a\u304f\u306a\u3063\u3066\u30eb\u30fc\u30d7\u304c\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001for\u306e\u884c\u306e\u672b\u5c3e\u306b\u3042\u308b:\uff08\u30b3\u30ed\u30f3\uff09\u306f\u3001\u300c\u3053\u3053\u304b\u3089\u4e0b\u306b\u7e70\u308a\u8fd4\u3057\u305f\u3044\u51e6\u7406\u304c\u7d9a\u304d\u307e\u3059\u300d\u3068\u3044\u3046\u5408\u56f3\u3067\u3059\u3002\u6b21\u306e<em class=\"yellow-under\">\u884c\u306e\u5148\u982d\u306b\u7a7a\u767d\u3092\u5165\u308c\u3066\u4e00\u6bb5\u4e0b\u3052\u308b\u66f8\u304d\u65b9\u3092\u300c\u30a4\u30f3\u30c7\u30f3\u30c8\uff08\u5b57\u4e0b\u3052\uff09\u300d\u3068\u547c\u3073<\/em>\u3001Python\u3067\u306f\u3053\u306e\u5b57\u4e0b\u3052\u306b\u3088\u3063\u3066\u300c\u3069\u3053\u307e\u3067\u304cfor\u6587\u306e\u5185\u5074\u306e\u51e6\u7406\u304b\u300d\u3092\u5224\u65ad\u3057\u307e\u3059\u3002<strong>\u901a\u5e38\u306f\u534a\u89d2\u30b9\u30da\u30fc\u30b94\u3064\u3067\u63c3\u3048\u308b\u306e\u304c\u57fa\u672c<\/strong>\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306b\u306f\u3001Scratch\u306b\u3042\u3063\u305f\u300c\u304b\u3051\u308b\u6570\u30921\u305a\u3064\u5909\u3048\u308b\u300d\u306e\u3088\u3046\u306a\u547d\u4ee4\u304c\u898b\u5f53\u305f\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u3001<strong>for\u6587\u304c\u81ea\u52d5\u7684\u306brange\u304b\u3089\u6b21\u306e\u6570\u5024\u3092\u9806\u756a\u306b\u53d6\u308a\u51fa\u3057\u3066n\u306b\u4ee3\u5165\u3057\u3066\u304f\u308c\u308b<\/strong>\u305f\u3081\u3067\u3059\u3002\u540c\u3058\u8a08\u7b97\u7d50\u679c\u3092\u5f97\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3082\u3001\u8a00\u8a9e\u3084\u66f8\u304d\u65b9\u306b\u3088\u3063\u3066\u5185\u90e8\u306e\u4ed5\u7d44\u307f\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>Python\u306ewhile\u6587\u3068\u7d42\u4e86\u6761\u4ef6<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/05-insert-3.png\" alt=\"\" width=\"1672\" height=\"941\" class=\"aligncenter size-full wp-image-4725\" srcset=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/05-insert-3.png 1672w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/05-insert-3-300x169.png 300w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/05-insert-3-1024x576.png 1024w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/05-insert-3-768x432.png 768w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/05-insert-3-1536x864.png 1536w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/05-insert-3-390x219.png 390w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/05-insert-3-250x141.png 250w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/05-insert-3-175x98.png 175w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/05-insert-3-150x84.png 150w\" sizes=\"auto, (max-width: 1672px) 100vw, 1672px\" \/><\/p>\n<p>\u3082\u30461\u3064\u306e\u7e70\u308a\u8fd4\u3057\u306e\u66f8\u304d\u65b9\u304cwhile\uff08\u30db\u30ef\u30a4\u30eb\uff09\u6587\u3067\u3059\u3002while\u6587\u306f\u3001<strong>\u300c\u6307\u5b9a\u3057\u305f\u6761\u4ef6\u304c\u6210\u308a\u7acb\u3063\u3066\u3044\u308b\u9593\uff08\u771f\u3067\u3042\u308b\u9593\uff09\u300d\u3001\u5185\u5074\u306e\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3057\u307e\u3059<\/strong>\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u306f\u3001\u6761\u4ef6\u304c\u6210\u7acb\u3057\u3066\u3044\u308b\u72b6\u614b\u3092<strong>\u300c\u771f\uff08True\uff09\u300d\u3001\u6210\u7acb\u3057\u3066\u3044\u306a\u3044\u72b6\u614b\u3092\u300c\u507d\uff08False\uff09\u300d<\/strong>\u3068\u547c\u3073\u307e\u3059\u3002\u6761\u4ef6\u304c\u5408\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u30eb\u30fc\u30d7\u5185\u306e\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u524d\u306b\u6bce\u56de\u30c1\u30a7\u30c3\u30af<\/strong><\/span>\u3055\u308c\u307e\u3059\u3002<a href=\"https:\/\/docs.python.org\/ja\/3\/reference\/compound_stmts.html#the-while-statement\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Python\u516c\u5f0f\u8a00\u8a9e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306ewhile\u6587<\/strong><\/a><\/p>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>n = 1\r\nwhile n &lt;= 9:\r\n    print(2 * n)\r\n    n = n + 1<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3082\u3001\u5148\u307b\u3069\u3068\u307e\u3063\u305f\u304f\u540c\u30589\u3064\u306e\u7b54\u3048\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-text\" data-lang=\"Text\"><code>2\r\n4\r\n6\r\n8\r\n10\r\n12\r\n14\r\n16\r\n18<\/code><\/pre>\n<\/div>\n<\/div>\n<p>1\u884c\u76ee\u306en = 1\u306f\u3001<strong>\u5909\u6570n\u306b\u6700\u521d\u306e\u5024\u3068\u3057\u30661\u3092\u5165\u308c\u308b\uff08\u4ee3\u5165\u3059\u308b\uff09\u547d\u4ee4<\/strong>\u3067\u3059\u3002Python\u306b\u304a\u3051\u308b=\u306f\u300c\u5de6\u53f3\u304c\u7b49\u3057\u3044\u300d\u3068\u3044\u3046\u610f\u5473\u3067\u306f\u306a\u304f\u3001<strong>\u300c\u53f3\u5074\u306e\u5024\u3092\u5de6\u5074\u306e\u5909\u6570\u306b\u4ee3\u5165\u3059\u308b\u300d<\/strong>\u3068\u3044\u3046\u610f\u5473\u3092\u6301\u3061\u307e\u3059\u3002<a href=\"https:\/\/docs.python.org\/ja\/3\/tutorial\/introduction.html#numbers\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Python\u516c\u5f0f\u306e\u4ee3\u5165\u306e\u8aac\u660e<\/strong><\/a><\/p>\n<p>while\u306e\u96a3\u306b\u3042\u308b<em class=\"yellow-under\">&lt;=\u306f\u3001\u300c\u301c\u4ee5\u4e0b\u300d\u3092\u8868\u3059\u6bd4\u8f03\u6f14\u7b97\u5b50<\/em>\u3067\u3059\u3002<strong>n &lt;= 9\u306f\u300cn\u304c9\u4ee5\u4e0b\u3067\u3042\u308b\u300d\u3068\u3044\u3046\u6761\u4ef6<\/strong>\u3092\u8868\u3057\u3001\u3053\u306e\u6761\u4ef6\u304c\u6b63\u3057\u3044\uff08\u771f\u3067\u3042\u308b\uff09\u9593\u3060\u3051\u51e6\u7406\u304c\u7d9a\u304d\u307e\u3059\u3002\u3082\u3057&lt;\uff08\u3088\u308a\u5c0f\u3055\u3044 \/ \u672a\u6e80\uff09\u3092\u4f7f\u3063\u3066\u3057\u307e\u3046\u30689\u304c\u542b\u307e\u308c\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u8a18\u53f7\u306e\u610f\u5473\u3068\u6570\u5024\u3092\u30bb\u30c3\u30c8\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u30eb\u30fc\u30d7\u306e\u4e2d\u306b\u3042\u308bn = n + 1\u304c\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002\u3053\u308c\u306f<strong>\u300c\u73fe\u5728\u306en\u306e\u5024\u306b1\u3092\u8db3\u3057\u3066\u3001\u518d\u3073n\u306b\u4ee3\u5165\u3057\u76f4\u3059\u300d\u3068\u3044\u3046\u51e6\u7406<\/strong>\u3067\u3001Scratch\u306e\u300c\u304b\u3051\u308b\u6570\u30921\u305a\u3064\u5909\u3048\u308b\u300d\u3068\u307e\u3063\u305f\u304f\u540c\u3058\u50cd\u304d\u3092\u3057\u307e\u3059\u3002\u3053\u306e\u884c\u306b\u3088\u3063\u3066\u3001n\u306f1\u30012\u30013\u2026\u2026\u30681\u3064\u305a\u3064\u5897\u3048\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u6761\u4ef6\u5224\u5b9a\u304b\u3089\u7d42\u4e86\u307e\u3067\u306e\u8ffd\u8de1\u8868<\/h3>\n<p>\u4e0a\u8a18\u306ewhile\u6587\u304c\u3069\u306e\u3088\u3046\u306b\u52d5\u3044\u3066\u3044\u308b\u306e\u304b\u30011\u56de\u305a\u3064\u306e\u51e6\u7406\u3092\u6574\u7406\u3057\u305f\u306e\u304c\u6b21\u306e\u8ffd\u8de1\u8868\uff08\u30c8\u30ec\u30fc\u30b9\u8868\uff09\u3067\u3059\u3002<strong>\u300c\u66f4\u65b0\u5f8c\u306en\u300d\u304c\u3001\u6b21\u56de\u306e\u6761\u4ef6\u5224\u5b9a\u3067\u4f7f\u308f\u308c\u308b\u5024<\/strong>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"overflow-x-auto\">\n<table>\n<thead>\n<tr>\n<th scope=\"col\">\u7e70\u308a\u8fd4\u3057\u306e\u56de\u6570<\/th>\n<th scope=\"col\">\u6761\u4ef6\u5224\u5b9a\u6642\u306en<\/th>\n<th scope=\"col\">n &lt;= 9\u306e\u5224\u5b9a<\/th>\n<th scope=\"col\">\u8868\u793a\u3059\u308b\u8a08\u7b97\u7d50\u679c<\/th>\n<th scope=\"col\">\u66f4\u65b0\u5f8c\u306en<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1\u56de\u76ee<\/td>\n<td>1<\/td>\n<td>\u771f<\/td>\n<td>2\u00d71\uff1d2<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>2\u56de\u76ee<\/td>\n<td>2<\/td>\n<td>\u771f<\/td>\n<td>2\u00d72\uff1d4<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>3\u56de\u76ee<\/td>\n<td>3<\/td>\n<td>\u771f<\/td>\n<td>2\u00d73\uff1d6<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>4\u56de\u76ee<\/td>\n<td>4<\/td>\n<td>\u771f<\/td>\n<td>2\u00d74\uff1d8<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>5\u56de\u76ee<\/td>\n<td>5<\/td>\n<td>\u771f<\/td>\n<td>2\u00d75\uff1d10<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>6\u56de\u76ee<\/td>\n<td>6<\/td>\n<td>\u771f<\/td>\n<td>2\u00d76\uff1d12<\/td>\n<td>7<\/td>\n<\/tr>\n<tr>\n<td>7\u56de\u76ee<\/td>\n<td>7<\/td>\n<td>\u771f<\/td>\n<td>2\u00d77\uff1d14<\/td>\n<td>8<\/td>\n<\/tr>\n<tr>\n<td>8\u56de\u76ee<\/td>\n<td>8<\/td>\n<td>\u771f<\/td>\n<td>2\u00d78\uff1d16<\/td>\n<td>9<\/td>\n<\/tr>\n<tr>\n<td>9\u56de\u76ee<\/td>\n<td>9<\/td>\n<td>\u771f<\/td>\n<td>2\u00d79\uff1d18<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>\u7d42\u4e86\u306e\u5224\u5b9a\uff08\u51e6\u7406\u306f\u5b9f\u884c\u3055\u308c\u306a\u3044\uff09<\/td>\n<td>10<\/td>\n<td>\u507d<\/td>\n<td>\u8868\u793a\u306a\u3057<\/td>\n<td>\u66f4\u65b0\u306a\u3057\uff0810\u306e\u307e\u307e\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u5b9f\u969b\u306b<em class=\"yellow-under\">\u753b\u9762\u3078\u7b54\u3048\u3092\u8868\u793a\u3057\u305f\u306e\u306f9\u56de<\/em>\u3067\u3059\u304c\u3001<em class=\"yellow-under\">\u6761\u4ef6\u306e\u30c1\u30a7\u30c3\u30af\u81ea\u4f53\u306f\u300c\u7d42\u308f\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u6700\u5f8c\u306e1\u56de\u300d\u3092\u542b\u3081\u3066\u5408\u8a0810\u56de<\/em>\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u300210\u56de\u76ee\u306e\u30c1\u30a7\u30c3\u30af\u3067\u300c10\u306f9\u4ee5\u4e0b\u3067\u306f\u306a\u3044\uff08\u507d\uff09\u300d\u3068\u5224\u5b9a\u3055\u308c\u305f\u305f\u3081\u3001\u8a08\u7b97\u3082\u8868\u793a\u3082\u884c\u308f\u305a\u306b\u30eb\u30fc\u30d7\u3092\u629c\u3051\u3066\u7d42\u4e86\u3057\u305f\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u6700\u521d\u306e\u8a2d\u5b9a\u3092n = 10\u304b\u3089\u30b9\u30bf\u30fc\u30c8\u3055\u305b\u305f\u5834\u5408\u3001<em class=\"yellow-under\">1\u56de\u76ee\u306e\u5224\u5b9a\u3067\u3044\u304d\u306a\u308a\u300c\u507d\u300d\u306b\u306a\u308b\u305f\u3081\u3001\u30eb\u30fc\u30d7\u306e\u4e2d\u8eab\u306f1\u5ea6\u3082\u5b9f\u884c\u3055\u308c\u305a\u306b\u7d42\u4e86\u3057\u307e\u3059<\/em>\u3002\u300c\u7e70\u308a\u8fd4\u3057\u3092\u66f8\u3044\u305f\u3089\u6700\u4f4e\u3067\u30821\u56de\u306f\u52d5\u304f\u300d\u3068\u601d\u3044\u8fbc\u307e\u305a\u3001\u6700\u521d\u306e\u6761\u4ef6\u30c1\u30a7\u30c3\u30af\u304b\u3089\u9806\u3092\u8ffd\u3063\u3066\u8003\u3048\u308b\u7656\u3092\u3064\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>for\u6587\u3068while\u6587\u306e\u9055\u3044\u3068\u4f7f\u3044\u5206\u3051<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/06-insert-3.png\" alt=\"\" width=\"1672\" height=\"941\" class=\"aligncenter size-full wp-image-4726\" srcset=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/06-insert-3.png 1672w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/06-insert-3-300x169.png 300w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/06-insert-3-1024x576.png 1024w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/06-insert-3-768x432.png 768w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/06-insert-3-1536x864.png 1536w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/06-insert-3-390x219.png 390w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/06-insert-3-250x141.png 250w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/06-insert-3-175x98.png 175w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/06-insert-3-150x84.png 150w\" sizes=\"auto, (max-width: 1672px) 100vw, 1672px\" \/><\/p>\n<p>Python\u3067\u7e70\u308a\u8fd4\u3057\u3092\u66f8\u304f\u969b\u306f\u3001<em class=\"yellow-under\">\u300c\u3042\u3089\u304b\u3058\u3081\u9806\u756a\u306b\u53d6\u308a\u51fa\u305b\u308b\u30c7\u30fc\u30bf\u304c\u3042\u308b\u304b\u300d\u305d\u308c\u3068\u3082\u300c\u7279\u5b9a\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u308b\u9593\u3060\u3051\u7d9a\u3051\u305f\u3044\u304b\u300d<\/em>\u306b\u3088\u3063\u3066\u4f7f\u3044\u5206\u3051\u307e\u3059\u3002\u4eca\u56de\u306e\u4e5d\u4e5d\u306e\u3088\u3046\u306b\u56de\u6570\u304c\u6c7a\u307e\u3063\u3066\u3044\u308b\u51e6\u7406\u306f\u3001\u3069\u3061\u3089\u306e\u69cb\u6587\u3092\u4f7f\u3063\u3066\u3082\u4f5c\u6210\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<div class=\"overflow-x-auto\">\n<table>\n<thead>\n<tr>\n<th scope=\"col\">\u6bd4\u8f03\u9805\u76ee<\/th>\n<th scope=\"col\">for\u6587<\/th>\n<th scope=\"col\">while\u6587<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u57fa\u672c\u7684\u306a\u50cd\u304d<\/td>\n<td><strong>\u7528\u610f\u3055\u308c\u305f\u30c7\u30fc\u30bf\u304b\u3089\u8981\u7d20\u3092\u9806\u306b\u53d6\u308a\u51fa\u3057\u3066\u7e70\u308a\u8fd4\u3059<\/strong><\/td>\n<td><strong>\u6307\u5b9a\u3057\u305f\u6761\u4ef6\u304c\u300c\u771f\u300d\u306e\u9593\u3001\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3059<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\u4eca\u56de\u306e\u4e5d\u4e5d\u3067\u306e\u4f7f\u3044\u65b9<\/td>\n<td>range(1, 10)\u304b\u30891\u301c9\u306e\u6570\u5b57\u3092\u53d6\u308a\u51fa\u3059<\/td>\n<td>n\u30921\u304b\u3089\u30b9\u30bf\u30fc\u30c8\u3057\u3001n &lt;= 9\u306e\u9593\u7d9a\u3051\u308b<\/td>\n<\/tr>\n<tr>\n<td>\u5909\u6570\u306e\u66f4\u65b0<\/td>\n<td>\u53d6\u308a\u51fa\u3057\u305f\u8981\u7d20\u304c\u81ea\u52d5\u7684\u306b\u5909\u6570n\u306b\u5165\u308b<\/td>\n<td>\u30eb\u30fc\u30d7\u5185\u3067n = n + 1\u3092\u66f8\u3044\u3066\u81ea\u5206\u3067\u66f4\u65b0\u3059\u308b<\/td>\n<\/tr>\n<tr>\n<td>\u7d42\u4e86\u306e\u4ed5\u7d44\u307f<\/td>\n<td><strong>\u53d6\u308a\u51fa\u3059\u30c7\u30fc\u30bf\u304c\u3059\u3079\u3066\u306a\u304f\u306a\u3063\u305f\u3089\u7d42\u4e86\u3059\u308b<\/strong><\/td>\n<td><strong>\u6761\u4ef6\u5f0f\uff08n &lt;= 9\uff09\u304c\u300c\u507d\u300d\u306b\u306a\u3063\u305f\u3089\u7d42\u4e86\u3059\u308b<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u300c1\u304b\u30899\u307e\u3067\u306e\u6570\u5b57\u3092\u4f7f\u3063\u3066\u9806\u756a\u306b\u8a08\u7b97\u3059\u308b\u300d\u3068\u3044\u3046\u660e\u78ba\u306a\u6c7a\u307e\u308a\u304c\u3042\u308b\u5834\u5408\u306f\u3001<strong>for\u6587\u3068range\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u307b\u3046\u304c\u30b3\u30fc\u30c9\u3092\u3059\u3063\u304d\u308a\u3068\u77ed\u304f\u66f8\u3051\u307e\u3059<\/strong>\u3002<\/p>\n<p>\u4e00\u65b9\u3067\u3001\u300c\u30b2\u30fc\u30e0\u3067\u30d7\u30ec\u30a4\u30e4\u30fc\u306eHP\u304c0\u306b\u306a\u308b\u307e\u3067\u7d9a\u3051\u308b\u300d\u300c\u30e6\u30fc\u30b6\u30fc\u304c\u6b63\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u307e\u3067\u518d\u5165\u529b\u3092\u6c42\u3081\u308b\u300d\u3068\u3044\u3063\u305f\u3088\u3046\u306b\u3001<em class=\"yellow-under\">\u4f55\u56de\u7e70\u308a\u8fd4\u3059\u304b\u306f\u6c7a\u307e\u3063\u3066\u304a\u3089\u305a\u3001\u72b6\u6cc1\u3084\u6761\u4ef6\u6b21\u7b2c\u3067\u7d42\u4e86\u30bf\u30a4\u30df\u30f3\u30b0\u3092\u6c7a\u3081\u305f\u3044\u5834\u9762\u3067\u306fwhile\u6587\u304c\u9069\u3057\u3066\u3044\u307e\u3059<\/em>\u3002<\/p>\n<p>for\u6587\u3092\u5358\u306b\u300c\u56de\u6570\u304c\u6c7a\u307e\u3063\u3066\u3044\u308b\u3068\u304d\u306b\u4f7f\u3046\u69cb\u6587\u300d\u3068\u3060\u3051\u899a\u3048\u308b\u3068\u3001\u5c06\u6765\u30ea\u30b9\u30c8\u3084\u6587\u5b57\u5217\u306a\u3069\u306e\u30c7\u30fc\u30bf\u3092\u6271\u3046\u969b\u306b\u7406\u89e3\u304c\u72ed\u307e\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u300c<strong>\u7528\u610f\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306e\u4e26\u3073\u304b\u3089\u8981\u7d20\u3092\u9806\u306b\u53d6\u308a\u51fa\u3057\u3066\u51e6\u7406\u3059\u308b\u306e\u304c\u57fa\u672c<\/strong>\u3067\u3042\u308a\u3001\u4eca\u56de\u306frange\u95a2\u6570\u3092\u4f7f\u3063\u3066\u56de\u6570\u3092\u6307\u5b9a\u3059\u308b\u5f62\u306b\u3057\u3066\u3044\u308b\u300d\u3068\u6574\u7406\u3057\u3066\u304a\u304f\u3068\u3001\u5fdc\u7528\u304c\u52b9\u304d\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<a href=\"https:\/\/docs.python.org\/ja\/3\/reference\/compound_stmts.html#the-for-statement\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Python\u516c\u5f0f\u306efor\u6587\u306e\u5b9a\u7fa9<\/strong><\/a><\/p>\n<p>\u306a\u304a\u3001\u51e6\u7406\u304c\u7d42\u308f\u3063\u305f\u3042\u3068\u306e\u5909\u6570n\u306e\u5024\u3092\u6bd4\u3079\u308b\u3068\u3001<em class=\"yellow-under\">for\u6587\u3067\u306f\u300c9\u300d\u3001while\u6587\u3067\u306f\u300c10\u300d<\/em>\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u753b\u9762\u306b\u51fa\u529b\u3055\u308c\u305f\u7b54\u3048\u306f\u307e\u3063\u305f\u304f\u540c\u3058\u3067\u3082\u3001\u5909\u6570\u3092\u66f4\u65b0\u3057\u3066\u3044\u304f\u4ed5\u7d44\u307f\u304c\u7570\u306a\u308b\u305f\u3081\u3001\u7d42\u4e86\u5f8c\u306b\u6b8b\u308b\u5909\u6570\u306e\u5024\u307e\u3067\u540c\u3058\u306b\u306a\u308b\u3068\u306f\u9650\u3089\u306a\u3044\u70b9\u3082\u77e5\u3063\u3066\u304a\u304f\u3068\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>Scratch\u306e\u300c\u307e\u3067\u7e70\u308a\u8fd4\u3059\u300d\u3068while\u6587\u306e\u6761\u4ef6\u306e\u9055\u3044<\/h3>\n<p>Scratch\u306b\u306f\u300c9\u56de\u7e70\u308a\u8fd4\u3059\u300d\u306e\u307b\u304b\u306b\u3001\u300c\u3008\u3000\u3009\u307e\u3067\u7e70\u308a\u8fd4\u3059\u300d\u3068\u3044\u3046\u30d6\u30ed\u30c3\u30af\u3082\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u4f7f\u3063\u3066<strong>\u300c\u3008\u304b\u3051\u308b\u6570 &gt; 9\u3009\u307e\u3067\u7e70\u308a\u8fd4\u3059\u300d<\/strong>\u3068\u7d44\u307f\u7acb\u3066\u3066\u3082\u3001\u521d\u671f\u5024\u30921\u306b\u3057\u3066\u540c\u3058\u3088\u3046\u306b\u66f4\u65b0\u3092\u884c\u3048\u30702\u306e\u6bb5\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<a href=\"https:\/\/raw.githubusercontent.com\/scratchfoundation\/scratch-editor\/develop\/packages\/scratch-vm\/src\/blocks\/scratch3_control.js\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Scratch\u516c\u5f0f\u306e\u53cd\u5fa9\u51e6\u7406\u306e\u5b9f\u88c5<\/strong><\/a><\/p>\n<p>\u3053\u3053\u3067\u6ce8\u610f\u3057\u305f\u3044\u306e\u304c\u6761\u4ef6\u306e\u5411\u304d\u3067\u3059\u3002Scratch\u306e\u30d6\u30ed\u30c3\u30af\u306f<em class=\"yellow-under\">\u300c10\u306b\u306a\u3063\u305f\u3089\u7d42\u4e86\u3059\u308b\u300d\u3068\u3044\u3046\u7d42\u4e86\u6761\u4ef6<\/em>\u3092\u6307\u5b9a\u3059\u308b\u306e\u306b\u5bfe\u3057\u3001Python\u306ewhile n &lt;= 9\u306f<em class=\"yellow-under\">\u300c9\u4ee5\u4e0b\u3067\u3042\u308b\u9593\u306f\u7d9a\u3051\u308b\u300d\u3068\u3044\u3046\u7d99\u7d9a\u6761\u4ef6<\/em>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3069\u3061\u3089\u3082\u540c\u3058\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u6b62\u307e\u308a\u307e\u3059\u304c\u3001\u6761\u4ef6\u306e\u8003\u3048\u65b9\u304c\u6b63\u53cd\u5bfe\u3067\u3059\u3002Scratch\u306e\u611f\u899a\u306e\u307e\u307ewhile\u6587\u306b\u6761\u4ef6\u3092\u5f53\u3066\u306f\u3081\u3066\u3057\u307e\u3046\u3068\u3001\u6700\u521d\u304b\u3089\u52d5\u304b\u306a\u304b\u3063\u305f\u308a\u3001\u601d\u308f\u306c\u8aa4\u52d5\u4f5c\u306b\u3064\u306a\u304c\u3063\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001Scratch\u306f\u5439\u304d\u51fa\u3057\u3092\u4f7f\u3063\u3066\u300c1\u79d2\u305a\u3064\u9593\u9694\u3092\u7a7a\u3051\u3066\u300d\u8868\u793a\u3057\u307e\u3059\u304c\u3001\u4eca\u56de\u306ePython\u306e\u30b3\u30fc\u30c9\u306f\u5b9f\u884c\u7d50\u679c\u306e\u30a8\u30ea\u30a2\u306b\u4e00\u77ac\u3067\u6539\u884c\u3057\u306a\u304c\u3089\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\uff08\u8a08\u7b97\u306e\u624b\u9806\uff09\u306f\u540c\u3058\u3067\u3082\u3001<strong>\u753b\u9762\u3078\u306e\u898b\u305b\u65b9\u3084\u5f85\u6a5f\u6642\u9593\u306e\u6271\u3044\u306a\u3069\u306f\u5b9f\u884c\u74b0\u5883\u306b\u3088\u3063\u3066\u7570\u306a\u308b<\/strong>\u70b9\u3082\u610f\u8b58\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u7e70\u308a\u8fd4\u3057\u3067\u3088\u304f\u3042\u308b\u9593\u9055\u3044\u3068\u5bfe\u7b56<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/07-insert-3.png\" alt=\"\" width=\"1672\" height=\"941\" class=\"aligncenter size-full wp-image-4727\" srcset=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/07-insert-3.png 1672w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/07-insert-3-300x169.png 300w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/07-insert-3-1024x576.png 1024w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/07-insert-3-768x432.png 768w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/07-insert-3-1536x864.png 1536w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/07-insert-3-390x219.png 390w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/07-insert-3-250x141.png 250w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/07-insert-3-175x98.png 175w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/07-insert-3-150x84.png 150w\" sizes=\"auto, (max-width: 1672px) 100vw, 1672px\" \/><\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u601d\u3044\u901a\u308a\u306b\u52d5\u304b\u306a\u3044\u3068\u304d\u306f\u3001<strong>\u300c\u958b\u59cb\u6642\u306e\u5024\u300d\u300c\u7d42\u4e86\u306e\u6761\u4ef6\u300d\u300c\u5024\u306e\u66f4\u65b0\u51e6\u7406\u300d\u300c\u547d\u4ee4\u3092\u4e26\u3079\u308b\u9806\u5e8f\u300d\u306e4\u3064<\/strong>\u30921\u3064\u305a\u3064\u898b\u76f4\u3057\u307e\u3059\u3002\u60f3\u5b9a\u3068\u9055\u3046\u7d50\u679c\u306b\u306a\u3063\u305f\u3089\u3001<strong>\u300c\u4f55\u56de\u76ee\u306e\u51e6\u7406\u304b\u3089\u72c2\u3044\u59cb\u3081\u305f\u304b\u300d\u3092\u7279\u5b9a<\/strong>\u3059\u308b\u306e\u304c\u30c8\u30e9\u30d6\u30eb\u89e3\u6c7a\u306e\u8fd1\u9053\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>1. range\u306e\u7d42\u4e86\u5024\u306e\u9593\u9055\u3044<\/h3>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>for n in range(1, 9):\r\n    print(2 * n)<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u30011\u301c8\u307e\u3067\u3057\u304b\u51e6\u7406\u3055\u308c\u305a\u3001\u753b\u9762\u306b\u306f\u300c2\u301c16\u300d\u307e\u3067\u306e8\u500b\u3057\u304b\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u539f\u56e0\u306f\u3001<strong>range(1, 9)\u306e\u7d42\u4e86\u5024\u3067\u3042\u308b\u300c9\u300d\u304c\u542b\u307e\u308c\u306a\u3044<\/strong>\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>2\u00d79\u307e\u3067\u3057\u3063\u304b\u308a\u8a08\u7b97\u3057\u305f\u3044\u5834\u5408\u306f\u3001<strong>\u7d42\u4e86\u5024\u30921\u3064\u5897\u3084\u3057\u3066range(1, 10)\u3068\u66f8\u304f<\/strong>\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>2. \u4e0d\u7b49\u53f7\u306e\u8a18\u53f7\uff08&lt; \u3068 &lt;=\uff09\u306b\u3088\u308b\u56de\u6570\u306e\u30ba\u30ec<\/h3>\n<p>while\u6587\u306e\u6761\u4ef6\u3092\u3046\u3063\u304b\u308an &lt; 9\u3068\u66f8\u3044\u3066\u3057\u307e\u3046\u3068\u3001n\u304c1\u301c8\u306e\u9593\u3057\u304b\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>n\u304c9\u306b\u306a\u3063\u305f\u77ac\u9593\u306b\u6761\u4ef6\u304c\u6210\u308a\u7acb\u305f\u306a\u304f\u306a\u308a\u30018\u56de\u3067\u7d42\u4e86\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>9\u56de\u304d\u3063\u3061\u308a\u52d5\u304b\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u30a4\u30b3\u30fc\u30eb\u3092\u542b\u3081\u305f<strong>n &lt;= 9\u306b\u3059\u308b\u304b\u3001\u3042\u308b\u3044\u306fn &lt; 10\u3068\u66f8\u304f<\/strong>\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u8a18\u53f7\u306e\u5f62\u3092\u4e38\u6697\u8a18\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001<strong>\u300c\u6700\u5f8c\u306b\u4f7f\u3044\u305f\u3044\u6570\u5b57\u306e\u3068\u304d\u306b\u3001\u3053\u306e\u6761\u4ef6\u306f\u672c\u5f53\u306b\u6210\u308a\u7acb\u3064\u304b\uff1f\u300d<\/strong>\u3092\u5177\u4f53\u7684\u306b\u5f53\u3066\u306f\u3081\u3066\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>3. \u5909\u6570\u306e\u66f4\u65b0\u5fd8\u308c\u306b\u3088\u308b\u300c\u7121\u9650\u30eb\u30fc\u30d7\u300d<\/h3>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u6b62\u307e\u3089\u306a\u304f\u306a\u308a\u3001<strong>\u540c\u3058\u51e6\u7406\u3092\u5ef6\u3005\u3068\u5b9f\u884c\u3057\u7d9a\u3051\u3066\u3057\u307e\u3046\u72b6\u614b\u3092\u300c\u7121\u9650\u30eb\u30fc\u30d7\u300d\u3068\u547c\u3073\u307e\u3059<\/strong>\u3002<\/p>\n<p>\u3082\u3057\u8a66\u3059\u5834\u5408\u306f\u3001<span style=\"color: #ff0000;\"><strong>\u4e8b\u524d\u306b\u5f37\u5236\u505c\u6b62\u306e\u65b9\u6cd5\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046<\/strong><\/span>\uff08\u901a\u5e38\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306a\u3089Ctrl + C\u3001\u5b66\u7fd2\u7528\u30a8\u30c7\u30a3\u30bf\u306a\u3089\u753b\u9762\u4e0a\u306e\u300c\u505c\u6b62\u30dc\u30bf\u30f3\u300d\u306a\u3069\u3067\u6b62\u3081\u3089\u308c\u307e\u3059\u3002<span style=\"color: #ff0000;\"><strong>\u6b62\u3081\u65b9\u304c\u308f\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u7121\u7406\u306b\u5b9f\u884c\u305b\u305a\u3001\u5148\u751f\u3084\u4fdd\u8b77\u8005\u306e\u65b9\u3068\u4e00\u7dd2\u306b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044<\/strong><\/span>\uff09\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001\u5909\u6570\u306e\u66f4\u65b0\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u5178\u578b\u7684\u306a\u30df\u30b9\u3067\u3059\u3002<\/p>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>n = 1\r\nwhile n &lt;= 9:\r\n    print(2 * n)<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u30eb\u30fc\u30d7\u306e\u4e2d\u3067n\u306e\u5024\u3092\u5897\u3084\u3059\u51e6\u7406\u304c\u5165\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081<strong>n\u306f\u305a\u3063\u30681\u306e\u307e\u307e\u3067\u3042\u308a\u3001n &lt;= 9\u3068\u3044\u3046\u6761\u4ef6\u304c\u6c38\u9060\u306b\u6210\u308a\u7acb\u3061\u7d9a\u3051\u3066\u3057\u307e\u3044\u307e\u3059<\/strong>\u3002\u300c2\u300d\u3092\u753b\u9762\u306b\u51fa\u529b\u3059\u308b\u547d\u4ee4\u81ea\u4f53\u306f\u3001n\u306e\u5024\u3092\u4f55\u3082\u5909\u5316\u3055\u305b\u306a\u3044\u304b\u3089\u3067\u3059\u3002<strong>\u30eb\u30fc\u30d7\u306e\u4e2d\u306bn = n + 1\u3092\u8ffd\u52a0<\/strong>\u3059\u308b\u3053\u3068\u3067\u3001\u521d\u3081\u30669\u56de\u3067\u5b89\u5168\u306b\u7d42\u4e86\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u66f4\u65b0\u306e\u8db3\u3057\u7b97\u30fb\u5f15\u304d\u7b97\u3092\u9593\u9055\u3048\u3066n = n &#8211; 1\u3068\u66f8\u3044\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u3082\u30011\u30010\u3001-1\u3001-2\u2026\u2026\u3068\u6570\u5b57\u304c\u6e1b\u308a\u7d9a\u3051\u308b\u305f\u3081\u3001\u3084\u306f\u308a9\u4ee5\u4e0b\u304b\u3089\u629c\u3051\u51fa\u305b\u306a\u304f\u306a\u3063\u3066\u7121\u9650\u30eb\u30fc\u30d7\u306b\u306a\u308a\u307e\u3059\u3002\u300c\u5024\u304c\u66f4\u65b0\u3055\u308c\u3066\u3044\u308b\u304b\u300d\u3060\u3051\u3067\u306a\u304f\u3001<span style=\"color: #ff0000;\"><strong>\u300c\u7d42\u4e86\u6761\u4ef6\u306b\u5411\u304b\u3063\u3066\u6b63\u3057\u304f\u5024\u304c\u5909\u5316\u3057\u3066\u3044\u308b\u304b\u300d<\/strong><\/span>\u3082\u5fc5\u305a\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>4. \u8868\u793a\u3068\u66f4\u65b0\u306e\u9806\u756a\u9593\u9055\u3044<\/h3>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>n = 1\r\nwhile n &lt;= 9:\r\n    n = n + 1\r\n    print(2 * n)<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u753b\u9762\u306b\u306f<strong>\u300c4\u30016\u30018\u2026\u202620\u300d\u3068\u51fa\u529b\u3055\u308c\u3001\u6700\u521d\u306e\u300c2\u00d71\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u305b\u3093<\/strong>\u3002<\/p>\n<p>\u6700\u521d\u306e\u5224\u5b9a\u3092\u901a\u904e\u3057\u305f\u6642\u70b9\u3067\u306fn\u306f1\u3067\u3059\u304c\u3001\u753b\u9762\u306b\u8868\u793a\u3059\u308b\u524d\u306bn = n + 1\u30672\u306b\u66f8\u304d\u63db\u3048\u3089\u308c\u3066\u3057\u307e\u3046\u305f\u3081\u3067\u3059\u3002\u3055\u3089\u306b\u6700\u5f8c\u306e9\u56de\u76ee\u3082\u3001n\u304c9\u306e\u72b6\u614b\u3067\u30eb\u30fc\u30d7\u306b\u5165\u3063\u305f\u3042\u3068\u300110\u306b\u5897\u3084\u3055\u308c\u3066\u304b\u3089\u8a08\u7b97\u3055\u308c\u308b\u305f\u3081\u300c20\u300d\u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>2\u00d71\u304b\u3089\u9806\u306b\u59cb\u3081\u305f\u3044\u5834\u5408\u306f\u3001<span style=\"color: #ff0000;\"><strong>print(2 * n)\u306e\u884c\u3092n = n + 1\u3088\u308a\u3082\u4e0a\u306b\u914d\u7f6e<\/strong><\/span>\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u547d\u4ee4\u3092\u4e26\u3079\u308b\u9806\u756a\u304c1\u884c\u5165\u308c\u66ff\u308f\u308b\u3060\u3051\u3067\u3082\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u7d50\u679c\u306f\u30ac\u30e9\u30ea\u3068\u5909\u308f\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>5. \u30a4\u30f3\u30c7\u30f3\u30c8\uff08\u5b57\u4e0b\u3052\uff09\u306e\u30ba\u30ec<\/h3>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>for n in range(1, 10):\r\n    result = 2 * n\r\nprint(result)<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u9014\u4e2d\u306e\u8a08\u7b97\u7d50\u679c\u306f\u4e00\u5207\u8868\u793a\u3055\u308c\u305a\u3001<strong>\u6700\u5f8c\u306b\u300c18\u300d\u3068\u3060\u30511\u56de\u8868\u793a\u3055\u308c\u307e\u3059<\/strong>\u3002<code>result = 2 * n<\/code>\u306e\u8a08\u7b97\u81ea\u4f53\u306f9\u56de\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u304c\u3001<em class=\"yellow-under\"><code>print(result)<\/code>\u306e\u5148\u982d\u306b\u7a7a\u767d\u304c\u306a\u304f\u3001for\u6587\u306e\u5916\u5074\u306b\u51fa\u3066\u3057\u307e\u3063\u3066\u3044\u308b<\/em>\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u7d50\u679c\u3001\u3059\u3079\u3066\u306e\u30eb\u30fc\u30d7\u304c\u7d42\u308f\u3063\u305f\u3042\u3068\u306b\u3001\u6700\u5f8c\u306b\u6b8b\u3063\u3066\u3044\u305f18\u3060\u3051\u304c\u51fa\u529b\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u8a08\u7b97\u3068\u8868\u793a\u3092\u30bb\u30c3\u30c8\u30679\u56de\u7e70\u308a\u8fd4\u3057\u305f\u3044\u5834\u5408\u306f\u3001<strong>print\u306e\u884c\u3082\u3057\u3063\u304b\u308a\u5b57\u4e0b\u3052\u3057\u3066\u30eb\u30fc\u30d7\u306e\u5185\u5074\u306b\u542b\u3081\u308b<\/strong>\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Python\u3067\u306f\u3001\u3053\u306e<span style=\"color: #ff0000;\"><strong>\u5b57\u4e0b\u3052\u306e\u6df1\u3055\u306b\u3088\u3063\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u7bc4\u56f2\u304c\u6c7a\u307e\u308a\u307e\u3059<\/strong><\/span>\u3002<\/p>\n<p>\u3082\u3057while\u6587\u306e\u66f4\u65b0\u51e6\u7406\uff08n = n + 1\uff09\u3092\u8aa4\u3063\u3066\u5916\u5074\u306b\u7f6e\u3044\u3066\u3057\u307e\u3046\u3068\u3001\u4e2d\u8eab\u304c\u66f4\u65b0\u3055\u308c\u306a\u3044\u307e\u307e\u7121\u9650\u30eb\u30fc\u30d7\u306b\u9665\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30ed\u30f3\u306e\u6b21\u306e\u884c\u3067<span style=\"color: #ff0000;\"><strong>\u5b57\u4e0b\u3052\u3092\u5fd8\u308c\u308b\u3068\u69cb\u6587\u30a8\u30e9\u30fc\u306b\u3082\u306a\u308b<\/strong><\/span>\u305f\u3081\u3001\u30a4\u30f3\u30c7\u30f3\u30c8\u306e\u30ba\u30ec\u306b\u306f\u5e38\u306b\u6c17\u3092\u914d\u308a\u307e\u3057\u3087\u3046\u3002<a href=\"https:\/\/docs.python.org\/ja\/3\/reference\/lexical_analysis.html#indentation\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Python\u516c\u5f0f\u306e\u30a4\u30f3\u30c7\u30f3\u30c8\u306e\u8aac\u660e<\/strong><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>\u60c5\u5831\u2160\u306e\u53cd\u5fa9\u51e6\u7406\u3068\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8aad\u307f\u53d6\u308a<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/08-insert-3.png\" alt=\"\" width=\"1672\" height=\"941\" class=\"aligncenter size-full wp-image-4728\" srcset=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/08-insert-3.png 1672w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/08-insert-3-300x169.png 300w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/08-insert-3-1024x576.png 1024w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/08-insert-3-768x432.png 768w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/08-insert-3-1536x864.png 1536w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/08-insert-3-390x219.png 390w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/08-insert-3-250x141.png 250w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/08-insert-3-175x98.png 175w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/08-insert-3-150x84.png 150w\" sizes=\"auto, (max-width: 1672px) 100vw, 1672px\" \/><\/p>\n<p>\u9ad8\u6821\u306e\u300c\u60c5\u5831\u2160\u300d\u3067\u6271\u308f\u308c\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u554f\u984c\u3067\u3082\u3001<strong>\u5909\u6570\u306e\u5909\u5316\u3084\u51e6\u7406\u306e\u9806\u5e8f\u30921\u884c\u305a\u3064\u4e01\u5be7\u306b\u8ffd\u3063\u3066\u3044\u304f\u529b<\/strong>\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\uff08\u6587\u90e8\u79d1\u5b66\u7701\u306e\u6559\u54e1\u7814\u4fee\u7528\u6559\u6750\u30fb\u7b2c3\u7ae0\u3067\u3082\u3001\u5236\u5fa1\u69cb\u9020\u3084\u30d5\u30ed\u30fc\u30c1\u30e3\u30fc\u30c8\u3001\u53cd\u5fa9\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8aad\u307f\u53d6\u308a\u304c\u89e3\u8aac\u3055\u308c\u3066\u3044\u307e\u3059\uff09\u3002<\/p>\n<p>\u30c6\u30b9\u30c8\u3084\u5171\u901a\u30c6\u30b9\u30c8\u306a\u3069\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u554f\u984c\u3092\u8aad\u307f\u89e3\u304f\u969b\u306f\u3001\u982d\u306e\u4e2d\u3060\u3051\u3067\u8003\u3048\u3088\u3046\u3068\u305b\u305a\u3001\u6b21\u306e\u3088\u3046\u306a\u624b\u9806\u3067\u4f59\u767d\u306b\u66f8\u304d\u51fa\u3057\u3066\u307f\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<ol>\n<li><strong>\u5909\u6570\u306e\u521d\u671f\u5024<\/strong>\u3092\u30e1\u30e2\u3059\u308b\u3002<\/li>\n<li>\u305d\u306e\u5024\u3067\u3001<strong>\u7e70\u308a\u8fd4\u3057\u306e\u6761\u4ef6\u304c\u300c\u771f\u300d\u306b\u306a\u308b\u304b<\/strong>\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3002<\/li>\n<li>\u771f\u306a\u3089\u3001\u30eb\u30fc\u30d7\u5185\u306e\u547d\u4ee4\u3092\u4e0a\u304b\u3089\u9806\u306b\u5b9f\u884c\u3057\u3001<strong>\u5909\u6570\u306e\u5909\u5316\u3084\u51fa\u529b<\/strong>\u3092\u30e1\u30e2\u3059\u308b\u3002<\/li>\n<li><strong>\u66f4\u65b0\u3055\u308c\u305f\u65b0\u3057\u3044\u5024<\/strong>\u3092\u4f7f\u3063\u3066\u3001\u518d\u3073\u6761\u4ef6\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3002<\/li>\n<li>\u6761\u4ef6\u304c\u300c\u507d\u300d\u306b\u306a\u308a\u3001<strong>\u30eb\u30fc\u30d7\u3092\u629c\u3051\u308b\u77ac\u9593\u307e\u3067\u4e01\u5be7\u306b\u8a18\u9332<\/strong>\u3059\u308b\u3002<\/li>\n<\/ol>\n<p>\u5148\u307b\u3069\u306ewhile\u6587\u306e\u8ffd\u8de1\u8868\u3067\u3082\u78ba\u8a8d\u3057\u305f\u3088\u3046\u306b\u3001<em class=\"yellow-under\">\u300c\u6761\u4ef6\u3092\u30c1\u30a7\u30c3\u30af\u3057\u305f\u56de\u6570\u300d\u3068\u300c\u30eb\u30fc\u30d7\u306e\u4e2d\u8eab\u3092\u5b9f\u884c\u3057\u305f\u56de\u6570\u300d\u306b\u306f\u30ba\u30ec\u304c\u751f\u3058\u307e\u3059<\/em>\u3002\u3053\u306e\u5dee\u3092\u610f\u8b58\u3057\u306a\u304c\u3089\u66f8\u304d\u51fa\u3059\u7fd2\u6163\u3092\u3064\u3051\u308b\u3060\u3051\u3067\u3001\u6700\u5f8c\u306e1\u56de\u5206\u306e\u51e6\u7406\u3092\u898b\u843d\u3068\u3059\u3088\u3046\u306a\u30b1\u30a2\u30ec\u30b9\u30df\u30b9\u3092\u5927\u5e45\u306b\u6e1b\u3089\u305b\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u8a66\u9a13\u554f\u984c\u306b\u3088\u3063\u3066\u306f\u72ec\u81ea\u306e\u64ec\u4f3c\u8a00\u8a9e\u3084\u65e5\u672c\u8a9e\u306e\u7b87\u6761\u66f8\u304d\u3067\u30eb\u30fc\u30eb\u304c\u66f8\u304b\u308c\u3066\u3044\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<em class=\"yellow-under\">\u300c\u7d42\u4e86\u306e\u6570\u5024\u3092\u542b\u3080\u306e\u304b\u542b\u307e\u306a\u3044\u306e\u304b\u300d\u300c\u5909\u6570\u306e\u66f4\u65b0\u306f\u3069\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u884c\u308f\u308c\u308b\u306e\u304b\u300d<\/em>\u306a\u3069\u3001\u554f\u984c\u6587\u306e\u5b9a\u7fa9\u3092\u3057\u3063\u304b\u308a\u3068\u78ba\u8a8d\u3057\u3066\u304b\u3089\u8aad\u307f\u89e3\u304f\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u6761\u4ef6\u306e\u5224\u5b9a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u57fa\u790e\u304b\u3089\u898b\u76f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001<a href=\"https:\/\/techchance.jp\/blog\/2026\/10\/03\/vending-machine-conditional-branching-for-kids\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>\u81ea\u52d5\u8ca9\u58f2\u6a5f\u3067\u5b66\u3076\u300c\u6761\u4ef6\u5206\u5c90\u300d\u306e\u8a18\u4e8b<\/strong><\/a>\u3082\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u6761\u4ef6\u5206\u5c90\u306f\u300c\u3069\u306e\u51e6\u7406\u3092\u9078\u3076\u304b\u300d\u3092\u6c7a\u3081\u3001\u4eca\u56de\u306ewhile\u6587\u306f\u300c\u6b21\u306e\u51e6\u7406\u3078\u9032\u3080\u304b\u3069\u3046\u304b\u300d\u3092\u5224\u5b9a\u3057\u307e\u3059<\/strong>\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u7406\u89e3\u3092\u78ba\u304b\u3081\u308b\u7df4\u7fd2\u554f\u984c<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/09-insert-3.png\" alt=\"\" width=\"1672\" height=\"941\" class=\"aligncenter size-full wp-image-4729\" srcset=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/09-insert-3.png 1672w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/09-insert-3-300x169.png 300w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/09-insert-3-1024x576.png 1024w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/09-insert-3-768x432.png 768w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/09-insert-3-1536x864.png 1536w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/09-insert-3-390x219.png 390w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/09-insert-3-250x141.png 250w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/09-insert-3-175x98.png 175w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/09-insert-3-150x84.png 150w\" sizes=\"auto, (max-width: 1672px) 100vw, 1672px\" \/><\/p>\n<p>\u3053\u3053\u307e\u3067\u306e\u5185\u5bb9\u3092\u3082\u3068\u306b\u30014\u3064\u306e\u7df4\u7fd2\u554f\u984c\u306b\u6311\u6226\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3059\u3050\u306b\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001<strong>\u307e\u305a\u306f\u982d\u306e\u4e2d\u3067\u7b54\u3048\u3092\u4e88\u60f3\u3057\u3066\u304b\u3089\u5b9f\u884c\u7d50\u679c\u3068\u7b54\u3048\u5408\u308f\u305b<\/strong>\u3092\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u3082\u3057\u9593\u9055\u3048\u305f\u5834\u5408\u306f\u3001\u300c\u4f55\u56de\u76ee\u306e\u51e6\u7406\u3067\u4e88\u60f3\u3068\u30ba\u30ec\u3066\u3057\u307e\u3063\u305f\u306e\u304b\u300d\u3092\u78ba\u304b\u3081\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u554f\u984c1\uff1a3\u306e\u6bb5\u3078\u306e\u5909\u66f4<\/h3>\n<p>for\u6587\u3092\u4f7f\u3063\u3066\u4f5c\u3063\u305f2\u306e\u6bb5\u306e\u30b3\u30fc\u30c9\u3092\u6539\u9020\u3057\u30013\u00d71\u304b\u30893\u00d79\u307e\u3067\u3092\u8868\u793a\u3059\u308b\u300c3\u306e\u6bb5\u300d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308a\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u30b3\u30fc\u30c9\u306e\u3069\u306e\u90e8\u5206\u3092\u4fee\u6b63\u3059\u308c\u3070\u3088\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u7b54\u3048\uff1a <strong>\u8a08\u7b97\u5f0f\u306e\u300c2\u300d\u3092\u300c3\u300d\u306b\u5909\u66f4\u3057\u307e\u3059<\/strong>\u3002<\/p>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>for n in range(1, 10):\r\n    print(3 * n)<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u300c3\u30016\u30019\u300112\u300115\u300118\u300121\u300124\u300127\u300d\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u304b\u3051\u308b\u6570\u304c1\u301c9\u3067\u3042\u308b\u3053\u3068\u306b\u306f\u5909\u308f\u308a\u304c\u306a\u3044\u305f\u3081\u3001<strong>range(1, 10)\u306e\u90e8\u5206\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093<\/strong>\u3002<\/p>\n<p>Scratch\u3067\u4f5c\u308b\u5834\u5408\u3082\u3001\u639b\u3051\u7b97\u30d6\u30ed\u30c3\u30af\u306e\u300c2\u300d\u3092\u300c3\u300d\u306b\u5909\u3048\u308b\u3060\u3051\u3067\u540c\u69d8\u306b3\u306e\u6bb5\u304c\u5b8c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u554f\u984c2\uff1a\u6307\u5b9a\u3057\u305f\u56de\u6570\u3060\u3051\u6587\u5b57\u3092\u8868\u793a\u3059\u308b<\/h3>\n<p>\u300c\u3053\u3093\u306b\u3061\u306f\u300d\u3068\u3044\u3046\u6328\u62f6\u3092\u753b\u9762\u306b5\u56de\u7d9a\u3051\u3066\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3001for\u6587\u3068range\u3092\u4f7f\u3063\u3066\u66f8\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u7b54\u3048\uff1a \u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>for count in range(5):\r\n    print(\"\u3053\u3093\u306b\u3061\u306f\")<\/code><\/pre>\n<\/div>\n<\/div>\n<p>count\u306f\u30eb\u30fc\u30d7\u306e\u56de\u6570\u3092\u6570\u3048\u308b\u305f\u3081\u306e\u5909\u6570\u3067\u3059\u3002<strong>range(5)\u3068\u66f8\u304f\u3068\u300c0\u30011\u30012\u30013\u30014\u300d\u306e\u8a085\u500b\u306e\u6570\u5024\u304c\u9806\u756a\u306b\u53d6\u308a\u51fa\u3055\u308c\u308b<\/strong>\u305f\u3081\u3001\u4e2d\u306e\u51e6\u7406\u304c\u3061\u3087\u3046\u30695\u56de\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3001\u53d6\u308a\u51fa\u3057\u305f\u6570\u5024\u3092\u8a08\u7b97\u306b\u4f7f\u308f\u305a\u3001\u5358\u306b\u300c\u6c7a\u307e\u3063\u305f\u56de\u6570\u3060\u3051\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u76ee\u7684\u3067\u3082for\u6587\u306f\u3088\u304f\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u554f\u984c3\uff1a\u7d42\u4e86\u6761\u4ef6\u3068\u5b9f\u884c\u56de\u6570\u306e\u4e88\u60f3<\/h3>\n<p>\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u3001\u753b\u9762\u306b\u306f\u4f55\u884c\u306e\u6587\u5b57\u304c\u8868\u793a\u3055\u308c\u3001\u6700\u5f8c\u306b\u8868\u793a\u3055\u308c\u308b\u6570\u5024\u306f\u3044\u304f\u3064\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>n = 1\r\nwhile n &lt; 5:\r\n    print(2 * n)\r\n    n = n + 1<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u7b54\u3048\uff1a <strong>4\u884c\u8868\u793a\u3055\u308c\u3001\u6700\u5f8c\u306b\u8868\u793a\u3055\u308c\u308b\u6570\u5024\u306f\u300c8\u300d\u3067\u3059<\/strong>\u3002<\/p>\n<p>\u6761\u4ef6\u304cn &lt; 5\uff085\u672a\u6e80\uff09\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u308b\u306e\u306fn\u304c1\u30012\u30013\u30014\u306e\u3068\u304d\u3060\u3051\u3067\u3059\u3002\u753b\u9762\u306b\u306f\u300c2\u30014\u30016\u30018\u300d\u304c\u9806\u756a\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u3042\u3068<strong>n\u304c5\u306b\u5897\u3048\u305f\u6bb5\u968e\u3067\u6761\u4ef6\u304c\u300c\u507d\u300d\u3068\u306a\u308a<\/strong>\u3001\u8868\u793a\u51e6\u7406\u306f\u884c\u308f\u308c\u305a\u306b\u30eb\u30fc\u30d7\u304c\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u554f\u984c4\uff1a\u958b\u59cb\u5024\u3068\u5897\u3048\u65b9\u306b\u3088\u308b\u5909\u5316\u306e\u4e88\u60f3<\/h3>\n<p>\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u3001\u753b\u9762\u306b\u306f\u3069\u3093\u306a\u6570\u5024\u304c\u8868\u793a\u3055\u308c\u3001\u3059\u3079\u3066\u306e\u51e6\u7406\u304c\u7d42\u308f\u3063\u305f\u3042\u3068\u306en\u306e\u5024\u306f\u3044\u304f\u3064\u306b\u306a\u3063\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>n = 3\r\nwhile n &lt;= 9:\r\n    print(n)\r\n    n = n + 2<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u7b54\u3048\uff1a \u753b\u9762\u306b\u306f<strong>\u300c3\u30015\u30017\u30019\u300d\u306e4\u3064\u304c\u8868\u793a\u3055\u308c\u3001\u7d42\u4e86\u6642\u306en\u306e\u5024\u306f\u300c11\u300d<\/strong>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u521d\u671f\u5024\u304c3\u3067\u30011\u56de\u3054\u3068\u306b2\u305a\u3064\u5897\u3048\u3066\u3044\u304f\u305f\u3081\u3001\u5947\u6570\u3060\u3051\u304c\u9806\u756a\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u753b\u9762\u306b\u300c9\u300d\u3068\u8868\u793a\u3055\u308c\u305f\u3042\u3068\u3001<strong>n = n + 2\u306b\u3088\u3063\u3066n\u306f11\u306b\u306a\u308a\u307e\u3059<\/strong>\u3002\u305d\u3057\u3066\u6b21\u306e\u6761\u4ef6\u30c1\u30a7\u30c3\u30af\u3067\u300c11\u306f9\u4ee5\u4e0b\u3067\u306f\u306a\u3044\u300d\u3068\u5224\u5b9a\u3055\u308c\u3066\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u5909\u6570\u304c1\u305a\u3064\u5897\u3048\u308b\u3068\u306f\u9650\u3089\u306a\u3044\u5834\u5408\u3067\u3082\u3001\u8ffd\u8de1\u8868\u3092\u66f8\u304d\u51fa\u3059\u3053\u3068\u3067\u6b63\u78ba\u306b\u52d5\u304d\u3092\u4e88\u6e2c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u4e8c\u91cd\u30eb\u30fc\u30d7\u306b\u3088\u308b\u4e5d\u4e5d\u8868\u306e\u4f5c\u6210<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/10-insert-3.png\" alt=\"\" width=\"1672\" height=\"941\" class=\"aligncenter size-full wp-image-4730\" srcset=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/10-insert-3.png 1672w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/10-insert-3-300x169.png 300w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/10-insert-3-1024x576.png 1024w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/10-insert-3-768x432.png 768w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/10-insert-3-1536x864.png 1536w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/10-insert-3-390x219.png 390w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/10-insert-3-250x141.png 250w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/10-insert-3-175x98.png 175w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/10-insert-3-150x84.png 150w\" sizes=\"auto, (max-width: 1672px) 100vw, 1672px\" \/><\/p>\n<p>1\u3064\u306e\u6bb5\u306e\u4ed5\u7d44\u307f\u304c\u7406\u89e3\u3067\u304d\u305f\u3089\u3001\u6700\u5f8c\u306b\u5fdc\u7528\u3068\u3057\u3066\u300c1\u306e\u6bb5\u304b\u30899\u306e\u6bb5\u307e\u3067\u300d\u3092\u3059\u3079\u3066\u4e00\u6c17\u306b\u8868\u793a\u3059\u308b\u4e5d\u4e5d\u8868\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<strong>\u7e70\u308a\u8fd4\u3057\u306e\u51e6\u7406\u306e\u4e2d\u306b\u3001\u3055\u3089\u306b\u5225\u306e\u7e70\u308a\u8fd4\u3057\u3092\u5165\u308c\u308b\u69cb\u9020\u3092\u300c\u4e8c\u91cd\u30eb\u30fc\u30d7\uff08\u30cd\u30b9\u30c8\uff09\u300d\u3068\u547c\u3073\u307e\u3059<\/strong>\u3002<\/p>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>for dan in range(1, 10):\r\n    for n in range(1, 10):\r\n        print(dan * n, end=\" \")\r\n    print()<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u3053\u3053\u3067\u306f\u3001<strong>\u6bb5\u306e\u6570\u5024\u3092\u8868\u3059dan\u3068\u3001\u5404\u6bb5\u3067\u304b\u3051\u308b\u6570\u5024\u3092\u8868\u3059n\u3068\u3044\u30462\u3064\u306e\u5909\u6570<\/strong>\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002\u5916\u5074\u306e\u30eb\u30fc\u30d7\u3067dan\u304c1\u306b\u30bb\u30c3\u30c8\u3055\u308c\u308b\u3068\u3001\u5185\u5074\u306e\u30eb\u30fc\u30d7\u304c\u52d5\u304d\u51fa\u3057\u3001n\u30921\u304b\u30899\u307e\u3067\u5909\u5316\u3055\u305b\u306a\u304c\u3089\u300c1\u306e\u6bb5\u300d\u306e\u8a08\u7b97\u3068\u8868\u793a\u3092\u4e00\u6c17\u306b\u7d42\u308f\u3089\u305b\u307e\u3059\u3002\u5185\u5074\u306e\u51e6\u7406\u304c\u3059\u3079\u3066\u7d42\u308f\u308b\u3068\u3001\u5916\u5074\u306e\u30eb\u30fc\u30d7\u304c\u6b21\u306e\u6570\u5024\u3092\u53d6\u308a\u51fa\u3057\u3001\u4eca\u5ea6\u306fdan\u304c2\u306b\u306a\u3063\u3066\u300c2\u306e\u6bb5\u300d\u304c\u59cb\u307e\u308a\u307e\u3059\u3002<\/p>\n<p>print()\u306e\u4e2d\u306b\u3042\u308bend=&#8221; &#8220;\u306f\u3001\u300c<strong>\u6570\u5024\u3092\u8868\u793a\u3057\u305f\u3042\u3068\u306b\u6539\u884c\u305b\u305a\u3001\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3092\u7a7a\u3051\u3066\u53f3\u306b\u4e26\u3079\u308b<\/strong>\u300d\u3068\u3044\u3046\u7279\u5225\u306a\u6307\u5b9a\u3067\u3059\u3002\u305d\u3057\u3066\u3001\u5185\u5074\u306e\u30eb\u30fc\u30d7\u3092\u629c\u3051\u305f\u76f4\u5f8c\u306b\u3042\u308b<strong>print()\u306b\u3088\u3063\u3066\u6bb5\u3054\u3068\u306b\u6539\u884c\u3092\u5165\u308c\u308b<\/strong>\u3053\u3068\u3067\u3001\u7dba\u9e97\u306a\u8868\u306e\u5f62\u306b\u6574\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u7f8e\u3057\u3044\u4e5d\u4e5d\u8868\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-text\" data-lang=\"Text\"><code>1 2 3 4 5 6 7 8 9 \r\n2 4 6 8 10 12 14 16 18 \r\n3 6 9 12 15 18 21 24 27 \r\n4 8 12 16 20 24 28 32 36 \r\n5 10 15 20 25 30 35 40 45 \r\n6 12 18 24 30 36 42 48 54 \r\n7 14 21 28 35 42 49 56 63 \r\n8 16 24 32 40 48 56 64 72 \r\n9 18 27 36 45 54 63 72 81 <\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u5916\u5074\u306e\u30eb\u30fc\u30d7\u304c9\u56de\u56de\u308a\u3001\u305d\u306e1\u56de\u3054\u3068\u306b\u5185\u5074\u306e\u30eb\u30fc\u30d7\u304c9\u56de\u56de\u308b\u305f\u3081\u3001<strong>\u639b\u3051\u7b97\u304c\u884c\u308f\u308c\u305f\u56de\u6570\u306f\u5168\u90e8\u3067\u300c9\u00d79\uff1d81\u56de\u300d<\/strong>\u306b\u306a\u308a\u307e\u3059\u30022\u306e\u6bb5\u306b\u9032\u3093\u3060\u3068\u304d\u3001<em class=\"yellow-under\">\u5185\u5074\u306en\u304c\u518d\u30731\u304b\u3089\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u3066\u30b9\u30bf\u30fc\u30c8\u3059\u308b<\/em>\u70b9\u306b\u3082\u6ce8\u76ee\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6700\u521d\u306f\u96e3\u3057\u304f\u611f\u3058\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u307e\u305a\u306f<span style=\"color: #ff0000;\"><strong>\u300c\u4f55\u3092\u7e70\u308a\u8fd4\u3057\u3001\u3069\u306e\u5024\u304c\u5909\u308f\u308a\u3001\u3069\u3053\u3067\u7d42\u308f\u308b\u306e\u304b\u300d<\/strong><\/span>\u3092\u57fa\u672c\u306e1\u3064\u306e\u30eb\u30fc\u30d7\u3067\u8a00\u8449\u306b\u3057\u3066\u8aac\u660e\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3053\u3068\u304c\u4f55\u3088\u308a\u5927\u5207\u3067\u3059\u3002<\/p>\n<p>\u305d\u308c\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3089\u3001<strong>\u521d\u671f\u5024\u3084\u6761\u4ef6\u5f0f\u3092\u5c11\u3057\u3060\u3051\u66f8\u304d\u63db\u3048\u3066\u300c\u3069\u3046\u52d5\u304f\u304b\u300d\u3092\u4e88\u60f3<\/strong>\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4e88\u60f3\u3068\u5b9f\u884c\u7d50\u679c\u3092\u7167\u3089\u3057\u5408\u308f\u305b\u308b\u7d4c\u9a13\u3092\u7a4d\u307f\u91cd\u306d\u3066\u3044\u304f\u3053\u3068\u3067\u3001\u3069\u3093\u306a\u306b\u8907\u96d1\u3067\u9577\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3082\u3001\u81ea\u4fe1\u3092\u6301\u3063\u3066\u8aad\u307f\u89e3\u3051\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30c6\u30c3\u30af\u30c1\u30e3\u30f3\u30b9\u3067\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u4f53\u9a13<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/11-insert-1.png\" alt=\"\" width=\"1672\" height=\"941\" class=\"aligncenter size-full wp-image-4731\" srcset=\"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/11-insert-1.png 1672w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/11-insert-1-300x169.png 300w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/11-insert-1-1024x576.png 1024w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/11-insert-1-768x432.png 768w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/11-insert-1-1536x864.png 1536w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/11-insert-1-390x219.png 390w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/11-insert-1-250x141.png 250w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/11-insert-1-175x98.png 175w, https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/11-insert-1-150x84.png 150w\" sizes=\"auto, (max-width: 1672px) 100vw, 1672px\" \/><\/p>\n<p>\u4e5d\u4e5d\u306e\u8a08\u7b97\u3092\u901a\u3057\u3066\u5b66\u3093\u3060\u300c\u7e70\u308a\u8fd4\u3057\u300d\u306e\u4ed5\u7d44\u307f\u306f\u3001\u30b2\u30fc\u30e0\u306e\u4e2d\u3067\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u3092\u6ed1\u3089\u304b\u306b\u6b69\u304b\u305b\u305f\u308a\u3001\u6575\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u3092\u6b21\u3005\u3068\u51fa\u73fe\u3055\u305b\u305f\u308a\u3059\u308b\u51e6\u7406\u306b\u3082\u305d\u306e\u307e\u307e\u5fdc\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u300c\u57fa\u790e\u304c\u308f\u304b\u3063\u305f\u304b\u3089\u3001\u6b21\u306f\u5b9f\u969b\u306b\u52d5\u304f\u672c\u683c\u7684\u306a\u30b2\u30fc\u30e0\u3092\u4f5c\u3063\u3066\u307f\u305f\u3044\uff01\u300d\u3068\u601d\u3063\u305f\u3089\u3001\u305c\u3072\u5c02\u9580\u306e\u6559\u5ba4\u3067\u672c\u683c\u7684\u306a\u4f5c\u54c1\u3065\u304f\u308a\u306b\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u3066\u307f\u307e\u305b\u3093\u304b\uff1f<\/p>\n<p><strong>\u5c0f\u5b66\u751f\u30fb\u4e2d\u5b66\u751f\u30fb\u9ad8\u6821\u751f\u5411\u3051\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u6559\u5ba4\u300c\u30c6\u30c3\u30af\u30c1\u30e3\u30f3\u30b9\u300d<\/strong>\u3067\u306f\u3001<strong>Scratch\u3084\u30de\u30a4\u30f3\u30af\u30e9\u30d5\u30c8\u3092\u4f7f\u3063\u305f\u5165\u9580\u30b3\u30fc\u30b9\u304b\u3089\u3001\u672c\u683c\u7684\u306a\u30c6\u30ad\u30b9\u30c8\u8a00\u8a9e\u3092\u5b66\u3076\u30b3\u30fc\u30b9\u307e\u3067<\/strong>\u3001\u304a\u5b50\u3055\u3093\u306e\u8208\u5473\u3084\u7406\u89e3\u5ea6\u306b\u5fdc\u3058\u305f\u591a\u5f69\u306a\u5b66\u7fd2\u74b0\u5883\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Scratch\u30b3\u30fc\u30b9\u3067\u306f\u3001\u30ab\u30e9\u30d5\u30eb\u306a\u30d6\u30ed\u30c3\u30af\u3092\u76f4\u611f\u7684\u306b\u7d44\u307f\u5408\u308f\u305b\u306a\u304c\u3089\u3001\u30b2\u30fc\u30e0\u4f5c\u308a\u3092\u901a\u3058\u3066\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u571f\u53f0\u3068\u306a\u308b\u8ad6\u7406\u7684\u601d\u8003\u529b\u3092\u7121\u7406\u306a\u304f\u80b2\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f<strong>\u7121\u6599\u4f53\u9a13\u6388\u696d\u3067\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u697d\u3057\u3055\u3084\u6559\u5ba4\u306e\u96f0\u56f2\u6c17\u3092\u6c17\u8efd\u306b\u4f53\u611f<\/strong>\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"btn-wrap align spe2 \"><a href=\"https:\/\/techchance.jp\/trial\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30c6\u30c3\u30af\u30c1\u30e3\u30f3\u30b9\u306e\u7121\u6599\u4f53\u9a13\u306b\u53c2\u52a0\u3057\u3066\u307f\u308b<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u304a\u3051\u308b\u300c\u7e70\u308a\u8fd4\u3057\u300d\u3068\u306f\u3001\u540c\u3058\u51e6\u7406\u3092\u4f55\u5ea6\u3082\u81ea\u52d5\u3067\u5b9f\u884c\u3059\u308b\u4ed5\u7d44\u307f\u306e\u3053\u3068\u3067\u3059\u3002\u4f8b\u3048\u3070\u4e5d\u4e5d\u306e\u300c2\u306e\u6bb5\u300d\u306a\u3089\u3001\u300c2\u306b\u304b\u3051\u308b\u6570\u3092\u8a08\u7b97\u3057\u3066\u3001\u7b54\u3048\u3092\u8868\u793a\u3059\u308b\u300d\u3068\u3044\u3046\u4e00\u9023\u306e\u51e6\u7406\u3092 &#8230; <\/p>\n","protected":false},"author":6,"featured_media":4720,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[63],"tags":[],"class_list":["post-4718","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-63"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u7e70\u308a\u8fd4\u3057\u3092\u4e5d\u4e5d\u306e2\u306e\u6bb5\u3067\u89e3\u8aac\u3002Scratch\u3068Python\u306efor\u6587\u30fbwhile\u6587\u3092\u4f7f\u3044\u3001\u5909\u6570\u306e\u66f4\u65b0\u3001range\u306e\u7d42\u7aef\u3001\u7d42\u4e86\u6761\u4ef6\u3001\u7121\u9650\u30eb\u30fc\u30d7\u306e\u539f\u56e0\u3092\u78ba\u304b\u3081\u307e\u3059\u3002\u51e6\u7406\u3092\u8ffd\u3046\u8868\u3001\u7df4\u7fd2\u554f\u984c\u3001\u4e8c\u91cd\u30eb\u30fc\u30d7\u306e\u4f8b\u3082\u63b2\u8f09\u3002\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"kunisada\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\n\t\t<!-- Google tag (gtag.js) -->\n<script async src=\"https:\/\/www.googletagmanager.com\/gtag\/js?id=G-02B0RZMSKM\"><\/script>\n<script>\n  window.dataLayer = window.dataLayer || [];\n  function gtag(){dataLayer.push(arguments);}\n  gtag('js', new Date());\n\n  gtag('config', 'G-02B0RZMSKM');\n<\/script>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/2026\\\/10\\\/20\\\/programming-loops-for-while\\\/#article\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\\u306e\\u300c\\u7e70\\u308a\\u8fd4\\u3057\\u300d\\u3068\\u306f\\uff1f\\u4e5d\\u4e5d\\u3067\\u5b66\\u3076for\\u6587\\u30fbwhile\\u6587\\u306e\\u9055\\u3044\",\"headline\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\\u306e\\u300c\\u7e70\\u308a\\u8fd4\\u3057\\u300d\\u3068\\u306f\\uff1f\\u4e5d\\u4e5d\\u3067\\u5b66\\u3076for\\u6587\\u30fbwhile\\u6587\\u306e\\u9055\\u3044\",\"author\":{\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/author\\\/kunisada\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/00-main-4.png\",\"width\":1672,\"height\":941,\"caption\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\\u306e\\u300c\\u7e70\\u308a\\u8fd4\\u3057\\u300d\\u3068\\u306f\\uff1f\\u4e5d\\u4e5d\\u3067\\u5b66\\u3076for\\u6587\\u30fbwhile\\u6587\\u306e\\u9055\\u3044\"},\"datePublished\":\"2026-10-20T19:51:40+09:00\",\"dateModified\":\"2026-10-20T19:51:40+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/2026\\\/10\\\/20\\\/programming-loops-for-while\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/2026\\\/10\\\/20\\\/programming-loops-for-while\\\/#webpage\"},\"articleSection\":\"\\u60c5\\u5831\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/2026\\\/10\\\/20\\\/programming-loops-for-while\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/category\\\/%e6%83%85%e5%a0%b1\\\/#listItem\",\"name\":\"\\u60c5\\u5831\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/category\\\/%e6%83%85%e5%a0%b1\\\/#listItem\",\"position\":2,\"name\":\"\\u60c5\\u5831\",\"item\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/category\\\/%e6%83%85%e5%a0%b1\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/2026\\\/10\\\/20\\\/programming-loops-for-while\\\/#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\\u306e\\u300c\\u7e70\\u308a\\u8fd4\\u3057\\u300d\\u3068\\u306f\\uff1f\\u4e5d\\u4e5d\\u3067\\u5b66\\u3076for\\u6587\\u30fbwhile\\u6587\\u306e\\u9055\\u3044\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/2026\\\/10\\\/20\\\/programming-loops-for-while\\\/#listItem\",\"position\":3,\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\\u306e\\u300c\\u7e70\\u308a\\u8fd4\\u3057\\u300d\\u3068\\u306f\\uff1f\\u4e5d\\u4e5d\\u3067\\u5b66\\u3076for\\u6587\\u30fbwhile\\u6587\\u306e\\u9055\\u3044\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/category\\\/%e6%83%85%e5%a0%b1\\\/#listItem\",\"name\":\"\\u60c5\\u5831\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/#organization\",\"name\":\"TechChance! \\u516c\\u5f0f\\u30d6\\u30ed\\u30b0\",\"description\":\"\\u5c0f\\u4e2d\\u9ad8\\u751f\\u5411\\u3051\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\\u30b9\\u30af\\u30fc\\u30ebTechChance!\",\"url\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/\\u57fa\\u672c\\u30ed\\u30b3\\u3099\\u767d\\u30d5\\u30c1.png\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/2026\\\/10\\\/20\\\/programming-loops-for-while\\\/#organizationLogo\",\"width\":1040,\"height\":390},\"image\":{\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/2026\\\/10\\\/20\\\/programming-loops-for-while\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/author\\\/kunisada\\\/#author\",\"url\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/author\\\/kunisada\\\/\",\"name\":\"kunisada\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/2026\\\/10\\\/20\\\/programming-loops-for-while\\\/#authorImage\",\"url\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/kunisada-150x150.jpg\",\"width\":96,\"height\":96,\"caption\":\"kunisada\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/2026\\\/10\\\/20\\\/programming-loops-for-while\\\/#webpage\",\"url\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/2026\\\/10\\\/20\\\/programming-loops-for-while\\\/\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\\u306e\\u300c\\u7e70\\u308a\\u8fd4\\u3057\\u300d\\u3068\\u306f\\uff1f\\u4e5d\\u4e5d\\u3067\\u5b66\\u3076for\\u6587\\u30fbwhile\\u6587\\u306e\\u9055\\u3044\",\"description\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\\u306e\\u7e70\\u308a\\u8fd4\\u3057\\u3092\\u4e5d\\u4e5d\\u306e2\\u306e\\u6bb5\\u3067\\u89e3\\u8aac\\u3002Scratch\\u3068Python\\u306efor\\u6587\\u30fbwhile\\u6587\\u3092\\u4f7f\\u3044\\u3001\\u5909\\u6570\\u306e\\u66f4\\u65b0\\u3001range\\u306e\\u7d42\\u7aef\\u3001\\u7d42\\u4e86\\u6761\\u4ef6\\u3001\\u7121\\u9650\\u30eb\\u30fc\\u30d7\\u306e\\u539f\\u56e0\\u3092\\u78ba\\u304b\\u3081\\u307e\\u3059\\u3002\\u51e6\\u7406\\u3092\\u8ffd\\u3046\\u8868\\u3001\\u7df4\\u7fd2\\u554f\\u984c\\u3001\\u4e8c\\u91cd\\u30eb\\u30fc\\u30d7\\u306e\\u4f8b\\u3082\\u63b2\\u8f09\\u3002\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/2026\\\/10\\\/20\\\/programming-loops-for-while\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/author\\\/kunisada\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/author\\\/kunisada\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/00-main-4.png\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/2026\\\/10\\\/20\\\/programming-loops-for-while\\\/#mainImage\",\"width\":1672,\"height\":941,\"caption\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\\u306e\\u300c\\u7e70\\u308a\\u8fd4\\u3057\\u300d\\u3068\\u306f\\uff1f\\u4e5d\\u4e5d\\u3067\\u5b66\\u3076for\\u6587\\u30fbwhile\\u6587\\u306e\\u9055\\u3044\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/2026\\\/10\\\/20\\\/programming-loops-for-while\\\/#mainImage\"},\"datePublished\":\"2026-10-20T19:51:40+09:00\",\"dateModified\":\"2026-10-20T19:51:40+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/\",\"name\":\"TechChance! \\u516c\\u5f0f\\u30d6\\u30ed\\u30b0\",\"description\":\"\\u5c0f\\u4e2d\\u9ad8\\u751f\\u5411\\u3051\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\\u30b9\\u30af\\u30fc\\u30ebTechChance!\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/techchance.jp\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u300c\u7e70\u308a\u8fd4\u3057\u300d\u3068\u306f\uff1f\u4e5d\u4e5d\u3067\u5b66\u3076for\u6587\u30fbwhile\u6587\u306e\u9055\u3044","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u7e70\u308a\u8fd4\u3057\u3092\u4e5d\u4e5d\u306e2\u306e\u6bb5\u3067\u89e3\u8aac\u3002Scratch\u3068Python\u306efor\u6587\u30fbwhile\u6587\u3092\u4f7f\u3044\u3001\u5909\u6570\u306e\u66f4\u65b0\u3001range\u306e\u7d42\u7aef\u3001\u7d42\u4e86\u6761\u4ef6\u3001\u7121\u9650\u30eb\u30fc\u30d7\u306e\u539f\u56e0\u3092\u78ba\u304b\u3081\u307e\u3059\u3002\u51e6\u7406\u3092\u8ffd\u3046\u8868\u3001\u7df4\u7fd2\u554f\u984c\u3001\u4e8c\u91cd\u30eb\u30fc\u30d7\u306e\u4f8b\u3082\u63b2\u8f09\u3002","canonical_url":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"miscellaneous":"&lt;!-- Google tag (gtag.js) --&gt;\n&lt;script async src=\"https:\/\/www.googletagmanager.com\/gtag\/js?id=G-02B0RZMSKM\"&gt;&lt;\/script&gt;\n&lt;script&gt;\n  window.dataLayer = window.dataLayer || [];\n  function gtag(){dataLayer.push(arguments);}\n  gtag('js', new Date());\n\n  gtag('config', 'G-02B0RZMSKM');\n&lt;\/script&gt;"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/#article","name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u300c\u7e70\u308a\u8fd4\u3057\u300d\u3068\u306f\uff1f\u4e5d\u4e5d\u3067\u5b66\u3076for\u6587\u30fbwhile\u6587\u306e\u9055\u3044","headline":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u300c\u7e70\u308a\u8fd4\u3057\u300d\u3068\u306f\uff1f\u4e5d\u4e5d\u3067\u5b66\u3076for\u6587\u30fbwhile\u6587\u306e\u9055\u3044","author":{"@id":"https:\/\/techchance.jp\/blog\/author\/kunisada\/#author"},"publisher":{"@id":"https:\/\/techchance.jp\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/00-main-4.png","width":1672,"height":941,"caption":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u300c\u7e70\u308a\u8fd4\u3057\u300d\u3068\u306f\uff1f\u4e5d\u4e5d\u3067\u5b66\u3076for\u6587\u30fbwhile\u6587\u306e\u9055\u3044"},"datePublished":"2026-10-20T19:51:40+09:00","dateModified":"2026-10-20T19:51:40+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/#webpage"},"isPartOf":{"@id":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/#webpage"},"articleSection":"\u60c5\u5831"},{"@type":"BreadcrumbList","@id":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/techchance.jp\/blog\/#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/techchance.jp\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/techchance.jp\/blog\/category\/%e6%83%85%e5%a0%b1\/#listItem","name":"\u60c5\u5831"}},{"@type":"ListItem","@id":"https:\/\/techchance.jp\/blog\/category\/%e6%83%85%e5%a0%b1\/#listItem","position":2,"name":"\u60c5\u5831","item":"https:\/\/techchance.jp\/blog\/category\/%e6%83%85%e5%a0%b1\/","nextItem":{"@type":"ListItem","@id":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/#listItem","name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u300c\u7e70\u308a\u8fd4\u3057\u300d\u3068\u306f\uff1f\u4e5d\u4e5d\u3067\u5b66\u3076for\u6587\u30fbwhile\u6587\u306e\u9055\u3044"},"previousItem":{"@type":"ListItem","@id":"https:\/\/techchance.jp\/blog\/#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/#listItem","position":3,"name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u300c\u7e70\u308a\u8fd4\u3057\u300d\u3068\u306f\uff1f\u4e5d\u4e5d\u3067\u5b66\u3076for\u6587\u30fbwhile\u6587\u306e\u9055\u3044","previousItem":{"@type":"ListItem","@id":"https:\/\/techchance.jp\/blog\/category\/%e6%83%85%e5%a0%b1\/#listItem","name":"\u60c5\u5831"}}]},{"@type":"Organization","@id":"https:\/\/techchance.jp\/blog\/#organization","name":"TechChance! \u516c\u5f0f\u30d6\u30ed\u30b0","description":"\u5c0f\u4e2d\u9ad8\u751f\u5411\u3051\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30ebTechChance!","url":"https:\/\/techchance.jp\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2021\/12\/\u57fa\u672c\u30ed\u30b3\u3099\u767d\u30d5\u30c1.png","@id":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/#organizationLogo","width":1040,"height":390},"image":{"@id":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/techchance.jp\/blog\/author\/kunisada\/#author","url":"https:\/\/techchance.jp\/blog\/author\/kunisada\/","name":"kunisada","image":{"@type":"ImageObject","@id":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/#authorImage","url":"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2021\/11\/kunisada-150x150.jpg","width":96,"height":96,"caption":"kunisada"}},{"@type":"WebPage","@id":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/#webpage","url":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/","name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u300c\u7e70\u308a\u8fd4\u3057\u300d\u3068\u306f\uff1f\u4e5d\u4e5d\u3067\u5b66\u3076for\u6587\u30fbwhile\u6587\u306e\u9055\u3044","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u7e70\u308a\u8fd4\u3057\u3092\u4e5d\u4e5d\u306e2\u306e\u6bb5\u3067\u89e3\u8aac\u3002Scratch\u3068Python\u306efor\u6587\u30fbwhile\u6587\u3092\u4f7f\u3044\u3001\u5909\u6570\u306e\u66f4\u65b0\u3001range\u306e\u7d42\u7aef\u3001\u7d42\u4e86\u6761\u4ef6\u3001\u7121\u9650\u30eb\u30fc\u30d7\u306e\u539f\u56e0\u3092\u78ba\u304b\u3081\u307e\u3059\u3002\u51e6\u7406\u3092\u8ffd\u3046\u8868\u3001\u7df4\u7fd2\u554f\u984c\u3001\u4e8c\u91cd\u30eb\u30fc\u30d7\u306e\u4f8b\u3082\u63b2\u8f09\u3002","inLanguage":"ja","isPartOf":{"@id":"https:\/\/techchance.jp\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/#breadcrumblist"},"author":{"@id":"https:\/\/techchance.jp\/blog\/author\/kunisada\/#author"},"creator":{"@id":"https:\/\/techchance.jp\/blog\/author\/kunisada\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/00-main-4.png","@id":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/#mainImage","width":1672,"height":941,"caption":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u300c\u7e70\u308a\u8fd4\u3057\u300d\u3068\u306f\uff1f\u4e5d\u4e5d\u3067\u5b66\u3076for\u6587\u30fbwhile\u6587\u306e\u9055\u3044"},"primaryImageOfPage":{"@id":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/#mainImage"},"datePublished":"2026-10-20T19:51:40+09:00","dateModified":"2026-10-20T19:51:40+09:00"},{"@type":"WebSite","@id":"https:\/\/techchance.jp\/blog\/#website","url":"https:\/\/techchance.jp\/blog\/","name":"TechChance! \u516c\u5f0f\u30d6\u30ed\u30b0","description":"\u5c0f\u4e2d\u9ad8\u751f\u5411\u3051\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30ebTechChance!","inLanguage":"ja","publisher":{"@id":"https:\/\/techchance.jp\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"4718","title":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u300c\u7e70\u308a\u8fd4\u3057\u300d\u3068\u306f\uff1f\u4e5d\u4e5d\u3067\u5b66\u3076for\u6587\u30fbwhile\u6587\u306e\u9055\u3044","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u7e70\u308a\u8fd4\u3057\u3092\u4e5d\u4e5d\u306e2\u306e\u6bb5\u3067\u89e3\u8aac\u3002Scratch\u3068Python\u306efor\u6587\u30fbwhile\u6587\u3092\u4f7f\u3044\u3001\u5909\u6570\u306e\u66f4\u65b0\u3001range\u306e\u7d42\u7aef\u3001\u7d42\u4e86\u6761\u4ef6\u3001\u7121\u9650\u30eb\u30fc\u30d7\u306e\u539f\u56e0\u3092\u78ba\u304b\u3081\u307e\u3059\u3002\u51e6\u7406\u3092\u8ffd\u3046\u8868\u3001\u7df4\u7fd2\u554f\u984c\u3001\u4e8c\u91cd\u30eb\u30fc\u30d7\u306e\u4f8b\u3082\u63b2\u8f09\u3002","keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":{"subject":"","preview":"","content":""},"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2026-10-20 10:23:41","updated":"2026-10-20 11:08:07","breadcrumb_settings":null,"seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/techchance.jp\/blog\/\" title=\"\u30db\u30fc\u30e0\">\u30db\u30fc\u30e0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/techchance.jp\/blog\/category\/%e6%83%85%e5%a0%b1\/\" title=\"\u60c5\u5831\">\u60c5\u5831<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u300c\u7e70\u308a\u8fd4\u3057\u300d\u3068\u306f\uff1f\u4e5d\u4e5d\u3067\u5b66\u3076for\u6587\u30fbwhile\u6587\u306e\u9055\u3044\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\u30db\u30fc\u30e0","link":"https:\/\/techchance.jp\/blog\/"},{"label":"\u60c5\u5831","link":"https:\/\/techchance.jp\/blog\/category\/%e6%83%85%e5%a0%b1\/"},{"label":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u300c\u7e70\u308a\u8fd4\u3057\u300d\u3068\u306f\uff1f\u4e5d\u4e5d\u3067\u5b66\u3076for\u6587\u30fbwhile\u6587\u306e\u9055\u3044","link":"https:\/\/techchance.jp\/blog\/2026\/10\/20\/programming-loops-for-while\/"}],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/techchance.jp\/blog\/wp-content\/uploads\/2026\/10\/00-main-4.png","_links":{"self":[{"href":"https:\/\/techchance.jp\/blog\/wp-json\/wp\/v2\/posts\/4718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techchance.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techchance.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techchance.jp\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/techchance.jp\/blog\/wp-json\/wp\/v2\/comments?post=4718"}],"version-history":[{"count":2,"href":"https:\/\/techchance.jp\/blog\/wp-json\/wp\/v2\/posts\/4718\/revisions"}],"predecessor-version":[{"id":4732,"href":"https:\/\/techchance.jp\/blog\/wp-json\/wp\/v2\/posts\/4718\/revisions\/4732"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techchance.jp\/blog\/wp-json\/wp\/v2\/media\/4720"}],"wp:attachment":[{"href":"https:\/\/techchance.jp\/blog\/wp-json\/wp\/v2\/media?parent=4718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techchance.jp\/blog\/wp-json\/wp\/v2\/categories?post=4718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techchance.jp\/blog\/wp-json\/wp\/v2\/tags?post=4718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}