Python\u3067\u30ad\u30fc\u30dc\u30fc\u30c9\u304b\u3089\u6587\u5b57\u5217\u3084\u6570\u5024\u3092\u5165\u529b\u3059\u308b\u65b9\u6cd5\u306f\u5206\u304b\u308b\u304c\u3001\u8907\u6570\u5165\u529b\u3059\u308b\u65b9\u6cd5\u304c\u5206\u304b\u3089\u306a\u3044\u3002<\/p>\n\n\n\n
\u4eca\u56de\u306f\u305d\u3093\u306a\u60a9\u307f\u306b\u7b54\u3048\u307e\u3059\u3002<\/p>\n\n\n\n
\u3053\u306e\u8a18\u4e8b\u306f\u3053\u3093\u306a\u4eba\u306b\u304a\u3059\u3059\u3081\uff01<\/p>\n\n\n
\u65b9\u6cd5\u306f\u7c21\u5358\u3067\u3059\u3002<\/p>\n\n\n\n
\u30b9\u30da\u30fc\u30b9\u3001\u30ab\u30f3\u30de\u533a\u5207\u308a\u306e\u8907\u6570\u5165\u529b\u3067\u3042\u308c\u3070\u3001split<\/span><\/strong>\u3092\u4f7f\u3046\u3002<\/p>\n\n\n\n \u6539\u884c\u533a\u5207\u308a\u306e\u8907\u6570\u5165\u529b\u3067\u3042\u308c\u3070\u3001for<\/span><\/strong>\u6587\u3092\u4f7f\u3046\u3002<\/p>\n\n\n\n \u305d\u308c\u3067\u306f\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\t\t \u307e\u305a\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u304b\u30891\u3064\u306e\u6587\u5b57\u5217\u30fb\u6570\u5024\u3092\u5165\u529b\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n \u30ad\u30fc\u30dc\u30fc\u30c9\u304b\u3089\u306e\u5165\u529b\u3092\u53d7\u3051\u4ed8\u3051\u308b\u306b\u306f\u3001input\u95a2\u6570<\/strong>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n [\u51fa\u529b\u7d50\u679c]<\/p>\n\n\n\n \u30ad\u30fc\u30dc\u30fc\u30c9\u3067Hello World\u3068\u6253\u3061\u3001Enter\u3092\u62bc\u3057\u307e\u3059\u3002\u5909\u6570s\u306b\u6587\u5b57\u5217\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n \u6574\u6570\u3092\u5165\u529b\u3059\u308b\u306b\u306f\u3001int\u95a2\u6570<\/strong>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n [\u51fa\u529b\u7d50\u679c]<\/p>\n\n\n\n x\u306f\u6574\u6570\u578b\u3067\u683c\u7d0d\u3055\u308c\u308b\u306e\u3067\u3001\u6570\u5f0f\u6f14\u7b97\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n \u672c\u984c\u3067\u3042\u308b\u8907\u6570\u500b\u306e\u6587\u5b57\u5217\u3092\u5165\u529b\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3001\u30ab\u30f3\u30de\u533a\u5207\u308a\u3001\u6539\u884c\u533a\u5207\u308a\u306e\u9806\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n \u5c1a\u3001\u6587\u5b57\u5217\u306f\u30ea\u30b9\u30c8\u3067\u683c\u7d0d\u3092\u524d\u63d0\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n \u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u8907\u6570\u5165\u529b\u3059\u308b\u5834\u5408\u306f\u3001split\u95a2\u6570<\/span><\/strong>\u3092\u4f7f\u3044\u307e\u3059\u3002\u5f15\u6570\u306f\u672a\u8a2d\u5b9a\u3067OK\u3067\u3059\u3002<\/p>\n\n\n\n [\u51fa\u529b\u7d50\u679c]<\/p>\n\n\n\n \u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u8907\u6570\u5165\u529b\u3059\u308b\u5834\u5408\u306f\u3001split\u95a2\u6570\u306e\u5f15\u6570\u3092\u300c“,”<\/span><\/strong>\u300d\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n [\u51fa\u529b\u7d50\u679c]<\/p>\n\n\n\n \u6539\u884c\u533a\u5207\u308a\u3067\u8907\u6570\u5165\u529b\u3059\u308b\u5834\u5408\u306f\u3001for\u6587<\/span><\/strong>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n [\u51fa\u529b\u7d50\u679c]<\/p>\n\n\n\n \u8907\u6570\u500b\u306e\u6570\u5024\u3092\u5165\u529b\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3082\u3001\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3001\u30ab\u30f3\u30de\u533a\u5207\u308a\u3001\u6539\u884c\u533a\u5207\u308a\u306e\u9806\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n \u6570\u5024\u3092\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u8907\u6570\u5165\u529b\u3059\u308b\u5834\u5408\u306f\u3001\u5c11\u3057\u5384\u4ecb\u3067\u3059\u3002list\u95a2\u6570<\/span><\/strong>\u3068map\u95a2\u6570<\/span><\/strong>\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n map\u95a2\u6570\u306f\u7b2c1\u5f15\u6570\u306b\u52a0\u5de5\u3059\u308b\u95a2\u6570\u3001\u7b2c2\u5f15\u6570\u306b\u52a0\u5de5\u5143\u3068\u306a\u308b\u5024\u7fa4\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u4eca\u56de\u306e\u5834\u5408\u306f\u3001\u5165\u529b\u3057\u305f\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u6574\u6570\u578b\u306b\u5909\u63db\u3057\u305f\u3044\u306e\u3067\u3001\u7b2c1\u5f15\u6570\u306bint<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n map\u95a2\u6570\u306e\u623b\u308a\u5024\u306f\u30ea\u30b9\u30c8\u3067\u306f\u306a\u3044\u306e\u3067\u3001list\u95a2\u6570\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n \u6570\u5024\u306e\u8907\u6570\u5165\u529b\u306e\u8a18\u8ff0\u65b9\u6cd5\u306f\u3001list\u95a2\u6570\u3068map\u95a2\u6570\u3092\u4f7f\u3046\u3053\u3068\u3092\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n<\/div>\n\n\n\n [\u51fa\u529b\u7d50\u679c]<\/p>\n\n\n\n \u30ab\u30f3\u30de\u533a\u5207\u308a\u3082\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3068\u540c\u69d8\u3067\u3059\u3002<\/p>\n\n\n\n [\u51fa\u529b\u7d50\u679c]<\/p>\n\n\n\n \u6570\u5024\u306e\u6539\u884c\u533a\u5207\u308a\u5165\u529b\u306f\u3001\u6587\u5b57\u5217\u306e\u5834\u5408\u306b\u5bfe\u3057\u3066int\u95a2\u6570\u3092\u8ffd\u52a0\u3059\u308b\u306e\u307f<\/strong>\u306e\u305f\u3081\u3001\u7279\u306b\u96e3\u3057\u304f\u306f\u306a\u3044\u3067\u3059\u3002<\/p>\n\n\n\n [\u51fa\u529b\u7d50\u679c]<\/p>\n\n\n\n Python\u3067\u30ad\u30fc\u30dc\u30fc\u30c9\u304b\u3089\u6587\u5b57\u5217\u3084\u6570\u5024\u3092\u8907\u6570\u5165\u529b\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n \u899a\u3048\u3066\u304a\u304f\u3053\u3068\u306f<\/p>\n\n\n Python\u5b66\u7fd2\u306e\u304a\u5f79\u306b\u7acb\u3066\u305f\u306a\u3089\u5e78\u3044\u3067\u3059\u3002<\/p>\n\n\n\n \u72ec\u308a\u3067Python\u5b66\u7fd2\u3059\u308b\u306e\u306f\u5927\u5909\u3060\u306a\u3068\u601d\u3046\u65b9\u306f\u3001\u66f8\u7c4d\u3084\u30b9\u30af\u30fc\u30eb\u3092\u6d3b\u7528\u3059\u308b\u306e\u3082\u624b\u3067\u3059\u3002<\/p>\n\n\n\t\t\u5165\u529b\u306e\u57fa\u672c<\/h2>\n\n\n\n
\u6587\u5b57\u5217\u306e\u5165\u529b<\/h3>\n\n\n\n
s = input("\u6587\u5b57\u5217\u3092\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044 ")\nprint("\u5165\u529b\u3057\u305f\u6587\u5b57\u5217\u306f\u300c" + s + "\u300d\u3067\u3059")<\/code><\/pre><\/div>\n\n\n\n
\u6587\u5b57\u5217\u3092\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044 Hello World\n\u5165\u529b\u3057\u305f\u6587\u5b57\u5217\u306f\u300cHello World\u300d\u3067\u3059<\/code><\/pre><\/div>\n\n\n\n
\u6570\u5024\u306e\u5165\u529b<\/h3>\n\n\n\n
x = int(input("\u6570\u5024\u3092\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044 "))\ny = x + 1\nprint(str(x) + "\u306b1\u8db3\u3059\u3068\u300c" + str(y) + "\u300d\u3067\u3059")<\/code><\/pre><\/div>\n\n\n\n
\u6587\u5b57\u5217\u3092\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044 5\n5\u306b1\u8db3\u3059\u3068\u300c6\u300d\u3067\u3059<\/code><\/pre><\/div>\n\n\n\n
\u6587\u5b57\u5217\u306e\u8907\u6570\u5165\u529b\u65b9\u6cd5<\/h2>\n\n\n\n
\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u306e\u8907\u6570\u5165\u529b<\/h3>\n\n\n\n
s = input("\u6587\u5b57\u5217\u3092\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u8907\u6570\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044 ").split()\nn = len(s)\nfor i in range(n):\n print(s[i])<\/code><\/pre><\/div>\n\n\n\n
\u6587\u5b57\u5217\u3092\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u8907\u6570\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044 Hello World Python\nHello\nWorld\nPython<\/code><\/pre><\/div>\n\n\n\n
\u30ab\u30f3\u30de\u533a\u5207\u308a\u306e\u8907\u6570\u5165\u529b<\/h3>\n\n\n\n
s = input("\u6587\u5b57\u5217\u3092\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u8907\u6570\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044 ").split(",")\nn = len(s)\nfor i in range(n):\n print(s[i])<\/code><\/pre><\/div>\n\n\n\n
\u6587\u5b57\u5217\u3092\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u8907\u6570\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044 Hello,World,Python\nHello\nWorld\nPython<\/code><\/pre><\/div>\n\n\n\n
\u6539\u884c\u533a\u5207\u308a\u306e\u8907\u6570\u5165\u529b<\/h3>\n\n\n\n
n = int(input("\u6587\u5b57\u5217\u306e\u5165\u529b\u6570: "))\ns = []\nfor i in range(n):\n s += [input(str(i+1) + "\u756a\u76ee\u306e\u6587\u5b57\u5217\u5165\u529b ")]\n\nfor i in range(n):\n print(s[i])<\/code><\/pre><\/div>\n\n\n
\u6587\u5b57\u5217\u306e\u5165\u529b\u6570: 3\n1\u756a\u76ee\u306e\u6587\u5b57\u5217\u5165\u529b Hello \n2\u756a\u76ee\u306e\u6587\u5b57\u5217\u5165\u529b World\n3\u756a\u76ee\u306e\u6587\u5b57\u5217\u5165\u529b Python\nHello\nWorld\nPython<\/code><\/pre><\/div>\n\n\n\n\n<\/a>\n\n\n\n\n
\u6570\u5024\u306e\u8907\u6570\u5165\u529b\u65b9\u6cd5<\/h2>\n\n\n\n
\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u306e\u8907\u6570\u5165\u529b<\/h3>\n\n\n\n
x = list(map(int, input("\u6570\u5024\u3092\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u8907\u6570\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044 ").split()))\nn = len(x)\nfor i in range(n):\n print(x[i] + 1)<\/code><\/pre><\/div>\n\n\n\n
\u6570\u5024\u3092\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u8907\u6570\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044 1 2 3\n2\n3\n4<\/code><\/pre><\/div>\n\n\n\n
\u30ab\u30f3\u30de\u533a\u5207\u308a\u306e\u8907\u6570\u5165\u529b<\/h3>\n\n\n\n
x = list(map(int, input("\u6570\u5024\u3092\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u8907\u6570\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044 ").split(",")))\nn = len(x)\nfor i in range(n):\n print(x[i] + 1)<\/code><\/pre><\/div>\n\n\n\n
\u6570\u5024\u3092\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u8907\u6570\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044 1,2,3\n2\n3\n4<\/code><\/pre><\/div>\n\n\n\n
\u6539\u884c\u533a\u5207\u308a\u306e\u8907\u6570\u5165\u529b<\/h3>\n\n\n\n
n = int(input("\u6570\u5024\u306e\u5165\u529b\u6570: "))\nx = []\nfor i in range(n):\n x += [int(input(str(i+1) + "\u756a\u76ee\u306e\u6570\u5024\u5165\u529b "))]\n\nfor i in range(n):\n y = x[i] + 1\n print(y)<\/code><\/pre><\/div>\n\n\n\n
\u6570\u5024\u306e\u5165\u529b\u6570: 3\n1\u756a\u76ee\u306e\u6570\u5024\u5165\u529b 1\n2\u756a\u76ee\u306e\u6570\u5024\u5165\u529b 2\n3\u756a\u76ee\u306e\u6570\u5024\u5165\u529b 3\n2\n3\n4<\/code><\/pre><\/div>\n\n\n\n
\u307e\u3068\u3081<\/h2>\n\n\n\n
\n\n