{"id":37623,"date":"2025-04-22T19:30:04","date_gmt":"2025-04-22T16:30:04","guid":{"rendered":"https:\/\/goit.global\/?post_type=articles&#038;p=37623"},"modified":"2026-04-30T14:33:04","modified_gmt":"2026-04-30T11:33:04","slug":"metod-append-y-extend-v-python-kak-dobavyt-lement-v-spysok","status":"publish","type":"articles","link":"https:\/\/goit.global\/ua-ru\/articles\/metod-append-y-extend-v-python-kak-dobavyt-elementi-v-spysok\/","title":{"rendered":"\u041c\u0435\u0442\u043e\u0434\u044b append() \u0438 extend() \u0432 Python: \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u0441\u043f\u0438\u0441\u043e\u043a"},"content":{"rendered":"<p>&#1056;&#1072;&#1073;&#1086;&#1090;&#1072; &#1089;&#1086; &#1089;&#1087;&#1080;&#1089;&#1082;&#1072;&#1084;&#1080; &#1074; <a href=\"https:\/\/goit.global\/ua-ru\/articles\/chto-takoe-python-y-dlia-cheho-on-nuzhen\/\" target=\"_blank\" rel=\"noopener\">&#1103;&#1079;&#1099;&#1082;&#1077; &#1087;&#1088;&#1086;&#1075;&#1088;&#1072;&#1084;&#1084;&#1080;&#1088;&#1086;&#1074;&#1072;&#1085;&#1080;&#1103; Python<\/a> &#1103;&#1074;&#1083;&#1103;&#1077;&#1090;&#1089;&#1103; &#1073;&#1072;&#1079;&#1086;&#1074;&#1099;&#1084; &#1085;&#1072;&#1074;&#1099;&#1082;&#1086;&#1084;, &#1073;&#1077;&#1079; &#1082;&#1086;&#1090;&#1086;&#1088;&#1086;&#1075;&#1086; &#1085;&#1077;&#1074;&#1086;&#1079;&#1084;&#1086;&#1078;&#1085;&#1086; &#1087;&#1088;&#1077;&#1076;&#1089;&#1090;&#1072;&#1074;&#1080;&#1090;&#1100; &#1085;&#1080; &#1086;&#1076;&#1080;&#1085; &#1088;&#1077;&#1072;&#1083;&#1100;&#1085;&#1099;&#1081; &#1087;&#1088;&#1086;&#1077;&#1082;&#1090;. &#1054;&#1090; &#1087;&#1088;&#1086;&#1089;&#1090;&#1099;&#1093; &#1079;&#1072;&#1076;&#1072;&#1095; &#1076;&#1086; &#1089;&#1083;&#1086;&#1078;&#1085;&#1099;&#1093; &#1072;&#1083;&#1075;&#1086;&#1088;&#1080;&#1090;&#1084;&#1086;&#1074; &ndash; &#1089;&#1087;&#1080;&#1089;&#1082;&#1080; &#1074; &#1055;&#1072;&#1081;&#1090;&#1086;&#1085;&#1077; &#1087;&#1086;&#1074;&#1089;&#1102;&#1076;&#1091;! &#1054;&#1085;&#1080; &#1091;&#1085;&#1080;&#1074;&#1077;&#1088;&#1089;&#1072;&#1083;&#1100;&#1085;&#1099;, &#1076;&#1080;&#1085;&#1072;&#1084;&#1080;&#1095;&#1085;&#1099; &#1080; &#1087;&#1086;&#1079;&#1074;&#1086;&#1083;&#1103;&#1102;&#1090; &#1091;&#1076;&#1086;&#1073;&#1085;&#1086; &#1093;&#1088;&#1072;&#1085;&#1080;&#1090;&#1100; &#1076;&#1072;&#1085;&#1085;&#1099;&#1077;. &#1053;&#1086; &#1095;&#1090;&#1086;&#1073;&#1099; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1100; &#1089;&#1087;&#1080;&#1089;&#1082;&#1080; &#1087;&#1086; &#1084;&#1072;&#1082;&#1089;&#1080;&#1084;&#1091;&#1084;&#1091;, &#1085;&#1091;&#1078;&#1085;&#1086; &#1087;&#1086;&#1085;&#1080;&#1084;&#1072;&#1090;&#1100;, &#1082;&#1072;&#1082; &#1089; &#1085;&#1080;&#1084;&#1080; &#1087;&#1088;&#1072;&#1074;&#1080;&#1083;&#1100;&#1085;&#1086; &#1088;&#1072;&#1073;&#1086;&#1090;&#1072;&#1090;&#1100;.<\/p>\n<p>&#1048; &#1077;&#1089;&#1083;&#1080; &#1090;&#1099; &#1091;&#1095;&#1080;&#1096;&#1100; &#1101;&#1090;&#1086;&#1090; &#1103;&#1079;&#1099;&#1082; &#1087;&#1088;&#1086;&#1075;&#1088;&#1072;&#1084;&#1084;&#1080;&#1088;&#1086;&#1074;&#1072;&#1085;&#1080;&#1103; &#1080;&#1083;&#1080; &#1091;&#1078;&#1077; &#1087;&#1080;&#1096;&#1077;&#1096;&#1100; &#1082;&#1086;&#1076;, &#1090;&#1086; &#1085;&#1072;&#1074;&#1077;&#1088;&#1085;&#1103;&#1082;&#1072; &#1089;&#1090;&#1072;&#1083;&#1082;&#1080;&#1074;&#1072;&#1083;&#1089;&#1103;(-&#1072;&#1089;&#1100;) &#1089; &#1085;&#1077;&#1086;&#1073;&#1093;&#1086;&#1076;&#1080;&#1084;&#1086;&#1089;&#1090;&#1100;&#1102; &#1076;&#1086;&#1073;&#1072;&#1074;&#1080;&#1090;&#1100; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090; &#1074; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082; Python. &#1044;&#1083;&#1103; &#1101;&#1090;&#1086;&#1075;&#1086; &#1095;&#1072;&#1097;&#1077; &#1074;&#1089;&#1077;&#1075;&#1086; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1091;&#1102;&#1090;&#1089;&#1103; &#1084;&#1077;&#1090;&#1086;&#1076;&#1099; append() &#1080; extend(). &#1042; &#1101;&#1090;&#1086;&#1084; &#1084;&#1072;&#1090;&#1077;&#1088;&#1080;&#1072;&#1083;&#1077; &#1087;&#1086;&#1076;&#1088;&#1086;&#1073;&#1085;&#1086; &#1088;&#1072;&#1079;&#1073;&#1077;&#1088;&#1077;&#1084;&#1089;&#1103; &#1089; &#1090;&#1077;&#1084;, &#1095;&#1090;&#1086; &#1090;&#1072;&#1082;&#1086;&#1077; append &#1080; extend &#1074; <a href=\"https:\/\/goit.global\/ua-ru\/articles\/kto-takoy-python-razrabotchyk-y-chem-on-zanymaetsia\/\" target=\"_blank\" rel=\"noopener\">&#1055;&#1072;&#1081;&#1090;&#1086;&#1085;<\/a>, &#1074; &#1095;&#1077;&#1084; &#1084;&#1077;&#1078;&#1076;&#1091; &#1085;&#1080;&#1084;&#1080; &#1088;&#1072;&#1079;&#1085;&#1080;&#1094;&#1072;, &#1082;&#1072;&#1082; &#1086;&#1085;&#1080; &#1088;&#1072;&#1073;&#1086;&#1090;&#1072;&#1102;&#1090;, &#1080; &#1074; &#1082;&#1072;&#1082;&#1080;&#1093; &#1089;&#1083;&#1091;&#1095;&#1072;&#1103;&#1093; &#1080;&#1093; &#1089;&#1090;&#1086;&#1080;&#1090; &#1087;&#1088;&#1080;&#1084;&#1077;&#1085;&#1103;&#1090;&#1100;.<\/p>\n<h2>&#1063;&#1090;&#1086; &#1090;&#1072;&#1082;&#1086;&#1077; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082; &#1074; Python &#1080; &#1079;&#1072;&#1095;&#1077;&#1084; &#1086;&#1085; &#1085;&#1091;&#1078;&#1077;&#1085;<\/h2>\n<p>\n&#1057;&#1087;&#1080;&#1089;&#1086;&#1082; (&#1074; <a href=\"https:\/\/goit.global\/ua-ru\/articles\/kak-v-uchyt-anhlyyskyy-samostoiatelno-y-proyty-sobesedovanye-na-rabotu\/\" target=\"_blank\" rel=\"noopener\">&#1072;&#1085;&#1075;&#1083;&#1080;&#1081;&#1089;&#1082;&#1086;&#1084;<\/a> list) &ndash; &#1101;&#1090;&#1086; &#1080;&#1079;&#1084;&#1077;&#1085;&#1103;&#1077;&#1084;&#1099;&#1081; &#1091;&#1087;&#1086;&#1088;&#1103;&#1076;&#1086;&#1095;&#1077;&#1085;&#1085;&#1099;&#1081; &#1082;&#1086;&#1085;&#1090;&#1077;&#1081;&#1085;&#1077;&#1088; &#1074; &#1055;&#1072;&#1081;&#1090;&#1086;&#1085;&#1077;, &#1082;&#1086;&#1090;&#1086;&#1088;&#1099;&#1081; &#1084;&#1086;&#1078;&#1077;&#1090; &#1089;&#1086;&#1076;&#1077;&#1088;&#1078;&#1072;&#1090;&#1100; &#1086;&#1073;&#1098;&#1077;&#1082;&#1090;&#1099; &#1088;&#1072;&#1079;&#1085;&#1099;&#1093; &#1090;&#1080;&#1087;&#1086;&#1074;: &#1095;&#1080;&#1089;&#1083;&#1072;, &#1089;&#1090;&#1088;&#1086;&#1082;&#1080;, &#1082;&#1086;&#1088;&#1090;&#1077;&#1078;&#1080;, &#1089;&#1083;&#1086;&#1074;&#1072;&#1088;&#1080;, &#1076;&#1088;&#1091;&#1075;&#1080;&#1077; &#1089;&#1087;&#1080;&#1089;&#1082;&#1080; &#1080; &#1076;&#1072;&#1078;&#1077; &#1092;&#1091;&#1085;&#1082;&#1094;&#1080;&#1080;. &#1041;&#1083;&#1072;&#1075;&#1086;&#1076;&#1072;&#1088;&#1103; &#1101;&#1090;&#1086;&#1084;&#1091; &#1089;&#1087;&#1080;&#1089;&#1082;&#1080; &#1096;&#1080;&#1088;&#1086;&#1082;&#1086; &#1087;&#1088;&#1080;&#1084;&#1077;&#1085;&#1103;&#1102;&#1090;&#1089;&#1103; &#1074; &#1072;&#1083;&#1075;&#1086;&#1088;&#1080;&#1090;&#1084;&#1072;&#1093;, &#1088;&#1072;&#1073;&#1086;&#1090;&#1077; &#1089; &#1092;&#1072;&#1081;&#1083;&#1072;&#1084;&#1080; &#1080; <a href=\"https:\/\/goit.global\/ua-ru\/articles\/mashynnoe-obuchenye-chto-to-takoe-dlia-cheho-nuzhno-y-kak-rabotaet\/\" target=\"_blank\" rel=\"noopener\">&#1084;&#1072;&#1096;&#1080;&#1085;&#1085;&#1086;&#1084; &#1086;&#1073;&#1091;&#1095;&#1077;&#1085;&#1080;&#1080;<\/a>.<\/p>\n<p>&#1057;&#1086;&#1079;&#1076;&#1072;&#1090;&#1100; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082; &#1076;&#1086;&#1089;&#1090;&#1072;&#1090;&#1086;&#1095;&#1085;&#1086; &#1083;&#1077;&#1075;&#1082;&#1086;, &#1084;&#1099; &#1088;&#1072;&#1089;&#1089;&#1084;&#1086;&#1090;&#1088;&#1080;&#1084; &#1085;&#1077;&#1089;&#1082;&#1086;&#1083;&#1100;&#1082;&#1086; &#1103;&#1088;&#1082;&#1080;&#1093; &#1087;&#1088;&#1080;&#1084;&#1077;&#1088;&#1086;&#1074;:<\/p>\n<p><strong>mixed_list = [1, &#8220;hello&#8221;, [2, 3], (4, 5)];<\/strong><\/p>\n<p><strong>numbers = [1, 2, 3];<\/strong><\/p>\n<p><strong>words = [&#8220;Python&#8221;, &#8220;JavaScript&#8221;];<\/strong><\/p>\n<p><strong>mixed = [1, &#8220;text&#8221;, [2, 3], (4, 5)];<\/strong><\/p>\n<p><strong>cities = [&#8216;Kyiv&#8217;, &#8216;Lviv&#8217;, &#8216;Odesa&#8217;]<\/strong><\/p>\n<p>&#1057;&#1087;&#1080;&#1089;&#1082;&#1080; &#1074; Python &#1087;&#1086;&#1076;&#1076;&#1077;&#1088;&#1078;&#1080;&#1074;&#1072;&#1102;&#1090; &#1080;&#1085;&#1076;&#1077;&#1082;&#1089;&#1080;&#1088;&#1086;&#1074;&#1072;&#1085;&#1080;&#1077;, &#1089;&#1088;&#1077;&#1079;&#1099;, &#1084;&#1077;&#1090;&#1086;&#1076;&#1099; &#1076;&#1083;&#1103; &#1080;&#1079;&#1084;&#1077;&#1085;&#1077;&#1085;&#1080;&#1103;, &#1076;&#1086;&#1073;&#1072;&#1074;&#1083;&#1077;&#1085;&#1080;&#1103; &#1080; &#1091;&#1076;&#1072;&#1083;&#1077;&#1085;&#1080;&#1103; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090;&#1086;&#1074;, &#1072; &#1090;&#1072;&#1082;&#1078;&#1077; &#1072;&#1082;&#1090;&#1080;&#1074;&#1085;&#1086; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1091;&#1102;&#1090;&#1089;&#1103; &#1074; &#1087;&#1086;&#1074;&#1089;&#1077;&#1076;&#1085;&#1077;&#1074;&#1085;&#1099;&#1093; &#1079;&#1072;&#1076;&#1072;&#1095;&#1072;&#1093;: &#1086;&#1090; &#1072;&#1085;&#1072;&#1083;&#1080;&#1079;&#1072; &#1076;&#1072;&#1085;&#1085;&#1099;&#1093; &#1076;&#1086; &#1074;&#1077;&#1073;-&#1088;&#1072;&#1079;&#1088;&#1072;&#1073;&#1086;&#1090;&#1082;&#1080;. &#1057;&#1090;&#1088;&#1091;&#1082;&#1090;&#1091;&#1088;&#1072; &#1089;&#1087;&#1080;&#1089;&#1082;&#1086;&#1074; &#1076;&#1072;&#1077;&#1090; &#1075;&#1080;&#1073;&#1082;&#1086;&#1089;&#1090;&#1100; &#1080; &#1091;&#1076;&#1086;&#1073;&#1089;&#1090;&#1074;&#1086;. &#1057;&#1086; &#1089;&#1087;&#1080;&#1089;&#1082;&#1072;&#1084;&#1080; &#1083;&#1077;&#1075;&#1082;&#1086; &#1074;&#1099;&#1087;&#1086;&#1083;&#1085;&#1103;&#1090;&#1100; &#1089;&#1086;&#1088;&#1090;&#1080;&#1088;&#1086;&#1074;&#1082;&#1091;, &#1092;&#1080;&#1083;&#1100;&#1090;&#1088;&#1072;&#1094;&#1080;&#1102;, &#1080;&#1090;&#1077;&#1088;&#1072;&#1094;&#1080;&#1102;, &#1079;&#1072;&#1084;&#1077;&#1085;&#1091; &#1080; &#1076;&#1088;&#1091;&#1075;&#1080;&#1077; &#1086;&#1087;&#1077;&#1088;&#1072;&#1094;&#1080;&#1080;.\n<\/p>\n<h2>&#1052;&#1077;&#1090;&#1086;&#1076; append() &#1074; Python &ndash; &#1095;&#1090;&#1086; &#1101;&#1090;&#1086; &#1080; &#1082;&#1072;&#1082; &#1088;&#1072;&#1073;&#1086;&#1090;&#1072;&#1077;&#1090;<\/h2>\n<p>\n&#1053;&#1072;&#1095;&#1085;&#1077;&#1084; &#1089; &#1084;&#1077;&#1090;&#1086;&#1076;&#1072; append &#1074; &#1055;&#1072;&#1081;&#1090;&#1086;&#1085;. &#1063;&#1090;&#1086; &#1090;&#1072;&#1082;&#1086;&#1077; append()? &#1052;&#1077;&#1090;&#1086;&#1076; append() &#1076;&#1086;&#1073;&#1072;&#1074;&#1083;&#1103;&#1077;&#1090; &#1086;&#1076;&#1080;&#1085; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090; &#1074; &#1082;&#1086;&#1085;&#1077;&#1094; &#1089;&#1087;&#1080;&#1089;&#1082;&#1072;. &#1069;&#1090;&#1086; &#1084;&#1086;&#1078;&#1077;&#1090; &#1073;&#1099;&#1090;&#1100; &#1095;&#1080;&#1089;&#1083;&#1086;, &#1089;&#1090;&#1088;&#1086;&#1082;&#1072;, &#1082;&#1086;&#1088;&#1090;&#1077;&#1078;, &#1076;&#1088;&#1091;&#1075;&#1086;&#1081; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082; &#1080;&#1083;&#1080; &#1083;&#1102;&#1073;&#1086;&#1081; &#1086;&#1073;&#1098;&#1077;&#1082;&#1090; <a href=\"https:\/\/goit.global\/ua-ru\/articles\/s-cheho-nachat-yzuchenye-python-10-prost-kh-shahov\/\" target=\"_blank\" rel=\"noopener\">Python<\/a>. &#1054;&#1085; &#1085;&#1077; &#1074;&#1086;&#1079;&#1074;&#1088;&#1072;&#1097;&#1072;&#1077;&#1090; &#1085;&#1086;&#1074;&#1099;&#1081; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082;, &#1072; &#1080;&#1079;&#1084;&#1077;&#1085;&#1103;&#1077;&#1090; &#1080;&#1089;&#1093;&#1086;&#1076;&#1085;&#1099;&#1081;. &#1069;&#1090;&#1086; &#1087;&#1088;&#1086;&#1089;&#1090;&#1086;&#1081; &#1089;&#1087;&#1086;&#1089;&#1086;&#1073; &#1076;&#1086;&#1073;&#1072;&#1074;&#1083;&#1077;&#1085;&#1080;&#1103; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090;&#1072; &#1074; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082; &#1055;&#1072;&#1081;&#1090;&#1086;&#1085;.\n<\/p>\n<h3>&#1057;&#1080;&#1085;&#1090;&#1072;&#1082;&#1089;&#1080;&#1089;<\/h3>\n<p>\nlist.append(item), &#1075;&#1076;&#1077;:\n<\/p>\n<ul>\n<li>list &ndash; &#1090;&#1074;&#1086;&#1081; &#1080;&#1089;&#1093;&#1086;&#1076;&#1085;&#1099;&#1081; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082;;<\/li>\n<li>item &ndash; &#1086;&#1073;&#1098;&#1077;&#1082;&#1090;, &#1082;&#1086;&#1090;&#1086;&#1088;&#1099;&#1081; &#1090;&#1099; &#1076;&#1086;&#1073;&#1072;&#1074;&#1083;&#1103;&#1077;&#1096;&#1100; (&#1095;&#1080;&#1089;&#1083;&#1086;, &#1089;&#1090;&#1088;&#1086;&#1082;&#1072;, &#1089;&#1087;&#1080;&#1089;&#1086;&#1082;, &#1082;&#1086;&#1088;&#1090;&#1077;&#1078; &#1080; &#1090;. &#1076;.).<\/li>\n<\/ul>\n<h3>&#1055;&#1088;&#1080;&#1084;&#1077;&#1088;&#1099;<\/h3>\n<p>\n&#1044;&#1086;&#1073;&#1072;&#1074;&#1080;&#1084; &#1095;&#1080;&#1089;&#1083;&#1086;:<\/p>\n<p><strong>nums = [1, 2]<\/strong><\/p>\n<p><strong>nums.append(3)<\/strong><\/p>\n<p><strong>print(nums)&nbsp; # [1, 2, 3]<\/strong><\/p>\n<p>&#1044;&#1086;&#1073;&#1072;&#1074;&#1080;&#1084; &#1089;&#1090;&#1088;&#1086;&#1082;&#1091;:<\/p>\n<p><strong>words = [&#8220;hello&#8221;]<\/strong><\/p>\n<p><strong>words.append(&#8220;world&#8221;)<\/strong><\/p>\n<p><strong>print(words)&nbsp; # [&#8216;hello&#8217;, &#8216;world&#8217;]<\/strong><\/p>\n<p>&#1044;&#1086;&#1073;&#1072;&#1074;&#1080;&#1084; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082; &#1082;&#1072;&#1082; &#1086;&#1076;&#1080;&#1085; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090;:<\/p>\n<p><strong>items = [1, 2]<\/strong><\/p>\n<p><strong>items.append([3, 4])<\/strong><\/p>\n<p><strong>print(items)&nbsp; # [1, 2, [3, 4]]<\/strong><\/p>\n<p>&#1050;&#1072;&#1082; &#1074;&#1080;&#1076;&#1085;&#1086;, append() &#1085;&#1077; &#1088;&#1072;&#1089;&#1082;&#1088;&#1099;&#1074;&#1072;&#1077;&#1090; &#1074;&#1083;&#1086;&#1078;&#1077;&#1085;&#1085;&#1099;&#1077; &#1089;&#1090;&#1088;&#1091;&#1082;&#1090;&#1091;&#1088;&#1099;. &#1054;&#1085; &#1087;&#1088;&#1086;&#1089;&#1090;&#1086; &#1076;&#1086;&#1073;&#1072;&#1074;&#1083;&#1103;&#1077;&#1090; &#1086;&#1073;&#1098;&#1077;&#1082;&#1090; &#1074; &#1082;&#1086;&#1085;&#1077;&#1094;.<\/p>\n<h2>&#1052;&#1077;&#1090;&#1086;&#1076; extend() &#1074; Python &ndash; &#1095;&#1090;&#1086; &#1076;&#1077;&#1083;&#1072;&#1077;&#1090; &#1080; &#1082;&#1086;&#1075;&#1076;&#1072; &#1085;&#1091;&#1078;&#1077;&#1085;<\/h2>\n<p>\n&#1058;&#1077;&#1087;&#1077;&#1088;&#1100; &#1086; &#1084;&#1077;&#1090;&#1086;&#1076;&#1077; extend &#1074; <a href=\"https:\/\/goit.global\/ua-ru\/articles\/yaz-k-prohrammyrovanyia-python-dlia-mashynnoho-obuchenyia-y-yskusstvennoho-yntellekta\/\" target=\"_blank\" rel=\"noopener\">&#1055;&#1072;&#1081;&#1090;&#1086;&#1085;<\/a>. &#1063;&#1090;&#1086; &#1090;&#1072;&#1082;&#1086;&#1077; extend()? &#1052;&#1077;&#1090;&#1086;&#1076; extend() &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1091;&#1077;&#1090;&#1089;&#1103; &#1076;&#1083;&#1103; &#1090;&#1086;&#1075;&#1086;, &#1095;&#1090;&#1086;&#1073;&#1099; &#1076;&#1086;&#1073;&#1072;&#1074;&#1080;&#1090;&#1100; &#1074; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082; &#1089;&#1088;&#1072;&#1079;&#1091; &#1085;&#1077;&#1089;&#1082;&#1086;&#1083;&#1100;&#1082;&#1086; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090;&#1086;&#1074; &#1080;&#1079; &#1080;&#1090;&#1077;&#1088;&#1080;&#1088;&#1091;&#1077;&#1084;&#1086;&#1075;&#1086; &#1086;&#1073;&#1098;&#1077;&#1082;&#1090;&#1072; &ndash; &#1076;&#1088;&#1091;&#1075;&#1086;&#1075;&#1086; &#1089;&#1087;&#1080;&#1089;&#1082;&#1072;, &#1089;&#1090;&#1088;&#1086;&#1082;&#1080;, &#1084;&#1085;&#1086;&#1078;&#1077;&#1089;&#1090;&#1074;&#1072;, &#1082;&#1086;&#1088;&#1090;&#1077;&#1078;&#1072; &#1080; &#1090;. &#1087;. &#1042; &#1086;&#1090;&#1083;&#1080;&#1095;&#1080;&#1077; &#1086;&#1090; append(), &#1086;&#1085; &laquo;&#1088;&#1072;&#1089;&#1087;&#1072;&#1082;&#1086;&#1074;&#1099;&#1074;&#1072;&#1077;&#1090;&raquo; &#1089;&#1086;&#1076;&#1077;&#1088;&#1078;&#1080;&#1084;&#1086;&#1077; &#1086;&#1073;&#1098;&#1077;&#1082;&#1090;&#1086;&#1074;.\n<\/p>\n<h3>&#1057;&#1080;&#1085;&#1090;&#1072;&#1082;&#1089;&#1080;&#1089;<\/h3>\n<p>\nlist.extend(iterable), &#1075;&#1076;&#1077;:\n<\/p>\n<ul>\n<li>iterable &ndash; &#1083;&#1102;&#1073;&#1086;&#1081; &#1086;&#1073;&#1098;&#1077;&#1082;&#1090;, &#1087;&#1086; &#1082;&#1086;&#1090;&#1086;&#1088;&#1086;&#1084;&#1091; &#1084;&#1086;&#1078;&#1085;&#1086; &#1087;&#1088;&#1086;&#1081;&#1090;&#1080;&#1089;&#1100; &#1074; &#1094;&#1080;&#1082;&#1083;&#1077;: &#1089;&#1087;&#1080;&#1089;&#1086;&#1082;, &#1089;&#1090;&#1088;&#1086;&#1082;&#1072;, &#1082;&#1086;&#1088;&#1090;&#1077;&#1078;, &#1084;&#1085;&#1086;&#1078;&#1077;&#1089;&#1090;&#1074;&#1086;.<\/li>\n<\/ul>\n<h3>&#1055;&#1088;&#1080;&#1084;&#1077;&#1088;&#1099;<\/h3>\n<p>\n&#1044;&#1086;&#1073;&#1072;&#1074;&#1080;&#1084; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090;&#1099; &#1089;&#1087;&#1080;&#1089;&#1082;&#1072;:<\/p>\n<p><strong>nums = [1, 2]<\/strong><\/p>\n<p><strong>nums.extend([3, 4])<\/strong><\/p>\n<p><strong>print(nums)&nbsp; # [1, 2, 3, 4]<\/strong><\/p>\n<p>&#1044;&#1086;&#1073;&#1072;&#1074;&#1080;&#1084; &#1089;&#1080;&#1084;&#1074;&#1086;&#1083;&#1099; &#1089;&#1090;&#1088;&#1086;&#1082;&#1080;:<\/p>\n<p><strong>chars = [&#8216;a&#8217;]<\/strong><\/p>\n<p><strong>chars.extend(&#8220;bc&#8221;)<\/strong><\/p>\n<p><strong>print(chars)&nbsp; # [&#8216;a&#8217;, &#8216;b&#8217;, &#8216;c&#8217;]<\/strong><\/p>\n<p>&#1045;&#1089;&#1083;&#1080; &#1090;&#1099; &#1093;&#1086;&#1095;&#1077;&#1096;&#1100; &#1086;&#1073;&#1098;&#1077;&#1076;&#1080;&#1085;&#1080;&#1090;&#1100; &#1076;&#1074;&#1072; &#1089;&#1087;&#1080;&#1089;&#1082;&#1072;, &#1090;&#1086; extend() &#1073;&#1091;&#1076;&#1077;&#1090; &#1073;&#1086;&#1083;&#1077;&#1077; &#1087;&#1086;&#1076;&#1093;&#1086;&#1076;&#1103;&#1097;&#1080;&#1084; &#1074;&#1072;&#1088;&#1080;&#1072;&#1085;&#1090;&#1086;&#1084;.\n<\/p>\n<h2>&#1050;&#1086;&#1075;&#1076;&#1072; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1100; append()<\/h2>\n<p>\n&#1048;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1091;&#1081; append(), &#1077;&#1089;&#1083;&#1080; &#1085;&#1091;&#1078;&#1085;&#1086; &#1076;&#1086;&#1073;&#1072;&#1074;&#1080;&#1090;&#1100; &#1086;&#1076;&#1080;&#1085; &#1086;&#1073;&#1098;&#1077;&#1082;&#1090; &#1080;&#1083;&#1080; &#1082;&#1086;&#1075;&#1076;&#1072; &#1090;&#1099; &#1088;&#1072;&#1073;&#1086;&#1090;&#1072;&#1077;&#1096;&#1100; &#1089; &#1087;&#1086;&#1090;&#1086;&#1082;&#1072;&#1084;&#1080; &#1076;&#1072;&#1085;&#1085;&#1099;&#1093; (&#1085;&#1072;&#1087;&#1088;&#1080;&#1084;&#1077;&#1088;, &#1087;&#1086;&#1089;&#1090;&#1088;&#1086;&#1095;&#1085;&#1072;&#1103; &#1079;&#1072;&#1075;&#1088;&#1091;&#1079;&#1082;&#1072;). &#1045;&#1089;&#1083;&#1080; &#1074;&#1072;&#1078;&#1085;&#1072; &#1089;&#1082;&#1086;&#1088;&#1086;&#1089;&#1090;&#1100; &#1080; &#1084;&#1080;&#1085;&#1080;&#1084;&#1072;&#1083;&#1100;&#1085;&#1086;&#1077; &#1080;&#1079;&#1084;&#1077;&#1085;&#1077;&#1085;&#1080;&#1077; &#1089;&#1090;&#1088;&#1091;&#1082;&#1090;&#1091;&#1088;&#1099;, &#1072; &#1090;&#1072;&#1082;&#1078;&#1077; &#1082;&#1086;&#1075;&#1076;&#1072; &#1093;&#1086;&#1095;&#1077;&#1096;&#1100; &#1089;&#1086;&#1093;&#1088;&#1072;&#1085;&#1080;&#1090;&#1100; &#1089;&#1090;&#1088;&#1091;&#1082;&#1090;&#1091;&#1088;&#1091; &#1076;&#1086;&#1073;&#1072;&#1074;&#1083;&#1103;&#1077;&#1084;&#1086;&#1075;&#1086; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090;&#1072;.\n<\/p>\n<h2>&#1050;&#1086;&#1075;&#1076;&#1072; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1100; extend()<\/h2>\n<p>\n&#1048;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1091;&#1081; extend(), &#1077;&#1089;&#1083;&#1080; &#1093;&#1086;&#1095;&#1077;&#1096;&#1100; &#1076;&#1086;&#1073;&#1072;&#1074;&#1080;&#1090;&#1100; &#1089;&#1088;&#1072;&#1079;&#1091; &#1085;&#1077;&#1089;&#1082;&#1086;&#1083;&#1100;&#1082;&#1086; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090;&#1086;&#1074; &#1080;&#1079; &#1076;&#1088;&#1091;&#1075;&#1086;&#1075;&#1086; &#1080;&#1089;&#1090;&#1086;&#1095;&#1085;&#1080;&#1082;&#1072; &#1080;&#1083;&#1080; &#1082;&#1086;&#1075;&#1076;&#1072; &#1093;&#1086;&#1095;&#1077;&#1096;&#1100; &#1086;&#1073;&#1098;&#1077;&#1076;&#1080;&#1085;&#1080;&#1090;&#1100; &#1089;&#1087;&#1080;&#1089;&#1082;&#1080;. &#1045;&#1089;&#1083;&#1080; &#1095;&#1080;&#1090;&#1072;&#1077;&#1096;&#1100; &#1080;&#1079; <a href=\"https:\/\/goit.global\/ua-ru\/articles\/chto-takoe-sql-y-hde-eho-yspolzuiut\/\" target=\"_blank\" rel=\"noopener\">&#1073;&#1072;&#1079;&#1099; &#1076;&#1072;&#1085;&#1085;&#1099;&#1093;<\/a> &#1080; &#1093;&#1086;&#1095;&#1077;&#1096;&#1100; &#1076;&#1086;&#1073;&#1072;&#1074;&#1080;&#1090;&#1100; &#1074;&#1089;&#1077; &#1079;&#1085;&#1072;&#1095;&#1077;&#1085;&#1080;&#1103;, &#1072; &#1090;&#1072;&#1082;&#1078;&#1077; &#1082;&#1086;&#1075;&#1076;&#1072; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1091;&#1077;&#1096;&#1100; &#1089;&#1087;&#1080;&#1089;&#1082;&#1080; &#1082;&#1072;&#1082; &#1086;&#1095;&#1077;&#1088;&#1077;&#1076;&#1080; &#1080;&#1083;&#1080; &#1089;&#1090;&#1077;&#1082;&#1080; &#1074; &#1072;&#1083;&#1075;&#1086;&#1088;&#1080;&#1090;&#1084;&#1072;&#1093;.<\/p>\n<figure id=\"attachment_37612\" aria-describedby=\"caption-attachment-37612\" style=\"width: 756px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-37612\" src=\"https:\/\/web-dev-goit.s3.eu-north-1.amazonaws.com\/app\/uploads\/2025\/04\/22161131\/Metod-extend-v-Python.png\" alt=\"\" width=\"756\" height=\"450\" srcset=\"https:\/\/web-dev-goit.s3.eu-north-1.amazonaws.com\/app\/uploads\/2025\/04\/22161131\/Metod-extend-v-Python.png 1424w, https:\/\/web-dev-goit.s3.eu-north-1.amazonaws.com\/app\/uploads\/2025\/04\/22161131\/Metod-extend-v-Python-300x179.png 300w, https:\/\/web-dev-goit.s3.eu-north-1.amazonaws.com\/app\/uploads\/2025\/04\/22161131\/Metod-extend-v-Python-1024x610.png 1024w, https:\/\/web-dev-goit.s3.eu-north-1.amazonaws.com\/app\/uploads\/2025\/04\/22161131\/Metod-extend-v-Python-768x457.png 768w\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" \/><figcaption id=\"caption-attachment-37612\" class=\"wp-caption-text\"><em>&#1061;&#1086;&#1095;&#1077;&#1096;&#1100; &#1087;&#1086;&#1089;&#1090;&#1088;&#1086;&#1080;&#1090;&#1100; &#1082;&#1072;&#1088;&#1100;&#1077;&#1088;&#1091; &#1074; &#1088;&#1072;&#1079;&#1088;&#1072;&#1073;&#1086;&#1090;&#1082;&#1077;? &#1047;&#1072;&#1087;&#1080;&#1096;&#1080;&#1089;&#1100; &#1085;&#1072; <a href=\"https:\/\/goit.global\/ua-ru\/newcomers\/\" target=\"_blank\" rel=\"noopener\">&#1073;&#1077;&#1089;&#1087;&#1083;&#1072;&#1090;&#1085;&#1099;&#1077; &#1084;&#1072;&#1088;&#1072;&#1092;&#1086;&#1085;&#1099;<\/a> &#1080; <a href=\"https:\/\/goit.global\/ua-ru\/courses\/\" target=\"_blank\" rel=\"noopener\">&#1082;&#1091;&#1088;&#1089;&#1099; GoIT<\/a>!<\/em><\/figcaption><\/figure>\n<h2>&#1055;&#1088;&#1080;&#1084;&#1077;&#1088; &#1079;&#1072;&#1076;&#1072;&#1095;<\/h2>\n<p>\n&#1059; &#1090;&#1077;&#1073;&#1103; &#1077;&#1089;&#1090;&#1100; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082; &#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1077;&#1083;&#1077;&#1081;, &#1080; &#1090;&#1099; &#1087;&#1086;&#1083;&#1091;&#1095;&#1072;&#1077;&#1096;&#1100; &#1085;&#1086;&#1074;&#1086;&#1075;&#1086;:<\/p>\n<p><strong>users = [&#8220;alice&#8221;, &#8220;bob&#8221;]<\/strong><\/p>\n<p><strong>new_user = &#8220;charlie&#8221;<\/strong><\/p>\n<p><strong>users.append(new_user)&nbsp; # [&#8216;alice&#8217;, &#8216;bob&#8217;, &#8216;charlie&#8217;]<\/strong><\/p>\n<p>&#1050;&#1086;&#1075;&#1076;&#1072; &#1087;&#1088;&#1080;&#1093;&#1086;&#1076;&#1080;&#1090; &#1089;&#1088;&#1072;&#1079;&#1091; &#1085;&#1077;&#1089;&#1082;&#1086;&#1083;&#1100;&#1082;&#1086; &#1085;&#1086;&#1074;&#1099;&#1093; &#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1077;&#1083;&#1077;&#1081;:<\/p>\n<p><strong>new_users = [&#8220;dave&#8221;, &#8220;eve&#8221;]<\/strong><\/p>\n<p><strong>users.extend(new_users)&nbsp; # [&#8216;alice&#8217;, &#8216;bob&#8217;, &#8216;charlie&#8217;, &#8216;dave&#8217;, &#8216;eve&#8217;]<\/strong>\n<\/p>\n<h2>&#1063;&#1072;&#1089;&#1090;&#1099;&#1077; &#1086;&#1096;&#1080;&#1073;&#1082;&#1080; &#1087;&#1088;&#1080; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1085;&#1080;&#1080; append() &#1080; extend()<\/h2>\n<p><strong>&#1053;&#1077;&#1087;&#1088;&#1072;&#1074;&#1080;&#1083;&#1100;&#1085;&#1086;&#1077; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1085;&#1080;&#1077; extend() &#1089;&#1086; &#1089;&#1090;&#1088;&#1086;&#1082;&#1072;&#1084;&#1080;<\/strong><\/p>\n<p>:<\/p>\n<p><em>names = [&#8220;Anna&#8221;]<\/em><\/p>\n<p><em>names.extend(&#8220;Max&#8221;)&nbsp; # [&#8216;Anna&#8217;, &#8216;M&#8217;, &#8216;a&#8217;, &#8216;x&#8217;] &#10060;<\/em><\/p>\n<p>&#1054;&#1078;&#1080;&#1076;&#1072;&#1077;&#1096;&#1100;, &#1095;&#1090;&#1086; &#1089;&#1090;&#1088;&#1086;&#1082;&#1072; &#8220;Max&#8221; &#1073;&#1091;&#1076;&#1077;&#1090; &#1076;&#1086;&#1073;&#1072;&#1074;&#1083;&#1077;&#1085;&#1072; &#1082;&#1072;&#1082; &#1086;&#1076;&#1080;&#1085; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090;? &#1048;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1091;&#1081; append():<\/p>\n<p><em>names.append(&#8220;Max&#8221;)&nbsp; # [&#8216;Anna&#8217;, &#8216;Max&#8217;] &#9989;<\/em><\/p>\n<p>&#1048;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1091;&#1077;&#1096;&#1100; extend() &#1089;&#1086; &#1089;&#1090;&#1088;&#1086;&#1082;&#1086;&#1081; &ndash; &#1087;&#1086;&#1083;&#1091;&#1095;&#1072;&#1077;&#1096;&#1100; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082; &#1080;&#1079; &#1089;&#1080;&#1084;&#1074;&#1086;&#1083;&#1086;&#1074;. &#1069;&#1090;&#1086; &#1085;&#1077; &#1092;&#1072;&#1090;&#1072;&#1083;&#1100;&#1085;&#1072;&#1103; &#1086;&#1096;&#1080;&#1073;&#1082;&#1072;, &#1085;&#1086; &#1088;&#1077;&#1079;&#1091;&#1083;&#1100;&#1090;&#1072;&#1090; &#1084;&#1086;&#1078;&#1077;&#1090; &#1089;&#1090;&#1072;&#1090;&#1100; &#1076;&#1083;&#1103; &#1090;&#1077;&#1073;&#1103; &#1085;&#1077;&#1086;&#1078;&#1080;&#1076;&#1072;&#1085;&#1085;&#1099;&#1084;!<\/p>\n<p><strong>&#1044;&#1086;&#1073;&#1072;&#1074;&#1083;&#1077;&#1085;&#1080;&#1077; &#1089;&#1087;&#1080;&#1089;&#1082;&#1072; &#1095;&#1077;&#1088;&#1077;&#1079; append(), &#1082;&#1086;&#1075;&#1076;&#1072; &#1085;&#1091;&#1078;&#1077;&#1085; extend()<\/strong>:<\/p>\n<p><em>nums = [1, 2]<\/em><\/p>\n<p><em>nums.append([3, 4])<\/em><\/p>\n<p><em># [1, 2, [3, 4]] &#10060;<\/em><\/p>\n<p><strong>&#1055;&#1088;&#1072;&#1074;&#1080;&#1083;&#1100;&#1085;&#1086;<\/strong>:<\/p>\n<p><em>nums.extend([3, 4])<\/em><\/p>\n<p><em># [1, 2, 3, 4] &#9989;<\/em><\/p>\n<p>&#1044;&#1086;&#1073;&#1072;&#1074;&#1083;&#1103;&#1077;&#1096;&#1100; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082; &#1095;&#1077;&#1088;&#1077;&#1079; append() &#1080; &#1091;&#1076;&#1080;&#1074;&#1083;&#1103;&#1077;&#1096;&#1100;&#1089;&#1103;, &#1087;&#1086;&#1095;&#1077;&#1084;&#1091; &#1087;&#1086;&#1103;&#1074;&#1083;&#1103;&#1102;&#1090;&#1089;&#1103; &#1074;&#1083;&#1086;&#1078;&#1077;&#1085;&#1085;&#1099;&#1077; &#1089;&#1087;&#1080;&#1089;&#1082;&#1080;? &#1058;&#1077;&#1087;&#1077;&#1088;&#1100; &#1090;&#1099; &#1079;&#1085;&#1072;&#1077;&#1096;&#1100;, &#1095;&#1090;&#1086; &#1101;&#1090;&#1086; &#1074;&#1087;&#1086;&#1083;&#1085;&#1077; &#1086;&#1078;&#1080;&#1076;&#1072;&#1077;&#1084;&#1086;&#1077; &#1087;&#1086;&#1074;&#1077;&#1076;&#1077;&#1085;&#1080;&#1077;!<\/p>\n<h2>&#1044;&#1088;&#1091;&#1075;&#1080;&#1077; &#1089;&#1087;&#1086;&#1089;&#1086;&#1073;&#1099; &#1076;&#1086;&#1073;&#1072;&#1074;&#1080;&#1090;&#1100; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090; &#1074; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082;<\/h2>\n<p>\n&#1042; <a href=\"https:\/\/goit.global\/ua-ru\/articles\/php-yly-python-chto-v-brat-y-v-chem-mezhdu-nymy-raznytsa\/\" target=\"_blank\" rel=\"noopener\">Python<\/a> &#1089;&#1091;&#1097;&#1077;&#1089;&#1090;&#1074;&#1091;&#1102;&#1090; &#1080; &#1076;&#1088;&#1091;&#1075;&#1080;&#1077; &#1084;&#1077;&#1090;&#1086;&#1076;&#1099; &#1076;&#1086;&#1073;&#1072;&#1074;&#1083;&#1077;&#1085;&#1080;&#1103; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090;&#1086;&#1074; &#1074; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082;.\n<\/p>\n<h3>&#1052;&#1077;&#1090;&#1086;&#1076; insert()<\/h3>\n<p>\n&#1058;&#1072;&#1082;&#1086;&#1081; &#1089;&#1087;&#1086;&#1089;&#1086;&#1073; &#1087;&#1086;&#1076;&#1093;&#1086;&#1076;&#1080;&#1090;, &#1077;&#1089;&#1083;&#1080; &#1085;&#1091;&#1078;&#1085;&#1086; &#1074;&#1089;&#1090;&#1072;&#1074;&#1080;&#1090;&#1100; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090; &#1074; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082; &#1085;&#1077; &#1074; &#1082;&#1086;&#1085;&#1077;&#1094;, &#1072; &#1074; &#1082;&#1086;&#1085;&#1082;&#1088;&#1077;&#1090;&#1085;&#1091;&#1102; &#1087;&#1086;&#1079;&#1080;&#1094;&#1080;&#1102;:<\/p>\n<p><strong>numbers = [1, 2, 4]<\/strong><\/p>\n<p><strong>numbers.insert(2, 3)<\/strong><\/p>\n<p><strong>print(numbers)&nbsp; # [1, 2, 3, 4]<\/strong>\n<\/p>\n<h3>&#1054;&#1087;&#1077;&#1088;&#1072;&#1090;&#1086;&#1088; +<\/h3>\n<p>\n&#1057; &#1101;&#1090;&#1080;&#1084; &#1084;&#1077;&#1090;&#1086;&#1076;&#1086;&#1084; &#1090;&#1099; &#1084;&#1086;&#1078;&#1077;&#1096;&#1100; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1100; &#1089;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1077; &#1089;&#1087;&#1080;&#1089;&#1082;&#1086;&#1074;:<\/p>\n<p><strong>list1 = [1, 2]<\/strong><\/p>\n<p><strong>list2 = [3, 4]<\/strong><\/p>\n<p><strong>result = list1 + list2<\/strong><\/p>\n<p><strong>print(result)&nbsp; # [1, 2, 3, 4]<\/strong><\/p>\n<p>&#1053;&#1086; &#1101;&#1090;&#1086; &#1089;&#1086;&#1079;&#1076;&#1072;&#1077;&#1090; &#1085;&#1086;&#1074;&#1099;&#1081; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082;, &#1072; &#1085;&#1077; &#1080;&#1079;&#1084;&#1077;&#1085;&#1103;&#1077;&#1090; &#1089;&#1091;&#1097;&#1077;&#1089;&#1090;&#1074;&#1091;&#1102;&#1097;&#1080;&#1081;.\n<\/p>\n<h3>&#1056;&#1072;&#1089;&#1096;&#1080;&#1088;&#1077;&#1085;&#1085;&#1099;&#1081; &#1089;&#1080;&#1085;&#1090;&#1072;&#1082;&#1089;&#1080;&#1089;<\/h3>\n<p>\n&#1058;&#1072;&#1082;&#1086;&#1081; &#1089;&#1087;&#1086;&#1089;&#1086;&#1073; &#1101;&#1082;&#1074;&#1080;&#1074;&#1072;&#1083;&#1077;&#1085;&#1090;&#1077;&#1085; extend().<\/p>\n<p><strong>list1 = [1, 2]<\/strong><\/p>\n<p><strong>list2 = [3, 4]<\/strong><\/p>\n<p><strong>list1 += list2<\/strong><\/p>\n<p><strong>print(list1)&nbsp; # [1, 2, 3, 4]<\/strong>\n<\/p>\n<h2>&#1042;&#1084;&#1077;&#1089;&#1090;&#1086; &#1080;&#1090;&#1086;&#1075;&#1072;<\/h2>\n<p>\n&#1052;&#1077;&#1090;&#1086;&#1076;&#1099; append() &#1080; extend() &ndash; &#1101;&#1090;&#1086; &#1086;&#1089;&#1085;&#1086;&#1074;&#1072; &#1076;&#1086;&#1073;&#1072;&#1074;&#1083;&#1077;&#1085;&#1080;&#1103; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090;&#1086;&#1074; &#1074; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082; &#1055;&#1072;&#1081;&#1090;&#1086;&#1085;. &#1054;&#1085;&#1080; &#1087;&#1086;&#1079;&#1074;&#1086;&#1083;&#1103;&#1102;&#1090; &#1075;&#1080;&#1073;&#1082;&#1086; &#1091;&#1087;&#1088;&#1072;&#1074;&#1083;&#1103;&#1090;&#1100; &#1089;&#1086;&#1076;&#1077;&#1088;&#1078;&#1080;&#1084;&#1099;&#1084; &#1089;&#1087;&#1080;&#1089;&#1082;&#1072; &#1080; &#1087;&#1080;&#1089;&#1072;&#1090;&#1100; &#1083;&#1072;&#1082;&#1086;&#1085;&#1080;&#1095;&#1085;&#1099;&#1081;, &#1087;&#1086;&#1085;&#1103;&#1090;&#1085;&#1099;&#1081; &#1082;&#1086;&#1076;. &#1045;&#1089;&#1083;&#1080; &#1090;&#1099; &#1088;&#1072;&#1073;&#1086;&#1090;&#1072;&#1077;&#1096;&#1100; &#1089; &#1084;&#1072;&#1089;&#1089;&#1080;&#1074;&#1072;&#1084;&#1080; &#1076;&#1072;&#1085;&#1085;&#1099;&#1093;, &#1080;&#1084;&#1087;&#1086;&#1088;&#1090;&#1080;&#1088;&#1091;&#1077;&#1096;&#1100; &#1089;&#1090;&#1088;&#1086;&#1082;&#1080; &#1080;&#1079; &#1092;&#1072;&#1081;&#1083;&#1086;&#1074; &#1080;&#1083;&#1080; &#1089;&#1090;&#1088;&#1086;&#1080;&#1096;&#1100; &#1089;&#1086;&#1073;&#1089;&#1090;&#1074;&#1077;&#1085;&#1085;&#1099;&#1077; &#1089;&#1090;&#1088;&#1091;&#1082;&#1090;&#1091;&#1088;&#1099; &#1076;&#1072;&#1085;&#1085;&#1099;&#1093; &ndash; &#1091;&#1084;&#1077;&#1085;&#1080;&#1077; &#1087;&#1088;&#1072;&#1074;&#1080;&#1083;&#1100;&#1085;&#1086; &#1076;&#1086;&#1073;&#1072;&#1074;&#1083;&#1103;&#1090;&#1100; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090;&#1099; &#1074; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082; &#1076;&#1077;&#1083;&#1072;&#1077;&#1090; &#1090;&#1074;&#1086;&#1081; &#1082;&#1086;&#1076; &#1095;&#1080;&#1097;&#1077; &#1080; &#1085;&#1072;&#1076;&#1077;&#1078;&#1085;&#1077;&#1077;.<\/p>\n<p>&#1058;&#1077;&#1087;&#1077;&#1088;&#1100;, &#1082;&#1086;&#1075;&#1076;&#1072; &#1090;&#1099; &#1079;&#1085;&#1072;&#1077;&#1096;&#1100;, &#1082;&#1072;&#1082; &#1076;&#1086;&#1073;&#1072;&#1074;&#1080;&#1090;&#1100; &#1101;&#1083;&#1077;&#1084;&#1077;&#1085;&#1090; &#1074; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082; Python, &#1090;&#1099; &#1084;&#1086;&#1078;&#1077;&#1096;&#1100; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1100; &#1101;&#1090;&#1080; &#1084;&#1077;&#1090;&#1086;&#1076;&#1099; &#1086;&#1089;&#1086;&#1079;&#1085;&#1072;&#1085;&#1085;&#1086;, &#1085;&#1077; &#1076;&#1086;&#1087;&#1091;&#1089;&#1082;&#1072;&#1103; &#1086;&#1096;&#1080;&#1073;&#1086;&#1082;. &#1061;&#1086;&#1095;&#1077;&#1096;&#1100; &#1076;&#1086;&#1073;&#1072;&#1074;&#1080;&#1090;&#1100; &#1095;&#1080;&#1089;&#1083;&#1086;, &#1089;&#1090;&#1088;&#1086;&#1082;&#1091; &#1080;&#1083;&#1080; &#1082;&#1086;&#1088;&#1090;&#1077;&#1078;? &#1058;&#1077;&#1087;&#1077;&#1088;&#1100; &#1090;&#1099; &#1079;&#1085;&#1072;&#1077;&#1096;&#1100;, &#1095;&#1090;&#1086; &#1080; &#1082;&#1072;&#1082; &#1087;&#1088;&#1080;&#1084;&#1077;&#1085;&#1103;&#1090;&#1100;!<\/p>\n<p>&#1040; &#1077;&#1089;&#1083;&#1080; &#1093;&#1086;&#1095;&#1077;&#1096;&#1100; &#1087;&#1086;&#1083;&#1085;&#1086;&#1089;&#1090;&#1100;&#1102; &#1087;&#1086;&#1075;&#1088;&#1091;&#1079;&#1080;&#1090;&#1100;&#1089;&#1103; &#1074; &#1080;&#1079;&#1091;&#1095;&#1077;&#1085;&#1080;&#1077; &#1055;&#1072;&#1081;&#1090;&#1086;&#1085;&#1072;, &#1087;&#1086;&#1087;&#1088;&#1086;&#1073;&#1091;&#1081; &#1089;&#1074;&#1086;&#1080; &#1089;&#1080;&#1083;&#1099; &#1085;&#1072; <a href=\"https:\/\/python-m-lp-ua.goit.global\/?amp%3Butm_medium=articles&#038;amp%3Butm_campaign=37623\" target=\"_blank\" rel=\"noopener\">&#1073;&#1077;&#1089;&#1087;&#1083;&#1072;&#1090;&#1085;&#1086;&#1084; &#1084;&#1072;&#1088;&#1072;&#1092;&#1086;&#1085;&#1077; GoIT<\/a>, &#1072; &#1087;&#1086;&#1090;&#1086;&#1084; &#1087;&#1088;&#1080;&#1093;&#1086;&#1076;&#1080; &#1085;&#1072; &#1082;&#1091;&#1088;&#1089;&#1099; <a href=\"https:\/\/goit.global\/ua-ru\/courses\/python-ds\/\" target=\"_blank\" rel=\"noopener\">Python Data Science<\/a> &#1080;&#1083;&#1080; <a href=\"https:\/\/goit.global\/ua-ru\/courses\/python\/\" target=\"_blank\" rel=\"noopener\">Python Software Engineering<\/a>, &#1095;&#1090;&#1086;&#1073;&#1099; &#1089;&#1090;&#1072;&#1090;&#1100; &#1087;&#1088;&#1086;&#1075;&#1088;&#1072;&#1084;&#1084;&#1080;&#1089;&#1090;&#1086;&#1084; &#1080; &#1087;&#1086;&#1083;&#1091;&#1095;&#1080;&#1090;&#1100; &#1087;&#1077;&#1088;&#1089;&#1087;&#1077;&#1082;&#1090;&#1080;&#1074;&#1085;&#1091;&#1102; &#1080; &#1074;&#1099;&#1089;&#1086;&#1082;&#1086;&#1086;&#1087;&#1083;&#1072;&#1095;&#1080;&#1074;&#1072;&#1077;&#1084;&#1091;&#1102; &#1087;&#1088;&#1086;&#1092;&#1077;&#1089;&#1089;&#1080;&#1102;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c append \u0438 extend, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u041f\u0430\u0439\u0442\u043e\u043d\u0430. \u0417\u0430\u043f\u0438\u0448\u0438\u0441\u044c \u043d\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u043c\u0430\u0440\u0430\u0444\u043e\u043d\u044b \u0438 \u043a\u0443\u0440\u0441\u044b GoIT!<\/p>\n","protected":false},"featured_media":37620,"menu_order":0,"template":"","meta":{"_acf_changed":false,"inline_featured_image":false},"categories":[12038],"tags":[],"class_list":["post-37623","articles","type-articles","status-publish","has-post-thumbnail","hentry","category-python-data-science"],"acf":[],"_links":{"self":[{"href":"https:\/\/goit.global\/ua-ru\/wp-json\/wp\/v2\/articles\/37623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/goit.global\/ua-ru\/wp-json\/wp\/v2\/articles"}],"about":[{"href":"https:\/\/goit.global\/ua-ru\/wp-json\/wp\/v2\/types\/articles"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/goit.global\/ua-ru\/wp-json\/wp\/v2\/media\/37620"}],"wp:attachment":[{"href":"https:\/\/goit.global\/ua-ru\/wp-json\/wp\/v2\/media?parent=37623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/goit.global\/ua-ru\/wp-json\/wp\/v2\/categories?post=37623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/goit.global\/ua-ru\/wp-json\/wp\/v2\/tags?post=37623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}