{"id":2291,"date":"2026-06-26T17:01:58","date_gmt":"2026-06-26T14:01:58","guid":{"rendered":"https:\/\/school.edu-sigma.ru\/blog\/?p=2291"},"modified":"2026-06-26T17:01:58","modified_gmt":"2026-06-26T14:01:58","slug":"python-variables-data-types","status":"publish","type":"post","link":"https:\/\/school.edu-sigma.ru\/blog\/python-variables-data-types\/","title":{"rendered":"\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Python: \u043f\u043e\u043b\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438"},"content":{"rendered":"<p>\u0412 Python \u0434\u0435\u0432\u044f\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445: \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0435 (int, float, complex), \u0441\u0442\u0440\u043e\u043a\u0438 (str), \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 (bool) \u0438 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 (list, tuple, dict, set). \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u043e\u0438\u0442 frozenset \u2014 \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u2014 \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 None. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0438\u043f \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u0434\u0430, \u043d\u0430\u0443\u0447\u0438\u043c\u0441\u044f \u0438\u0445 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c, \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0438 \u0441\u0430\u043c\u044b\u0435 \u0447\u0430\u0441\u0442\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438.<\/p>\n<h2>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0432 Python<\/h2>\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u2014 \u043d\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u0430 \u0438\u043c\u044f-\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438. \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u0430\u044f: \u043e\u0434\u043d\u0443 \u0438 \u0442\u0443 \u0436\u0435 \u044f\u0447\u0435\u0439\u043a\u0443 \u043f\u0430\u043c\u044f\u0442\u0438 \u043c\u043e\u0433\u0443\u0442 \u00ab\u0432\u0438\u0434\u0435\u0442\u044c\u00bb \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u0451\u043d \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e. \u041d\u0438\u0436\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0442\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438 \u0441\u043c\u0435\u043d\u0435 \u0442\u0438\u043f\u0430.<\/p>\n<h3>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f: \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1408\" height=\"768\" class=\"aligncenter size-full wp-image-2288\" src=\"https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/sintaksis-prisvaivaniya-python-chetyre-formy.jpg\" alt=\"\u0427\u0435\u0442\u044b\u0440\u0435 \u0444\u043e\u0440\u043c\u044b \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432 Python\" srcset=\"https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/sintaksis-prisvaivaniya-python-chetyre-formy.jpg 1408w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/sintaksis-prisvaivaniya-python-chetyre-formy-300x164.jpg 300w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/sintaksis-prisvaivaniya-python-chetyre-formy-1024x559.jpg 1024w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/sintaksis-prisvaivaniya-python-chetyre-formy-768x419.jpg 768w\" sizes=\"auto, (max-width: 1408px) 100vw, 1408px\" \/><\/p>\n<p>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 = \u0432 Python \u2014 \u044d\u0442\u043e \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435, \u0430 \u043d\u0435 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 (\u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 ==). \u041f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0435\u0432\u043e: \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c, \u043f\u043e\u0442\u043e\u043c \u0441\u0441\u044b\u043b\u043a\u0430 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u0441\u043b\u0435\u0432\u0430.<\/p>\n<p>Python \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0447\u0435\u0442\u044b\u0440\u0435 \u0444\u043e\u0440\u043c\u044b \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0435: x = 5<\/li>\n<li>\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435: a, b = 1, 2 \u2014 \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u0438\u043c\u0435\u043d\u0430\u043c<\/li>\n<li>\u0446\u0435\u043f\u043e\u0447\u0435\u0447\u043d\u043e\u0435: a = b = 0 \u2014 \u043e\u0431\u0430 \u0438\u043c\u0435\u043d\u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 \u043e\u0434\u0438\u043d \u043e\u0431\u044a\u0435\u043a\u0442<\/li>\n<li>\u043e\u0431\u043c\u0435\u043d: a, b = b, a \u2014 \u0431\u0435\u0437 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439<\/li>\n<\/ul>\n<p>\u0421\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b (+=, -=, *=, \/=) \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u044e\u0442 \u0437\u0430\u043f\u0438\u0441\u044c: x += 1 \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e x = x + 1.<\/p>\n<p>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u2014 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c del x. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442 \u0442\u0435\u0440\u044f\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u0438 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u043c \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0449\u0438\u043a\u0430 \u043c\u0443\u0441\u043e\u0440\u0430 (garbage collector) \u2014 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442 \u0437\u0430\u043d\u044f\u0442\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c.<\/p>\n<p>x = 5<\/p>\n<p>a, b = 1, 2<\/p>\n<p>a, b = b, a # \u043e\u0431\u043c\u0435\u043d \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438<\/p>\n<p>del x # \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0430<\/p>\n<h3>\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0441\u0442\u0438\u043b\u044c snake_case<\/h3>\n<p>\u0418\u043c\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0431\u0443\u043a\u0432\u044b, \u0446\u0438\u0444\u0440\u044b \u0438 \u0441\u0438\u043c\u0432\u043e\u043b _. \u041d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0441 \u0446\u0438\u0444\u0440\u044b \u043d\u0435\u043b\u044c\u0437\u044f: 2players = 4 \u2014 \u044d\u0442\u043e \u0443\u0436\u0435 SyntaxError.<\/p>\n<p>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442 PEP 8 (\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0441\u0442\u0438\u043b\u044e \u043a\u043e\u0434\u0430 Python) \u0437\u0430\u0434\u0430\u0451\u0442 \u0442\u0440\u0438 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li><strong>snake_case<\/strong> \u2014 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439: user_age, total_price<\/li>\n<li><strong>UPPER_CASE<\/strong> \u2014 \u0434\u043b\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442: MAX_SIZE, PI<\/li>\n<li><strong>CamelCase<\/strong> (\u043f\u0435\u0440\u0432\u0430\u044f \u0431\u0443\u043a\u0432\u0430 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u0430\u044f) \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432: UserProfile<\/li>\n<\/ul>\n<p>\u041d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 Python \u0432 \u0440\u043e\u043b\u0438 \u0438\u043c\u0451\u043d \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445: if, for, while, class, def, return, import, True, False, None \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u043b\u043e\u0432\u0430. \u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c class = &#171;10\u0410&#187; \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0432\u044b\u0437\u043e\u0432\u0435\u0442 SyntaxError.<\/p>\n<h3>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0438 \u0441\u0442\u0440\u043e\u0433\u0430\u044f \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f Python<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1408\" height=\"768\" class=\"aligncenter size-full wp-image-2289\" src=\"https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/dinamicheskaya-tipizaciya-python-infografika.jpg\" alt=\"\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f Python \u2014 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043c\u0435\u043d\u044f\u0435\u0442 \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445\" srcset=\"https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/dinamicheskaya-tipizaciya-python-infografika.jpg 1408w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/dinamicheskaya-tipizaciya-python-infografika-300x164.jpg 300w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/dinamicheskaya-tipizaciya-python-infografika-1024x559.jpg 1024w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/dinamicheskaya-tipizaciya-python-infografika-768x419.jpg 768w\" sizes=\"auto, (max-width: 1408px) 100vw, 1408px\" \/><\/p>\n<p>\u0412 Python \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0442 \u0434\u0432\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0442\u0438\u043f\u043e\u0432.<\/p>\n<p><strong>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f:<\/strong> \u0442\u0438\u043f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b (runtime), \u0430 \u043d\u0435 \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043a\u043e\u0434\u0430. \u041e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0438\u043c\u044f \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u043e, \u0441\u0442\u0440\u043e\u043a\u0443 \u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u2014 \u044d\u0442\u043e \u043b\u0435\u0433\u0430\u043b\u044c\u043d\u043e:<\/p>\n<p>x = 10 # int<\/p>\n<p>x = &#171;\u0434\u0435\u0441\u044f\u0442\u044c&#187; # str<\/p>\n<p>x = [1, 2, 3] # list<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0442\u0438\u043f \u2014 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 type(x): \u043e\u043d\u0430 \u0432\u0435\u0440\u043d\u0451\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, &lt;class &#8216;int&#8217;&gt;.<\/p>\n<p><strong>\u0421\u0442\u0440\u043e\u0433\u0430\u044f \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f:<\/strong> Python \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0435\u044f\u0432\u043d\u044b\u0445 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0439 \u043c\u0435\u0436\u0434\u0443 \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438. \u041f\u043e\u043f\u044b\u0442\u043a\u0430 &#171;1&#187; + 1 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 TypeError. \u0412 JavaScript &#171;1&#187; + 1 \u043c\u043e\u043b\u0447\u0430 \u0432\u0435\u0440\u043d\u0443\u043b\u043e \u0431\u044b &#171;11&#187; \u2014 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u0441\u0442\u0440\u043e\u0433\u043e\u0439 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438. \u0421\u0442\u0440\u043e\u0433\u043e\u0441\u0442\u044c Python \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u043e\u0442 \u0442\u0440\u0443\u0434\u043d\u043e\u0443\u043b\u043e\u0432\u0438\u043c\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0445.<\/p>\n<h3>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043a\u0430\u043a \u0441\u0441\u044b\u043b\u043a\u0430: \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 vs \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h3>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 list2 = list1, \u0432\u044b \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u2014 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0435 \u0432\u0442\u043e\u0440\u043e\u0435 \u0438\u043c\u044f, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043d\u0430 \u0442\u043e\u0442 \u0436\u0435 \u043e\u0431\u044a\u0435\u043a\u0442. \u0417\u043d\u0430\u0447\u0438\u0442, list2.append(4) \u0438\u0437\u043c\u0435\u043d\u0438\u0442 \u0438 list1:<\/p>\n<p>list1 = [1, 2, 3]<\/p>\n<p>list2 = list1<\/p>\n<p>list2.append(4)<\/p>\n<p>print(list1) # [1, 2, 3, 4]<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0443\u044e \u043a\u043e\u043f\u0438\u044e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 copy.deepcopy() (\u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435) \u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f copy:<\/p>\n<p>import copy<\/p>\n<p>list2 = copy.deepcopy(list1)<\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0445 (\u043d\u0435 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445) \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e list2 = list1[:] \u0438\u043b\u0438 list(list1). \u0413\u043b\u0443\u0431\u043e\u043a\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0443\u0436\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0440\u0443\u0433\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b.<\/p>\n<h2>\u0422\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Python: \u043f\u043e\u043b\u043d\u044b\u0439 \u043e\u0431\u0437\u043e\u0440<\/h2>\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Python \u043d\u0435\u043e\u0442\u0434\u0435\u043b\u0438\u043c\u044b \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430: \u0442\u0438\u043f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c, \u043a\u0430\u043a \u043e\u043d \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0433\u0434\u0435 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043d\u0438\u0436\u0435 \u2014 \u0432\u0441\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0442\u0438\u043f\u044b.<\/p>\n<table style=\"width: 100%; border-collapse: collapse; font-size: 14px;\">\n<thead>\n<tr>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u0422\u0438\u043f<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u041c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u0425\u0435\u0448\u0438\u0440\u0443\u0435\u043c\u044b\u0439<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<br \/>\n<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">int<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435\u0442<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">x = 42<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0426\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430, \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0438, \u0438\u043d\u0434\u0435\u043a\u0441\u044b<\/td>\n<\/tr>\n<tr style=\"background: #f9f9f9;\">\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">float<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435\u0442<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">x = 3.14<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0440\u043e\u0431\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430, \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">complex<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435\u0442<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">x = 3+4j<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0418\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0435 \u0438 \u043d\u0430\u0443\u0447\u043d\u044b\u0435 \u0440\u0430\u0441\u0447\u0451\u0442\u044b<\/td>\n<\/tr>\n<tr style=\"background: #f9f9f9;\">\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">str<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435\u0442<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">x = &#171;\u0442\u0435\u043a\u0441\u0442&#187;<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0422\u0435\u043a\u0441\u0442, \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">bool<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435\u0442<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">x = True<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0423\u0441\u043b\u043e\u0432\u0438\u044f, \u0444\u043b\u0430\u0433\u0438<\/td>\n<\/tr>\n<tr style=\"background: #f9f9f9;\">\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">list<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435\u0442<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">x = [1, 2]<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0423\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">tuple<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435\u0442<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">x = (1, 2)<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0424\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0431\u043e\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/td>\n<\/tr>\n<tr style=\"background: #f9f9f9;\">\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">dict<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435\u0442<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">x = {&#171;k&#187;: 1}<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043a\u043b\u044e\u0447-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, JSON<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">set<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435\u0442<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">x = {1, 2}<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0423\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b<\/td>\n<\/tr>\n<tr style=\"background: #f9f9f9;\">\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">frozenset<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435\u0442<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">x = frozenset({1, 2})<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0418\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e, \u043a\u043b\u044e\u0447 dict<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u041c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0435 (\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435) \u0442\u0438\u043f\u044b \u2014 list, dict, set. \u0418\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0435 (\u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435) \u2014 \u0432\u0441\u0451 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435. \u042d\u0442\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u043a\u0430\u043a\u0438\u0435 \u0442\u0438\u043f\u044b \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043a\u043b\u044e\u0447\u0438 \u0441\u043b\u043e\u0432\u0430\u0440\u044f \u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430.<\/p>\n<h3>\u0427\u0438\u0441\u043b\u043e\u0432\u044b\u0435 \u0442\u0438\u043f\u044b: int, float, complex<\/h3>\n<p><strong>\u0426\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 (<\/strong><strong>int<\/strong><strong>)<\/strong> \u0432 Python \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443 \u2014 \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 C++ \u0438\u043b\u0438 Java, \u0433\u0434\u0435 int \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0440\u043e\u0432\u043d\u043e 4 \u0431\u0430\u0439\u0442\u0430. \u041c\u043e\u0436\u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043a\u043e\u043b\u044c \u0443\u0433\u043e\u0434\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0447\u0438\u0441\u043b\u0430; \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u043f\u0430\u043c\u044f\u0442\u044c.<\/p>\n<p>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c: Python \u043a\u044d\u0448\u0438\u0440\u0443\u0435\u0442 (\u0438\u043d\u0442\u0435\u0440\u043d\u0438\u0440\u0443\u0435\u0442) \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0446\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u043e\u0442 \u22125 \u0434\u043e 256. \u0412 \u044d\u0442\u043e\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 a = 10; b = 10; a is b \u0432\u0435\u0440\u043d\u0451\u0442 True \u2014 \u043e\u0431\u0430 \u0438\u043c\u0435\u043d\u0438 \u0441\u0441\u044b\u043b\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u043e\u0434\u0438\u043d \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438. \u0417\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 \u044d\u0442\u043e\u0433\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.<\/p>\n<p>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b: \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \/\/, \u043e\u0441\u0442\u0430\u0442\u043e\u043a %, \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c **.<\/p>\n<p><strong>\u0427\u0438\u0441\u043b\u0430 \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 (<\/strong><strong>float<\/strong><strong>)<\/strong> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0443 IEEE 754 (\u043c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u044b\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b). \u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u2014 \u0442\u043e\u0447\u043a\u0430, \u043d\u0435 \u0437\u0430\u043f\u044f\u0442\u0430\u044f: price = 99.9. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043b\u043e\u0432\u0443\u0448\u043a\u0430: 0.1 + 0.2 \u0434\u0430\u0451\u0442 0.30000000000000004 \u0438\u0437-\u0437\u0430 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f. \u0414\u043b\u044f \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0445 \u0440\u0430\u0441\u0447\u0451\u0442\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043c\u043e\u0434\u0443\u043b\u044c decimal. \u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f round() \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0435 \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u2014 \u043a \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c\u0443 \u0447\u0451\u0442\u043d\u043e\u043c\u0443.<\/p>\n<p><strong>\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 (<\/strong><strong>complex<\/strong><strong>)<\/strong> \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u0441\u0443\u0444\u0444\u0438\u043a\u0441\u043e\u043c j: z = 3+4j. \u041f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0445 \u0440\u0430\u0441\u0447\u0451\u0442\u0430\u0445 \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432.<\/p>\n<p>a = 10 # int<\/p>\n<p>b = 3.14 # float<\/p>\n<p>c = 2 + 5j # complex<\/p>\n<p>print(type(b)) # &lt;class &#8216;float&#8217;&gt;<\/p>\n<h3>\u0421\u0442\u0440\u043e\u043a\u0438 str \u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h3>\n<p>\u0421\u0442\u0440\u043e\u043a\u0438 (str) \u0432 Python \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b: \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u00ab\u043d\u0430 \u043c\u0435\u0441\u0442\u0435\u00bb \u043d\u0435\u043b\u044c\u0437\u044f. \u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u043e\u0434\u0438\u043d\u0430\u0440\u043d\u044b\u0435 &#8216;\u0442\u0435\u043a\u0441\u0442&#8217;, \u0434\u0432\u043e\u0439\u043d\u044b\u0435 &#171;\u0442\u0435\u043a\u0441\u0442&#187; \u0438\u043b\u0438 \u0442\u0440\u043e\u0439\u043d\u044b\u0435 \u043a\u0430\u0432\u044b\u0447\u043a\u0438 &#171;&#187;&#187;\u043c\u043d\u043e\u0433\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442&#187;&#187;&#187;. Python \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 Unicode \u2014 \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u0430, \u044f\u043f\u043e\u043d\u0441\u043a\u0438\u0435 \u0438\u0435\u0440\u043e\u0433\u043b\u0438\u0444\u044b \u0438 \u044d\u043c\u043e\u0434\u0437\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0438\u043b\u0438\u0439.<\/p>\n<p>\u0421\u0440\u0435\u0437\u044b \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0443: s[1:3] \u2014 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0441 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u043c 1 \u0438 2; s[-1] \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b.<\/p>\n<p><strong>\u0421\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u2014 f-\u0441\u0442\u0440\u043e\u043a\u0438 (f-string)<\/strong>, \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u0432 Python 3.6+: f&#187;\u041f\u0440\u0438\u0432\u0435\u0442, {name}! \u0422\u0435\u0431\u0435 {age} \u043b\u0435\u0442.&#187; \u041e\u043d\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u044f\u043c\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a: f&#187;\u041a\u0432\u0430\u0434\u0440\u0430\u0442: {x**2}&#187;. \u0421\u0442\u0430\u0440\u044b\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u2014 %-\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043c\u0435\u0442\u043e\u0434 .format() \u2014 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u043d\u043e f-\u0441\u0442\u0440\u043e\u043a\u0438 \u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435 \u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u044b \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u0434\u0430.<\/p>\n<p>\u041a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u044f \u0441\u0442\u0440\u043e\u043a \u0447\u0435\u0440\u0435\u0437 += \u0432 \u0446\u0438\u043a\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 \u2014 \u044d\u0442\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u043f\u0440\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439. \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0435\u0435: \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u0438 \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 &#171;&#187;.join(parts).<\/p>\n<h3>\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0438\u043f bool<\/h3>\n<p>bool \u2014 \u043f\u043e\u0434\u0442\u0438\u043f int: True \u0440\u0430\u0432\u043d\u043e 1, False \u0440\u0430\u0432\u043d\u043e 0. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e True + True \u0434\u0430\u0451\u0442 2 \u2014 \u043b\u0435\u0433\u0430\u043b\u044c\u043d\u0430\u044f, \u0445\u043e\u0442\u044f \u0438 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f.<\/p>\n<p>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 Python \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u00ab\u043b\u043e\u0436\u043d\u044b\u043c\u0438\u00bb (falsy): False, 0, 0.0, None, &#171;&#187;, [], {}, (). \u0412\u0441\u0451 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u2014 \u00ab\u0438\u0441\u0442\u0438\u043d\u043d\u043e\u0435\u00bb (truthy).<\/p>\n<p>\u0420\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u043e\u0435 \u0437\u0430\u0431\u043b\u0443\u0436\u0434\u0435\u043d\u0438\u0435: bool(&#171;False&#187;) \u0432\u0435\u0440\u043d\u0451\u0442 True. \u041f\u0440\u0438\u0447\u0438\u043d\u0430: \u0441\u0442\u0440\u043e\u043a\u0430 &#171;False&#187; \u043d\u0435\u043f\u0443\u0441\u0442\u0430\u044f, \u0430 \u043d\u0435\u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u2014 truthy. \u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0438\u043f \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c\u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f: is_adult = age &gt;= 18.<\/p>\n<h3>\u0421\u043f\u0438\u0441\u043e\u043a (list) \u2014 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u0430\u044f \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f<\/h3>\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0432 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043a\u0430\u0445: fruits = [&#171;\u044f\u0431\u043b\u043e\u043a\u043e&#187;, &#171;\u0431\u0430\u043d\u0430\u043d&#187;, &#171;\u0432\u0438\u0448\u043d\u044f&#187;]. \u0418\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 0; \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u043e\u0442\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u043a\u043e\u043d\u0446\u0430: fruits[-1] \u0432\u0435\u0440\u043d\u0451\u0442 &#171;\u0432\u0438\u0448\u043d\u044f&#187;.<\/p>\n<p>\u0412\u043d\u0443\u0442\u0440\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u044b. \u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438:<\/p>\n<ul>\n<li>append(x) \u2014 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0435\u0446, O(1) (\u0437\u0430 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f)<\/li>\n<li>pop() \u2014 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439, O(1)<\/li>\n<li>insert(i, x) \u2014 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0443, O(n) (\u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0441\u0442\u0451\u0442 \u0441 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c)<\/li>\n<\/ul>\n<p>\u0421\u0440\u0435\u0437\u044b: fruits[0:2] \u0432\u0435\u0440\u043d\u0451\u0442 [&#171;\u044f\u0431\u043b\u043e\u043a\u043e&#187;, &#171;\u0431\u0430\u043d\u0430\u043d&#187;]; fruits[::2] \u2014 \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u0442\u043e\u0440\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442.<\/p>\n<p>nums = [3, 1, 4, 1, 5]<\/p>\n<p>nums.append(9)<\/p>\n<p>print(nums[0]) # 3<\/p>\n<p>print(nums[-1]) # 9<\/p>\n<h3>\u041a\u043e\u0440\u0442\u0435\u0436 (tuple) \u2014 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/h3>\n<p>\u041a\u043e\u0440\u0442\u0435\u0436 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0432 \u043a\u0440\u0443\u0433\u043b\u044b\u0445 \u0441\u043a\u043e\u0431\u043a\u0430\u0445: point = (50.45, 30.52). \u041e\u043d \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439: \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 TypeError. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u043a\u043e\u0440\u0442\u0435\u0436 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f.<\/p>\n<p>\u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0430 \u2014 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: x, y = (10, 20). \u041a\u043e\u0440\u0442\u0435\u0436 \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0437\u0430\u043f\u044f\u0442\u043e\u0439: single = (5,).<\/p>\n<p>\u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f: \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b (50.45, 30.52), \u0446\u0432\u0435\u0442 RGB (255, 128, 0), \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b (3, 11, 2). \u041a\u043e\u0440\u0442\u0435\u0436 \u0445\u0435\u0448\u0438\u0440\u0443\u0435\u043c\u044b\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043a\u043b\u044e\u0447 \u0441\u043b\u043e\u0432\u0430\u0440\u044f.<\/p>\n<h3>\u0421\u043b\u043e\u0432\u0430\u0440\u044c (dict) \u2014 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043a\u043b\u044e\u0447-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0421\u043b\u043e\u0432\u0430\u0440\u044c \u2014 \u0445\u0435\u0448-\u0442\u0430\u0431\u043b\u0438\u0446\u0430 (hash table): \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0449\u0430\u044f \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u043f\u043e \u043a\u043b\u044e\u0447\u0443 \u0437\u0430 O(1). \u041a\u043b\u044e\u0447\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0438\u043f \u2014 \u0441\u0442\u0440\u043e\u043a\u0430, \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0440\u0442\u0435\u0436, \u043d\u043e \u043d\u0435 \u0441\u043f\u0438\u0441\u043e\u043a.<\/p>\n<p>user = {&#171;name&#187;: &#171;\u0410\u043b\u0451\u0448\u0430&#187;, &#171;age&#187;: 16, &#171;city&#187;: &#171;\u041c\u043e\u0441\u043a\u0432\u0430&#187;}<\/p>\n<p>user[&#171;email&#187;] = &#171;a@mail.ru&#187; # \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c<\/p>\n<p>del user[&#171;city&#187;] # \u0443\u0434\u0430\u043b\u0438\u0442\u044c<\/p>\n<p>print(&#171;age&#187; in user) # True<\/p>\n<p>defaultdict \u0438\u0437 \u043c\u043e\u0434\u0443\u043b\u044f collections \u0437\u0430\u0434\u0430\u0451\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u043d\u043e\u0432\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u2014 \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u0440\u0438 \u043f\u043e\u0434\u0441\u0447\u0451\u0442\u0435 \u0438\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0435. \u0421\u043b\u043e\u0432\u0430\u0440\u044c \u2014 \u043f\u0440\u044f\u043c\u043e\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 JSON-\u043e\u0431\u044a\u0435\u043a\u0442\u0430: \u0441 dict \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0432\u0435\u0431-API.<\/p>\n<h3>\u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e (set) \u0438 frozenset<\/h3>\n<p>\u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0445\u0440\u0430\u043d\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0431\u0435\u0437 \u043f\u043e\u0440\u044f\u0434\u043a\u0430. \u041f\u043e\u0438\u0441\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u2014 O(1), \u0447\u0442\u043e \u0432 \u0440\u0430\u0437\u044b \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0440\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043e\u0431\u044a\u0451\u043c\u0435 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>tags = {&#171;python&#187;, &#171;code&#187;, &#171;python&#187;} # {&#171;python&#187;, &#171;code&#187;}<\/p>\n<p>\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0434 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430\u043c\u0438: \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 |, \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0435 &amp;, \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u044c -. \u0411\u044b\u0441\u0442\u0440\u0430\u044f \u0434\u0435\u0434\u0443\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430: unique = set(my_list).<\/p>\n<p><strong>frozenset<\/strong> \u2014 \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 frozenset \u0445\u0435\u0448\u0438\u0440\u0443\u0435\u043c\u044b\u0439, \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043a\u043b\u044e\u0447 \u0441\u043b\u043e\u0432\u0430\u0440\u044f dict \u0438 \u043a\u0430\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430. \u041e\u0431\u044b\u0447\u043d\u044b\u0439 set \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442: \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c set \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 set \u0432\u044b\u0437\u043e\u0432\u0435\u0442 TypeError.<\/p>\n<p>fs = frozenset({1, 2, 3})<\/p>\n<p>d = {fs: &#171;\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435&#187;} # \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e<\/p>\n<h2>\u041c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0435 \u0438 \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 Python<\/h2>\n<p><strong>\u041c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0435<\/strong> \u0442\u0438\u043f\u044b \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f: list, dict, set. <strong>\u0418\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0435<\/strong> \u043d\u0435 \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f: int, float, str, bool, tuple, frozenset, None.<\/p>\n<p>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435: \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u0440\u044f dict \u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 set. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u2014 \u0445\u0435\u0448\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c: \u0445\u0435\u0448 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f. \u0415\u0441\u043b\u0438 \u0431\u044b \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u044b\u043b \u043a\u043b\u044e\u0447\u043e\u043c, \u0435\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u043c\u0430\u043b\u043e \u0431\u044b \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0445\u0435\u0448-\u0442\u0430\u0431\u043b\u0438\u0446\u044b.<\/p>\n<p>\u0415\u0449\u0451 \u043e\u0434\u043d\u043e \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435: \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u00ab\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0435\u00bb \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, Python \u0441\u043e\u0437\u0434\u0430\u0451\u0442 <strong>\u043d\u043e\u0432\u044b\u0439<\/strong> \u043e\u0431\u044a\u0435\u043a\u0442 \u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u0435\u0433\u043e. \u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<p>s = &#171;hi&#187;<\/p>\n<p>s += &#171;!&#187;<\/p>\n<p># s \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 &#171;hi!&#187;, \u0430 &#171;hi&#187; \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<p>\u0414\u043b\u044f \u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u0430 \u0434\u0440\u0443\u0433\u0430\u044f: lst.append(5) \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u0442\u043e\u0442 \u0436\u0435 \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438. \u0412\u0441\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a, \u0443\u0432\u0438\u0434\u044f\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u2014 \u043e\u0442\u0441\u044e\u0434\u0430 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 list2 = list1.<\/p>\n<h2>\u0411\u0430\u0437\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438<\/h2>\n<p>\u0422\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u2014 print(), input() \u0438 type() \u2014 \u043d\u0443\u0436\u043d\u044b \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0443\u0440\u043e\u043a\u0430. \u0420\u044f\u0434\u043e\u043c \u0441 \u043d\u0438\u043c\u0438 \u0441\u0442\u043e\u0438\u0442 \u0433\u0440\u0443\u043f\u043f\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u043e\u0432: int(), float(), str(), bool(). \u0411\u0435\u0437 \u043d\u0438\u0445 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0432\u0432\u043e\u0434\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<h3>print(), input() \u0438 type() \u2014 \u0442\u0440\u0438 \u0433\u043b\u0430\u0432\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/h3>\n<p>print() \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u043c (sep=&#187; &#171;) \u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u043e\u043c (end=&#187;\\n&#187;). F-\u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e: print(f&#187;\u0412\u043e\u0437\u0440\u0430\u0441\u0442: {age}&#187;) \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c print(&#171;\u0412\u043e\u0437\u0440\u0430\u0441\u0442:&#187;, age).<\/p>\n<p>input() <strong>\u0432\u0441\u0435\u0433\u0434\u0430<\/strong> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 (str), \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0432\u0451\u043b \u0447\u0438\u0441\u043b\u043e. \u042d\u0442\u043e \u0447\u0430\u0441\u0442\u0430\u044f \u043b\u043e\u0432\u0443\u0448\u043a\u0430 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432:<\/p>\n<p>age = input(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u043e\u0437\u0440\u0430\u0441\u0442: &#171;)<\/p>\n<p>print(age + 1) # TypeError: can only concatenate str to str<\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435: age = int(input(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u043e\u0437\u0440\u0430\u0441\u0442: &#171;)).<\/p>\n<p>type() \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0442\u0438\u043f \u043e\u0431\u044a\u0435\u043a\u0442\u0430: type(3.14) \u0432\u0435\u0440\u043d\u0451\u0442 &lt;class &#8216;float&#8217;&gt;. \u041d\u0435\u0437\u0430\u043c\u0435\u043d\u0438\u043c \u043f\u0440\u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0435, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439 \u2014 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439 \u0442\u0438\u043f\u044b, \u043f\u043e\u0442\u043e\u043c \u0438\u0449\u0438 \u043f\u0440\u0438\u0447\u0438\u043d\u0443.<\/p>\n<h3>\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0438\u043f\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445: int(), float(), str(), bool()<\/h3>\n<p>\u042f\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0438\u043f\u043e\u0432 \u2014 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 Python. \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043d\u0438\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0438.<\/p>\n<table style=\"width: 100%; border-collapse: collapse; font-size: 14px;\">\n<thead>\n<tr>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u0424\u0443\u043d\u043a\u0446\u0438\u044f<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u041f\u0440\u0438\u043c\u0435\u0440<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u041b\u043e\u0432\u0443\u0448\u043a\u0430<br \/>\n<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">int()<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">int(&#171;25&#187;)<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">25 \u2705<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u2014<\/td>\n<\/tr>\n<tr style=\"background: #f9f9f9;\">\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">int()<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">int(3.99)<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">3 \u26a0\ufe0f<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435 \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u0435\u0442, \u0430 \u043e\u0431\u0440\u0435\u0437\u0430\u0435\u0442<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">int()<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">int(-1.9)<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">-1 \u26a0\ufe0f<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0422\u043e\u0436\u0435 \u043e\u0431\u0440\u0435\u0437\u0430\u0435\u0442, \u043d\u0435 \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u0435\u0442<\/td>\n<\/tr>\n<tr style=\"background: #f9f9f9;\">\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">bool()<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">bool(&#171;False&#187;)<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">True \u26a0\ufe0f<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435\u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u2014 truthy<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">bool()<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">bool(0)<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">False \u2705<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u2014<\/td>\n<\/tr>\n<tr style=\"background: #f9f9f9;\">\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">str()<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">str(42) + &#171;px&#187;<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">&#171;42px&#187; \u2705<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u2014<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">float()<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">float(&#171;3,14&#187;)<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">ValueError \u26a0\ufe0f<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0443\u0436\u043d\u0430 \u0442\u043e\u0447\u043a\u0430, \u043d\u0435 \u0437\u0430\u043f\u044f\u0442\u0430\u044f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0428\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430: n = int(input(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043b\u043e: &#171;)). \u0414\u043b\u044f \u0434\u0440\u043e\u0431\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 (\u0432\u0435\u0441, \u0446\u0435\u043d\u0430): price = float(input(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0446\u0435\u043d\u0443: &#171;)). \u0415\u0441\u043b\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0430\u0434\u0430\u0435\u0442 \u0441 TypeError \u2014 \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0442\u0438\u043f\u044b \u0447\u0435\u0440\u0435\u0437 type(), \u0437\u0430\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043d\u0443\u0436\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435.<\/p>\n<h2>\u041e\u0431\u043b\u0430\u0441\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432 Python<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1408\" height=\"768\" class=\"aligncenter size-full wp-image-2287\" src=\"https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/oblast-vidimosti-legb-piramida-python.jpg\" alt=\"\u041e\u0431\u043b\u0430\u0441\u0442\u0438 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 Python \u2014 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u0430 LEGB\" srcset=\"https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/oblast-vidimosti-legb-piramida-python.jpg 1408w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/oblast-vidimosti-legb-piramida-python-300x164.jpg 300w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/oblast-vidimosti-legb-piramida-python-1024x559.jpg 1024w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/oblast-vidimosti-legb-piramida-python-768x419.jpg 768w\" sizes=\"auto, (max-width: 1408px) 100vw, 1408px\" \/><\/p>\n<p>\u041e\u0431\u043b\u0430\u0441\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 (scope) \u2014 \u044d\u0442\u043e \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u0433\u0434\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043f\u043e \u0438\u043c\u0435\u043d\u0438.<\/p>\n<p><strong>\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f<\/strong> \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0430 \u0432\u043d\u0435 \u043b\u044e\u0431\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0432\u0438\u0434\u043d\u0430 \u0432\u0435\u0437\u0434\u0435 \u0432 \u043c\u043e\u0434\u0443\u043b\u0435. <strong>\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f<\/strong> \u0436\u0438\u0432\u0451\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438: \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u043d\u0435\u0439 \u0441\u043d\u0430\u0440\u0443\u0436\u0438 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 NameError.<\/p>\n<p>Python \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <strong>LEGB-\u043f\u0440\u0430\u0432\u0438\u043b\u043e<\/strong> \u2014 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043f\u043e\u0438\u0441\u043a\u0430 \u0438\u043c\u0435\u043d\u0438:<\/p>\n<ol>\n<li><strong>L<\/strong>ocal \u2014 \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/li>\n<li><strong>E<\/strong>nclosing \u2014 \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 (\u0434\u043b\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439)<\/li>\n<li><strong>G<\/strong>lobal \u2014 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043c\u043e\u0434\u0443\u043b\u044f<\/li>\n<li><strong>B<\/strong>uilt-in \u2014 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 Python (len, print, range \u0438 \u0434\u0440\u0443\u0433\u0438\u0435)<\/li>\n<\/ol>\n<p>\u0415\u0441\u043b\u0438 \u0438\u043c\u044f \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043d\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u2014 NameError.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e global:<\/p>\n<p>count = 0<\/p>\n<p>def increment():<\/p>\n<p>global count<\/p>\n<p>count += 1<\/p>\n<p>increment()<\/p>\n<p>print(count) # 1<\/p>\n<p>\u0411\u0435\u0437 global Python \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043d\u043e\u0432\u0443\u044e <strong>\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e<\/strong> \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e count \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0430 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043d\u0435\u0442\u0440\u043e\u043d\u0443\u0442\u043e\u0439. \u042d\u0442\u043e \u0441\u0430\u043c\u0430\u044f \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u0430\u044f \u043f\u0443\u0442\u0430\u043d\u0438\u0446\u0430 \u0441 \u043e\u0431\u043b\u0430\u0441\u0442\u044c\u044e \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0443 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445.<\/p>\n<h2>\u0427\u0430\u0441\u0442\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1408\" height=\"768\" class=\"aligncenter size-full wp-image-2286\" src=\"https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/chastyye-oshibki-python-nameerror-typeerror-syntaxerror.jpg\" alt=\"\u0427\u0430\u0441\u0442\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 Python: NameError, TypeError, SyntaxError\" srcset=\"https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/chastyye-oshibki-python-nameerror-typeerror-syntaxerror.jpg 1408w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/chastyye-oshibki-python-nameerror-typeerror-syntaxerror-300x164.jpg 300w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/chastyye-oshibki-python-nameerror-typeerror-syntaxerror-1024x559.jpg 1024w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/06\/chastyye-oshibki-python-nameerror-typeerror-syntaxerror-768x419.jpg 768w\" sizes=\"auto, (max-width: 1408px) 100vw, 1408px\" \/><\/p>\n<p>\u0422\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f Python.<\/p>\n<p><strong>NameError<\/strong> \u2014 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0430 \u0438\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0441 \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u043e\u0439:<\/p>\n<p>counetr = 0 # \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0430 \u0432 \u0438\u043c\u0435\u043d\u0438<\/p>\n<p>print(counter) # NameError: name &#8216;counter&#8217; is not defined<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0430 \u0434\u043e \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u043d\u0435\u0439. Python \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u043c\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0435 \u043d\u0430\u0448\u0451\u043b \u2014 \u044d\u0442\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u043f\u043e\u0438\u0441\u043a \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0438.<\/p>\n<p><strong>TypeError<\/strong> \u2014 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043d\u0430\u0434 \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438:<\/p>\n<p>age = input(&#171;\u0412\u043e\u0437\u0440\u0430\u0441\u0442: &#171;) # age \u2014 \u044d\u0442\u043e str<\/p>\n<p>print(age + 5) # TypeError: can only concatenate str to str<\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435: int(age) + 5 \u0438\u043b\u0438 f-\u0441\u0442\u0440\u043e\u043a\u0430 f&#187;\u0412\u0430\u043c {age} \u043b\u0435\u0442&#187;. \u041f\u0440\u0430\u0432\u0438\u043b\u043e: \u0435\u0441\u043b\u0438 \u043f\u0430\u0434\u0430\u0435\u0442 TypeError \u2014 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u044f\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 int(), str() \u0438\u043b\u0438 float().<\/p>\n<p><strong>SyntaxError<\/strong> \u2014 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430:<\/p>\n<p>2players = 4 # SyntaxError: \u0438\u043c\u044f \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0441 \u0446\u0438\u0444\u0440\u044b<\/p>\n<p>class = &#171;10\u0410&#187; # SyntaxError: class \u2014 \u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0441\u043b\u043e\u0432\u043e<\/p>\n<p>Python \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u043e\u043c\u0435\u0440 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439, \u043d\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u043d\u0435\u0440\u0435\u0434\u043a\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0432\u044b\u0448\u0435. \u041f\u0440\u0438 SyntaxError \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0438\u043c\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0441\u043a\u043e\u0431\u043a\u0438.<\/p>\n<h2>Python vs \u0434\u0440\u0443\u0433\u0438\u0435 \u044f\u0437\u044b\u043a\u0438: \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438<\/h2>\n<p>\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f \u2014 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u044f\u0437\u044b\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0435\u043c Python \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445, \u0443\u0434\u043e\u0431\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432.<\/p>\n<table style=\"width: 100%; border-collapse: collapse; font-size: 14px;\">\n<thead>\n<tr>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>Python<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>C++<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>Java<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>JavaScript<br \/>\n<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">\u0422\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f<\/td>\n<\/tr>\n<tr style=\"background: #f9f9f9;\">\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">\u0421\u0442\u0440\u043e\u0433\u043e\u0441\u0442\u044c<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0421\u0442\u0440\u043e\u0433\u0430\u044f<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0421\u0442\u0440\u043e\u0433\u0430\u044f<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0421\u0442\u0440\u043e\u0433\u0430\u044f<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435\u0441\u0442\u0440\u043e\u0433\u0430\u044f<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435 \u043d\u0443\u0436\u043d\u043e<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435 \u043d\u0443\u0436\u043d\u043e<\/td>\n<\/tr>\n<tr style=\"background: #f9f9f9;\">\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">\u0421\u043c\u0435\u043d\u0430 \u0442\u0438\u043f\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0417\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0417\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0430<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Python \u0438 JavaScript \u2014 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u044f\u0437\u044b\u043a\u0438. \u041d\u043e Python <strong>\u0441\u0442\u0440\u043e\u0433\u0438\u0439<\/strong>: \u043d\u0435\u044f\u0432\u043d\u044b\u0445 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0439 \u043d\u0435\u0442. JavaScript \u2014 \u043d\u0435\u0441\u0442\u0440\u043e\u0433\u0438\u0439: &#171;5&#187; + 5 \u043c\u043e\u043b\u0447\u0430 \u0434\u0430\u0441\u0442 &#171;55&#187;. C++ \u0438 Java \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u044f\u0432\u043d\u043e \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0442\u044c \u0442\u0438\u043f (int x = 5;) \u0438 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0435\u0433\u043e \u043c\u0435\u043d\u044f\u0442\u044c.<\/p>\n<p>\u0414\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u0430 Python \u043f\u0440\u043e\u0449\u0435: \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u0443\u043c\u0430\u0442\u044c \u043e \u0442\u0438\u043f\u0430\u0445 \u043f\u0440\u0438 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0438. \u0421\u0442\u0440\u043e\u0433\u043e\u0441\u0442\u044c \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u043e\u0442 \u0441\u043a\u0440\u044b\u0442\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445.<\/p>\n<h2>\u0427\u0442\u043e \u0438\u0437\u0443\u0447\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0442\u0438\u043f\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445<\/h2>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0441\u0432\u043e\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0442\u0438\u043f\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Python \u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u2014 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 if\/elif\/else, \u0437\u0430\u0442\u0435\u043c \u0446\u0438\u043a\u043b\u044b for\/while \u0441 range() \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 def\/return. \u0412\u043c\u0435\u0441\u0442\u0435 \u043e\u043d\u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c.<\/p>\n<p>\u041a\u0443\u0440\u0441 \u00ab\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435: \u0423\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u0441\u0442\u0430\u0440\u0442\u00bb \u043e\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0443\u0436\u0435 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u043c\u043e\u0434\u0443\u043b\u0435 \u2014 \u0441\u0440\u0430\u0437\u0443 \u0441 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f \u2014 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 Telegram-\u0431\u043e\u0442. \u041a\u0443\u0440\u0441 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 36 \u0447\u0430\u0441\u043e\u0432, \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043e\u043d\u043b\u0430\u0439\u043d \u0432 \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u0442\u0435\u043c\u043f\u0435 \u0438 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u043f\u044b\u0442\u0430.<\/p>\n<p>\u0425\u043e\u0442\u0438\u0442\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434, \u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0438\u0442\u0430\u0442\u044c \u043e \u043d\u0451\u043c? \u0423\u0437\u043d\u0430\u0439\u0442\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043d\u0430 <a style=\"color: #2c6fad; text-decoration: none;\" href=\"https:\/\/school.edu-sigma.ru\/\">\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043a\u0443\u0440\u0441\u0430 \u00ab\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435: \u0423\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u0441\u0442\u0430\u0440\u0442\u00bb<\/a>.<\/p>\n<h2>\u0427\u0430\u0441\u0442\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b<\/h2>\n<h3>\u0427\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0432 Python \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0432 C++ \u0438\u043b\u0438 Java?<\/h3>\n<p>\u0412 Python \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0442\u044c \u0442\u0438\u043f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u2014 \u043e\u043d \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0438 (\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f). \u0412 C++ \u0438 Java \u0442\u0438\u043f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u044f\u0432\u043d\u043e: int x = 5. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0432 Python \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u2014 \u044d\u0442\u043e \u0438\u043c\u044f-\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438, \u0430 \u043d\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0431\u043b\u043e\u043a \u043f\u0430\u043c\u044f\u0442\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430.<\/p>\n<h3>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 falsy-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u0447\u0435\u043c \u0438\u0445 \u0437\u043d\u0430\u0442\u044c?<\/h3>\n<p>Falsy \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 Python \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043a\u0430\u043a False \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u0438 if: False, 0, 0.0, None, &#171;&#187;, [], {}, (). \u0412\u0441\u0451 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u2014 truthy. \u0420\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430: if name: \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0435\u0441\u043b\u0438 name = &#171;&#187; (\u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430), \u0445\u043e\u0442\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0430. \u0417\u043d\u0430\u043d\u0438\u0435 falsy-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0431\u0435\u0437 \u044f\u0432\u043d\u043e\u0433\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0441 None \u0438\u043b\u0438 0.<\/p>\n<h3>\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u0435\u043d frozenset, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 set?<\/h3>\n<p>frozenset \u2014 \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e: frozenset \u0445\u0435\u0448\u0438\u0440\u0443\u0435\u043c\u044b\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043a\u043b\u044e\u0447 \u0441\u043b\u043e\u0432\u0430\u0440\u044f dict \u0438 \u043a\u0430\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430. \u041e\u0431\u044b\u0447\u043d\u044b\u0439 set \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u2014 \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c set \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 set \u0432\u044b\u0437\u043e\u0432\u0435\u0442 TypeError.<\/p>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 int(3.99) \u0434\u0430\u0451\u0442 3, \u0430 \u043d\u0435 4?<\/h3>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f int() \u043d\u0435 \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u0435\u0442 \u2014 \u043e\u043d\u0430 \u043e\u0431\u0440\u0435\u0437\u0430\u0435\u0442 \u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c. \u041b\u044e\u0431\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0446\u0435\u043b\u043e\u0435 \u043f\u0443\u0442\u0451\u043c \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439: int(3.99) = 3, int(-1.9) = -1. \u0414\u043b\u044f \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 round(), \u0434\u043b\u044f \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u0432\u0432\u0435\u0440\u0445 \u2014 math.ceil() \u0438\u0437 \u043c\u043e\u0434\u0443\u043b\u044f math.<\/p>\n<h3>\u0427\u0442\u043e \u0432\u0435\u0440\u043d\u0451\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0435\u0437 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 return?<\/h3>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0435\u0437 \u044f\u0432\u043d\u043e\u0433\u043e return \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 None \u0442\u0438\u043f\u0430 NoneType. None \u2014 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u044d\u0442\u043e\u0433\u043e \u0442\u0438\u043f\u0430, \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u00ab\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u00bb. \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438: if result is None: (\u0430 \u043d\u0435 == None). None \u0442\u0430\u043a\u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f falsy-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c.<\/p>\n<h3>\u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a, \u0447\u0442\u043e\u0431\u044b \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f?<\/h3>\n<p>\u041e\u0431\u044b\u0447\u043d\u043e\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 list2 = list1 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0432\u0442\u043e\u0440\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0442\u043e\u0442 \u0436\u0435 \u043e\u0431\u044a\u0435\u043a\u0442 \u2014 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 list2 \u0438\u0437\u043c\u0435\u043d\u0438\u0442 \u0438 list1. \u0414\u043b\u044f \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0439 \u043a\u043e\u043f\u0438\u0438: \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u0430\u044f \u2014 list2 = list1[:] \u0438\u043b\u0438 list(list1); \u0433\u043b\u0443\u0431\u043e\u043a\u0430\u044f, \u0441 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438 \u2014 import copy; list2 = copy.deepcopy(list1).<\/p>\n<h3>\u0427\u0435\u043c dict \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 list \u043f\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f?<\/h3>\n<p>list \u0445\u0440\u0430\u043d\u0438\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043f\u043e \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u043c\u0443 \u0438\u043d\u0434\u0435\u043a\u0441\u0443 (0, 1, 2\u2026), \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0439 \u043f\u043e\u0438\u0441\u043a \u2014 O(n). dict \u0445\u0440\u0430\u043d\u0438\u0442 \u043f\u0430\u0440\u044b \u043a\u043b\u044e\u0447-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0445\u0435\u0448-\u0442\u0430\u0431\u043b\u0438\u0446\u0435: \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u043a\u043b\u044e\u0447\u0443 \u2014 O(1). \u041a\u043b\u044e\u0447 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u043c: \u0441\u0442\u0440\u043e\u043a\u0430, \u0447\u0438\u0441\u043b\u043e, tuple. \u0412\u044b\u0431\u0438\u0440\u0430\u0439\u0442\u0435 dict, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0435\u0441\u0442\u044c \u0441\u043c\u044b\u0441\u043b\u043e\u0432\u044b\u0435 \u0438\u043c\u0435\u043d\u0430: \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043e\u0442\u0432\u0435\u0442 API.<\/p>\n<h3>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 LEGB \u0438 \u0437\u0430\u0447\u0435\u043c \u0435\u0433\u043e \u0437\u043d\u0430\u0442\u044c?<\/h3>\n<p>LEGB \u2014 \u043f\u043e\u0440\u044f\u0434\u043e\u043a, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c Python \u0438\u0449\u0435\u0442 \u0438\u043c\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439: <strong>L<\/strong>ocal (\u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438) \u2192 <strong>E<\/strong>nclosing (\u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438) \u2192 <strong>G<\/strong>lobal (\u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043c\u043e\u0434\u0443\u043b\u044f) \u2192 <strong>B<\/strong>uilt-in (\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 Python). \u0415\u0441\u043b\u0438 \u0438\u043c\u044f \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043d\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u2014 NameError. \u0417\u043d\u0430\u043d\u0438\u0435 LEGB \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442, \u043f\u043e\u0447\u0435\u043c\u0443 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u00ab\u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u00bb \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<h3>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0438\u043f \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439?<\/h3>\n<p>\u0414\u0430 \u2014 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438 Python. x = 10 (int) \u2192 x = &#171;\u0434\u0435\u0441\u044f\u0442\u044c&#187; (str) \u2192 x = [1, 2, 3] (list) \u2014 \u0432\u0441\u0451 \u044d\u0442\u043e \u043b\u0435\u0433\u0430\u043b\u044c\u043d\u043e. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043d\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u0430 \u043a \u0442\u0438\u043f\u0443: \u0441\u043c\u0435\u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0442\u0438\u043f: type(x).<\/p>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0438 \u0447\u0438\u0441\u043b\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e?<\/h3>\n<p>Python \u0441\u0442\u0440\u043e\u0433\u043e \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d: \u043e\u043d \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043d\u0435\u044f\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438. &#171;\u0412\u043e\u0437\u0440\u0430\u0441\u0442: &#187; + 25 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 TypeError. \u0420\u0435\u0448\u0435\u043d\u0438\u0435: &#171;\u0412\u043e\u0437\u0440\u0430\u0441\u0442: &#187; + str(25) \u0438\u043b\u0438 f-\u0441\u0442\u0440\u043e\u043a\u0430 f&#187;\u0412\u043e\u0437\u0440\u0430\u0441\u0442: {25}&#187;. \u0412 JavaScript &#171;\u0412\u043e\u0437\u0440\u0430\u0441\u0442: &#187; + 25 \u0434\u0430\u043b\u043e \u0431\u044b &#171;\u0412\u043e\u0437\u0440\u0430\u0441\u0442: 25&#187; \u2014 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u0441\u0442\u0440\u043e\u0433\u043e\u0439 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p><script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntityOfPage\": {\n    \"@type\": \"WebPage\",\n    \"@id\": \"https:\/\/school.edu-sigma.ru\/blog\/python-variables-data-types\/\"\n  },\n  \"mainEntity\": [\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u0427\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0432 Python \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0432 C++ \u0438\u043b\u0438 Java?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u0412 Python \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0442\u044c \u0442\u0438\u043f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u2014 \u043e\u043d \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0438 (\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f). \u0412 C++ \u0438 Java \u0442\u0438\u043f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u044f\u0432\u043d\u043e: int x = 5. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0432 Python \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u2014 \u044d\u0442\u043e \u0438\u043c\u044f-\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438, \u0430 \u043d\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0431\u043b\u043e\u043a \u043f\u0430\u043c\u044f\u0442\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 falsy-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u0447\u0435\u043c \u0438\u0445 \u0437\u043d\u0430\u0442\u044c?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Falsy \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 Python \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043a\u0430\u043a False \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u0438 if: False, 0, 0.0, None, \u00ab\u00ab, [], {}, (). \u0412\u0441\u0451 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u2014 truthy. \u0420\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430: if name: \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0435\u0441\u043b\u0438 name = \u00ab\u00ab (\u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430), \u0445\u043e\u0442\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0430. \u0417\u043d\u0430\u043d\u0438\u0435 falsy-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0431\u0435\u0437 \u044f\u0432\u043d\u043e\u0433\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0441 None \u0438\u043b\u0438 0.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u0435\u043d frozenset, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 set?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"frozenset \u2014 \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e: frozenset \u0445\u0435\u0448\u0438\u0440\u0443\u0435\u043c\u044b\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043a\u043b\u044e\u0447 \u0441\u043b\u043e\u0432\u0430\u0440\u044f dict \u0438 \u043a\u0430\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430. \u041e\u0431\u044b\u0447\u043d\u044b\u0439 set \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u2014 \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c set \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 set \u0432\u044b\u0437\u043e\u0432\u0435\u0442 TypeError.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u041f\u043e\u0447\u0435\u043c\u0443 int(3.99) \u0434\u0430\u0451\u0442 3, \u0430 \u043d\u0435 4?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u0424\u0443\u043d\u043a\u0446\u0438\u044f int() \u043d\u0435 \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u0435\u0442 \u2014 \u043e\u043d\u0430 \u043e\u0431\u0440\u0435\u0437\u0430\u0435\u0442 \u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c. \u041b\u044e\u0431\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0446\u0435\u043b\u043e\u0435 \u043f\u0443\u0442\u0451\u043c \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439: int(3.99) = 3, int(-1.9) = -1. \u0414\u043b\u044f \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 round(), \u0434\u043b\u044f \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u0432\u0432\u0435\u0440\u0445 \u2014 math.ceil() \u0438\u0437 \u043c\u043e\u0434\u0443\u043b\u044f math.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u0427\u0442\u043e \u0432\u0435\u0440\u043d\u0451\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0435\u0437 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 return?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0435\u0437 \u044f\u0432\u043d\u043e\u0433\u043e return \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 None \u0442\u0438\u043f\u0430 NoneType. None \u2014 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u044d\u0442\u043e\u0433\u043e \u0442\u0438\u043f\u0430, \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u00ab\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u00bb. \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438: if result is None: (\u0430 \u043d\u0435 == None). None \u0442\u0430\u043a\u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f falsy-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a, \u0447\u0442\u043e\u0431\u044b \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u041e\u0431\u044b\u0447\u043d\u043e\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 list2 = list1 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0432\u0442\u043e\u0440\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0442\u043e\u0442 \u0436\u0435 \u043e\u0431\u044a\u0435\u043a\u0442 \u2014 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 list2 \u0438\u0437\u043c\u0435\u043d\u0438\u0442 \u0438 list1. \u0414\u043b\u044f \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0439 \u043a\u043e\u043f\u0438\u0438: \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u0430\u044f \u2014 list2 = list1[:] \u0438\u043b\u0438 list(list1); \u0433\u043b\u0443\u0431\u043e\u043a\u0430\u044f, \u0441 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438 \u2014 import copy; list2 = copy.deepcopy(list1).\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u0427\u0435\u043c dict \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 list \u043f\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"list \u0445\u0440\u0430\u043d\u0438\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043f\u043e \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u043c\u0443 \u0438\u043d\u0434\u0435\u043a\u0441\u0443 (0, 1, 2\u2026), \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0439 \u043f\u043e\u0438\u0441\u043a \u2014 O(n). dict \u0445\u0440\u0430\u043d\u0438\u0442 \u043f\u0430\u0440\u044b \u043a\u043b\u044e\u0447-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0445\u0435\u0448-\u0442\u0430\u0431\u043b\u0438\u0446\u0435: \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u043a\u043b\u044e\u0447\u0443 \u2014 O(1). \u041a\u043b\u044e\u0447 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u043c: \u0441\u0442\u0440\u043e\u043a\u0430, \u0447\u0438\u0441\u043b\u043e, tuple. \u0412\u044b\u0431\u0438\u0440\u0430\u0439\u0442\u0435 dict, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0435\u0441\u0442\u044c \u0441\u043c\u044b\u0441\u043b\u043e\u0432\u044b\u0435 \u0438\u043c\u0435\u043d\u0430: \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043e\u0442\u0432\u0435\u0442 API.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 LEGB \u0438 \u0437\u0430\u0447\u0435\u043c \u0435\u0433\u043e \u0437\u043d\u0430\u0442\u044c?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"LEGB \u2014 \u043f\u043e\u0440\u044f\u0434\u043e\u043a, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c Python \u0438\u0449\u0435\u0442 \u0438\u043c\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439: Local (\u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438) \u2192 Enclosing (\u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438) \u2192 Global (\u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043c\u043e\u0434\u0443\u043b\u044f) \u2192 Built-in (\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 Python). \u0415\u0441\u043b\u0438 \u0438\u043c\u044f \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043d\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u2014 NameError. \u0417\u043d\u0430\u043d\u0438\u0435 LEGB \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442, \u043f\u043e\u0447\u0435\u043c\u0443 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u00ab\u043f\u0435\u0440\u0435\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u00bb \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0438\u043f \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u0414\u0430 \u2014 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438 Python. x = 10 (int) \u2192 x = \u00ab\u0434\u0435\u0441\u044f\u0442\u044c\u00ab (str) \u2192 x = [1, 2, 3] (list) \u2014 \u0432\u0441\u0451 \u044d\u0442\u043e \u043b\u0435\u0433\u0430\u043b\u044c\u043d\u043e. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043d\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u0430 \u043a \u0442\u0438\u043f\u0443: \u0441\u043c\u0435\u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0442\u0438\u043f: type(x).\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0438 \u0447\u0438\u0441\u043b\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Python \u0441\u0442\u0440\u043e\u0433\u043e \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d: \u043e\u043d \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043d\u0435\u044f\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438. \u00ab\u0412\u043e\u0437\u0440\u0430\u0441\u0442: \u00ab + 25 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 TypeError. \u0420\u0435\u0448\u0435\u043d\u0438\u0435: \u00ab\u0412\u043e\u0437\u0440\u0430\u0441\u0442: \u00ab + str(25) \u0438\u043b\u0438 f-\u0441\u0442\u0440\u043e\u043a\u0430 f\u00ab\u0412\u043e\u0437\u0440\u0430\u0441\u0442: {25}\u00ab. \u0412 JavaScript \u00ab\u0412\u043e\u0437\u0440\u0430\u0441\u0442: \u00ab + 25 \u0434\u0430\u043b\u043e \u0431\u044b \u00ab\u0412\u043e\u0437\u0440\u0430\u0441\u0442: 25\u00ab \u2014 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u0441\u0442\u0440\u043e\u0433\u043e\u0439 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438.\"\n      }\n    }\n  ]\n}\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"singleBlog__desc\">\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0432 Python \u2014 \u044d\u0442\u043e \u0438\u043c\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438. \u0422\u0438\u043f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f: \u043d\u0430\u043f\u0438\u0441\u0430\u043b x = 10 \u2014 Python \u0441\u043e\u0437\u0434\u0430\u043b \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043d\u0430\u043f\u0438\u0441\u0430\u043b x = &#171;\u0442\u0435\u043a\u0441\u0442&#187; \u2014 \u0441\u043e\u0437\u0434\u0430\u043b \u0441\u0442\u0440\u043e\u043a\u0443. \u042d\u0442\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0435\u0439 (dynamic typing). \u041f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Python, \u2014 \u0437\u043d\u0430\u0447\u0438\u0442 \u043e\u0441\u0432\u043e\u0438\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u0443, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043b\u044e\u0431\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430.<\/p>\n","protected":false},"author":1,"featured_media":2290,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"cta-position":"main","cta-status":false,"cta-priority":50,"cta-tags":"","id-post-1":0,"id-post-2":0,"id-post-3":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2291","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-career"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/posts\/2291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/comments?post=2291"}],"version-history":[{"count":2,"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/posts\/2291\/revisions"}],"predecessor-version":[{"id":2302,"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/posts\/2291\/revisions\/2302"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/media\/2290"}],"wp:attachment":[{"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/media?parent=2291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/categories?post=2291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/tags?post=2291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}