{"id":110,"date":"2021-04-23T14:28:36","date_gmt":"2021-04-23T11:28:36","guid":{"rendered":"https:\/\/floop.top\/ru\/?p=110"},"modified":"2022-01-28T17:35:41","modified_gmt":"2022-01-28T14:35:41","slug":"python","status":"publish","type":"post","link":"https:\/\/floop.top\/ru\/python\/","title":{"rendered":"\u041a\u0430\u043a \u0438\u0437\u0443\u0447\u0438\u0442\u044c Python \u0432 2022 \u2014 [\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e] \ud83d\udd25"},"content":{"rendered":"\n<h2 id=\"introductiontopython\">\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 Python<\/h2>\n\n\n\n<p>Python \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0436\u0438\u0440\u0430\u0435\u0442 \u043c\u0438\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.&nbsp;\u0415\u0433\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u044c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u0431\u0435\u0441\u043f\u0440\u0435\u0446\u0435\u0434\u0435\u043d\u0442\u043d\u044b\u043c\u0438 \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u0432.<\/p>\n\n\n\n<p>Python \u043f\u0440\u0435\u0432\u043e\u0441\u0445\u043e\u0434\u0435\u043d \u0432 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 &#8212; \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438&nbsp;<strong>\u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438<\/strong>&nbsp;,&nbsp;<strong>\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0437\u0430\u0434\u0430\u0447<\/strong>&nbsp;\u0438&nbsp;<strong>\u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430<\/strong>&nbsp;&#8212; \u044d\u0442\u043e \u043b\u0438\u0448\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b.<\/p>\n\n\n\n<p>Python &#8212; \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u0434\u043b\u044f&nbsp;<strong>\u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/strong>&nbsp;\u0438&nbsp;<strong>\u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f<\/strong>&nbsp;, \u043d\u043e \u043e\u043d \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438\u0433\u0440 \u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438.<\/p>\n\n\n\n<p>\u0427\u0442\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u043e, \u044d\u0442\u043e \u044f\u0437\u044b\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0431\u0438\u0440\u0430\u044e\u0442 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u043d\u044b\u0445&nbsp;<strong>\u043a\u0443\u0440\u0441\u043e\u0432<\/strong>&nbsp;\u043f\u043e&nbsp;<strong>\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0435<\/strong>&nbsp;\u0432 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0430\u0445 \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043c\u0438\u0440\u0443.<\/p>\n\n\n\n<p>\u041c\u043d\u043e\u0433\u0438\u0435 \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u044b \u0438\u0437\u0443\u0447\u0430\u044e\u0442 Python \u043a\u0430\u043a \u0441\u0432\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.&nbsp;\u041c\u043d\u043e\u0433\u0438\u0435 \u0438\u0437\u0443\u0447\u0430\u044e\u0442 \u0435\u0433\u043e \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441, \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u0437\u0443\u0447\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c.&nbsp;\u0418 \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u0438\u0437 \u043d\u0438\u0445 Python \u0431\u0443\u0434\u0435\u0442 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c \u043d\u0443\u0436\u0435\u043d.<\/p>\n\n\n\n<p>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044e Python, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0442\u0438 \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c.<\/p>\n\n\n\n<p>\u042f\u0437\u044b\u043a \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439.<\/p>\n\n\n\n<p>\u042d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043e\u0433\u0440\u043e\u043c\u043d\u0430.&nbsp;\u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u0435\u0441\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0433\u043e, \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c.<\/p>\n\n\n\n<p>Python &#8212; \u044d\u0442\u043e \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u044b\u0441\u043e\u043a\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f, \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0441\u0432\u043e\u0435\u043c\u0443 \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u043c\u0443 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0443, \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u043c\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0443 \u0438 \u044f\u0440\u043a\u043e\u0439 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435.<\/p>\n\n\n\n<p>\u0415\u0433\u043e \u0442\u0430\u043a\u0436\u0435 \u0446\u0435\u043d\u044f\u0442 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044b \u0432 \u0441\u0430\u043c\u044b\u0445 \u0440\u0430\u0437\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u0441\u0442\u044f\u0445.<\/p>\n\n\n\n<p>\u0421 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f Python &#8212; \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u044f\u0437\u044b\u043a, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435\u0442 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0439 \u0444\u0430\u0437\u044b \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438, \u043a\u0430\u043a \u0443 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 C \u0438\u043b\u0438 Java.<\/p>\n\n\n\n<p>\u0418, \u043a\u0430\u043a \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u044f\u0437\u044b\u043a\u0438, \u043e\u043d \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d.&nbsp;\u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u0438\u043f\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435, \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043d\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u044b \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u0442\u0438\u043f\u0443.<\/p>\n\n\n\n<p>\u0412 \u044d\u0442\u043e\u043c \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u043b\u044e\u0441\u044b \u0438 \u043c\u0438\u043d\u0443\u0441\u044b.&nbsp;\u0412 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u0432\u044b \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043f\u0438\u0448\u0435\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043d\u043e, \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0432\u0430\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a.&nbsp;\u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u044b \u0443\u0437\u043d\u0430\u0435\u0442\u0435 \u043e\u0431 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445, \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.<\/p>\n\n\n\n<p>Python \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0448\u0438\u0440\u043e\u043a\u0438\u0439 \u0441\u043f\u0435\u043a\u0442\u0440 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u0434\u0438\u0433\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435.&nbsp;\u041e\u043d \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0433\u0438\u0431\u043a\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0443 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u0435\u0439.<\/p>\n\n\n\n<p>\u041d\u0430\u0447\u0430\u0442\u044c \u0441 Python \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e.&nbsp;\u0412\u0441\u0435, \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e, \u044d\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 \u0441 python.org \u0434\u043b\u044f Windows, macOS \u0438\u043b\u0438 Linux, \u0438 \u0432\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e.<\/p>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u043e\u0432\u0438\u0447\u043e\u043a \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438, \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043f\u043e\u0441\u0442\u0430\u0445 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0441 \u043d\u0443\u043b\u044f \u0441\u0442\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u043c \u043d\u0430 Python.<\/p>\n\n\n\n<p>\u0418 \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u044b \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0449\u0438\u0439\u0441\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u044f\u0437\u044b\u043a\u0435, Python &#8212; \u044d\u0442\u043e \u044f\u0437\u044b\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u043e\u0438\u0442 \u0437\u043d\u0430\u0442\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044f \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0441 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0441\u0442\u0438.<\/p>\n\n\n\n<p>\u042f\u0437\u044b\u043a\u0438 \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a C ++ \u0438 Rust, \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u043c\u0438 \u0434\u043b\u044f \u043e\u043f\u044b\u0442\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432, \u043d\u043e \u043e\u043d\u0438 \u043f\u0443\u0433\u0430\u044e\u0449\u0438\u0435 \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u0430, \u0438 \u043d\u0430 \u0438\u0445 \u043e\u0441\u0432\u043e\u0435\u043d\u0438\u0435 \u0443\u0445\u043e\u0434\u0438\u0442 \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n\n\n\n<p>Python, \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, &#8212; \u044d\u0442\u043e \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u0441\u0435\u0445: \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u043e\u0432, \u043b\u044e\u0434\u0435\u0439, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0438\u0445 \u0441\u0432\u043e\u044e \u043f\u043e\u0432\u0441\u0435\u0434\u043d\u0435\u0432\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 Excel, \u0443\u0447\u0435\u043d\u044b\u0445 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-thumbs-up\"><p>\u042d\u0442\u043e \u044f\u0437\u044b\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0443\u0447\u0438\u0442\u044c \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043a\u0430\u0436\u0434\u044b\u0439, \u043a\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c&nbsp;.<\/p><\/blockquote>\n\n\n\n<h2 id=\"howtoinstallpython\">\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Python<\/h2>\n\n\n\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043d\u0430&nbsp;<a href=\"https:\/\/www.python.org\/\">https:\/\/www.python.org<\/a>&nbsp;, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043c\u0435\u043d\u044e \u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0432\u043e\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0438 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u043f\u0430\u043d\u0435\u043b\u044c \u0441\u043e \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"657\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screenshot-at-apr-23-14-15-59-1024x657.png\" alt=\"\" class=\"wp-image-113\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screenshot-at-apr-23-14-15-59-1024x657.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screenshot-at-apr-23-14-15-59-300x192.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screenshot-at-apr-23-14-15-59-768x493.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screenshot-at-apr-23-14-15-59-624x400.png 624w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screenshot-at-apr-23-14-15-59-24x15.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screenshot-at-apr-23-14-15-59-36x23.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screenshot-at-apr-23-14-15-59-48x31.png 48w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screenshot-at-apr-23-14-15-59.png 1247w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"657\"><\/span><\/figure>\n\n\n\n<p>\u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u044b \u0441\u043b\u0435\u0434\u0443\u0435\u0442\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.&nbsp;\u0412 macOS \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043d\u0430&nbsp;<a href=\"https:\/\/flaviocopes.com\/python-installation-macos\/\">https:\/\/flaviocopes.com\/python-installation-macos\/<\/a>&nbsp;.<\/p>\n\n\n\n<h2 id=\"howtorunpythonprograms\">\u041a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 Python<\/h2>\n\n\n\n<p>\u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c Python.<\/p>\n\n\n\n<p>\u0412 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043e\u043a, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0432\u0432\u043e\u0434\u0438\u0442\u0435 \u043a\u043e\u0434 Python, \u0438 \u043e\u043d \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f, \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b Python \u0432 \u0444\u0430\u0439\u043b \u0438 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c.<\/p>\n\n\n\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043e\u043a.<\/p>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0435 \u0441\u0432\u043e\u0439 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0438 \u043d\u0430\u0431\u0435\u0440\u0435\u0442\u0435&nbsp;<code>python<\/code>, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0442\u0430\u043a\u043e\u0439 \u044d\u043a\u0440\u0430\u043d:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"433\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-13.44.07-1024x433.png\" alt=\"\" class=\"wp-image-114\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-13.44.07-1024x433.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-13.44.07-300x127.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-13.44.07-768x324.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-13.44.07-1536x649.png 1536w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-13.44.07-870x368.png 870w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-13.44.07-24x10.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-13.44.07-36x15.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-13.44.07-48x20.png 48w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-13.44.07.png 1960w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"433\"><\/span><\/figure>\n\n\n\n<p>\u042d\u0442\u043e Python REPL (Read-Evaluate-Print-Loop).<\/p>\n\n\n\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430&nbsp;<code>&gt;&gt;&gt;<\/code>\u0441\u0438\u043c\u0432\u043e\u043b \u0438 \u043a\u0443\u0440\u0441\u043e\u0440 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0433\u043e.&nbsp;\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0432\u0435\u0441\u0442\u0438 \u0437\u0434\u0435\u0441\u044c \u043b\u044e\u0431\u043e\u0439 \u043a\u043e\u0434 Python \u0438 \u043d\u0430\u0436\u0430\u0442\u044c&nbsp;<code>enter<\/code>\u043a\u043b\u0430\u0432\u0438\u0448\u0443, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0435\u0433\u043e.<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Flavio\"\n<\/code><\/pre>\n\n\n\n<p>\u0430 \u0437\u0430\u0442\u0435\u043c \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0439\u0442\u0435 \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>print()<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(name)\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"492\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.11.57-1024x492.png\" alt=\"\" class=\"wp-image-115\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.11.57-1024x492.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.11.57-300x144.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.11.57-768x369.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.11.57-1536x738.png 1536w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.11.57-833x400.png 833w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.11.57-24x12.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.11.57-36x17.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.11.57-48x23.png 48w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.11.57.png 1828w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"492\"><\/span><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0432 REPL \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0432\u0435\u0441\u0442\u0438&nbsp;<code>name<\/code>, \u043d\u0430\u0436\u0430\u0442\u044c&nbsp;<code>enter<\/code>\u043a\u043b\u0430\u0432\u0438\u0448\u0443, \u0438 \u0432\u044b \u0432\u0435\u0440\u043d\u0435\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.&nbsp;\u041d\u043e \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u0432\u044b \u043d\u0435 \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0430, \u0435\u0441\u043b\u0438 \u0432\u044b \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u0442\u0435 &#8212; \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e&nbsp;<code>print()<\/code>\u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;.<\/p><\/blockquote>\n\n\n\n<p>\u041b\u044e\u0431\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 Python, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435, \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e.<\/p>\n\n\n\n<p>\u0412\u0432\u0435\u0434\u0438\u0442\u0435,&nbsp;<code>quit()<\/code>\u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0439\u0442\u0438 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e Python REPL.<\/p>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0442\u043e\u0439 \u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 IDLE, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 Python \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"452\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.13.25-1024x452.png\" alt=\"\" class=\"wp-image-116\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.13.25-1024x452.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.13.25-300x133.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.13.25-768x339.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.13.25-870x384.png 870w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.13.25-24x11.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.13.25-36x16.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.13.25-48x21.png 48w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.13.25.png 1394w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"452\"><\/span><\/figure>\n\n\n\n<p>\u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u0434\u043b\u044f \u0432\u0430\u0441, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u044b\u0448\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f \u0438 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \/ \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043b\u0435\u0433\u0447\u0435, \u0447\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430.<\/p>\n\n\n\n<p>\u042d\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441 Python \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.&nbsp;\u041e\u0434\u043d\u0430\u043a\u043e \u044f \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u0430\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c&nbsp;<a href=\"https:\/\/ipython.org\/\">IPython<\/a>&nbsp;, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u043b\u0443\u0447\u0448\u0435\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 REPL \u0434\u043b\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438.<\/p>\n\n\n\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install ipython\n<\/code><\/pre>\n\n\n\n<p>\u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b pip \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u043f\u0443\u0442\u0438, \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435&nbsp;<code>ipython<\/code>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"589\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-11-at-09.36.29-1024x589.png\" alt=\"\" class=\"wp-image-117\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-11-at-09.36.29-1024x589.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-11-at-09.36.29-300x173.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-11-at-09.36.29-768x442.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-11-at-09.36.29-1536x884.png 1536w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-11-at-09.36.29-695x400.png 695w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-11-at-09.36.29-24x14.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-11-at-09.36.29-36x21.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-11-at-09.36.29-48x28.png 48w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-11-at-09.36.29.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"589\"><\/span><\/figure>\n\n\n\n<p><code>ipython<\/code>&nbsp;&#8212; \u044d\u0442\u043e \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0430\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 Python REPL \u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0430 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430, \u0430\u0432\u0442\u043e\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.<\/p>\n\n\n\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 Python &#8212; \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u0434 Python \u0432 \u0444\u0430\u0439\u043b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440&nbsp;<code>program.py<\/code>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"416\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.24-1024x416.png\" alt=\"\" class=\"wp-image-118\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.24-1024x416.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.24-300x122.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.24-768x312.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.24-1536x624.png 1536w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.24-870x353.png 870w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.24-24x10.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.24-36x15.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.24-48x19.png 48w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.24.png 1916w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"416\"><\/span><\/figure>\n\n\n\n<p>\u0430 \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0435\u0433\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>python program.py<\/code>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"416\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.32-1024x416.png\" alt=\"\" class=\"wp-image-119\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.32-1024x416.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.32-300x122.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.32-768x312.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.32-1536x624.png 1536w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.32-870x353.png 870w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.32-24x10.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.32-36x15.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.32-48x19.png 48w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.01.32.png 1916w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"416\"><\/span><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043c\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b Python \u0441&nbsp;<code>.py<\/code>\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c &#8212; \u044d\u0442\u043e \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435.<\/p><\/blockquote>\n\n\n\n<p>\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u0430 \u043d\u0435 \u043f\u043e \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0437\u0430 \u0440\u0430\u0437.&nbsp;\u0418 \u043c\u044b \u043e\u0431\u044b\u0447\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a.<\/p>\n\n\n\n<p>\u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c REPL \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u043e\u0432 \u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f.<\/p>\n\n\n\n<p>\u0412 Linux \u0438 macOS \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 Python \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u0435\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u043c\u0443 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0443\u044e, \u043a\u0430\u043a\u043e\u0439 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430.<\/p>\n\n\n\n<p>\u0412 \u043c\u043e\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b Python&nbsp;<code>\/usr\/bin\/python3<\/code>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0432\u0432\u043e\u0436\u0443&nbsp;<code>#!\/usr\/bin\/python3<\/code>\u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"492\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.17.26-1024x492.png\" alt=\"\" class=\"wp-image-120\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.17.26-1024x492.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.17.26-300x144.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.17.26-768x369.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.17.26-1536x738.png 1536w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.17.26-833x400.png 833w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.17.26-24x12.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.17.26-36x17.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.17.26-48x23.png 48w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.17.26.png 1828w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"492\"><\/span><\/figure>\n\n\n\n<p>\u0417\u0430\u0442\u0435\u043c \u044f \u043c\u043e\u0433\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod u+x program.py\n<\/code><\/pre>\n\n\n\n<p>\u0438 \u044f \u043c\u043e\u0433\u0443 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0441<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/program.py\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"456\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.18.42-1024x456.png\" alt=\"\" class=\"wp-image-121\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.18.42-1024x456.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.18.42-300x134.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.18.42-768x342.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.18.42-870x387.png 870w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.18.42-24x11.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.18.42-36x16.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.18.42-48x21.png 48w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.18.42.png 1410w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"456\"><\/span><\/figure>\n\n\n\n<p>\u042d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u043e\u043c.<\/p>\n\n\n\n<p>\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b Python.<\/p>\n\n\n\n<p>\u041e\u0434\u0438\u043d \u0438\u0437 \u043d\u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 VS Code \u0438, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 Python \u043e\u0442 Microsoft:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"708\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.23.32-1024x708.png\" alt=\"\" class=\"wp-image-122\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.23.32-1024x708.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.23.32-300x207.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.23.32-768x531.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.23.32-1536x1062.png 1536w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.23.32-578x400.png 578w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.23.32-24x17.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.23.32-36x25.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.23.32-48x33.png 48w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.23.32.png 2000w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"708\"><\/span><\/figure>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u044d\u0442\u043e\u0433\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 Python \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043e\u0448\u0438\u0431\u043e\u043a, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043b\u0438\u043d\u0442\u0438\u043d\u0433 \u043a\u043e\u0434\u0430&nbsp;<code>pylint<\/code>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435:<\/p>\n\n\n\n<p><strong>Python: \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 REPL,<\/strong>&nbsp;\u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c REPL \u0432\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u043c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"641\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.36-1024x641.png\" alt=\"\" class=\"wp-image-123\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.36-1024x641.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.36-300x188.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.36-768x481.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.36-1536x962.png 1536w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.36-2048x1283.png 2048w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.36-639x400.png 639w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.36-24x15.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.36-36x23.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.36-48x30.png 48w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"641\"><\/span><\/figure>\n\n\n\n<p><strong>Python: \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0444\u0430\u0439\u043b Python \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435,<\/strong>&nbsp;\u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0444\u0430\u0439\u043b \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"641\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.06-1024x641.png\" alt=\"\" class=\"wp-image-124\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.06-1024x641.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.06-300x188.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.06-768x481.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.06-1536x962.png 1536w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.06-2048x1283.png 2048w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.06-639x400.png 639w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.06-24x15.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.06-36x23.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.31.06-48x30.png 48w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"641\"><\/span><\/figure>\n\n\n\n<p><strong>Python: \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0444\u0430\u0439\u043b \u0432 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u043e\u043a\u043d\u0435 Python<\/strong>&nbsp;:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"641\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-1-1024x641.png\" alt=\"\" class=\"wp-image-125\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-1-1024x641.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-1-300x188.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-1-768x481.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-1-1536x962.png 1536w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-1-2048x1283.png 2048w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-1-639x400.png 639w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-1-24x15.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-1-36x23.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-1-48x30.png 48w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"641\"><\/span><\/figure>\n\n\n\n<p>\u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.&nbsp;\u041f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043f\u0430\u043b\u0438\u0442\u0440\u0443 \u043a\u043e\u043c\u0430\u043d\u0434 (\u0412\u0438\u0434 -&gt; \u041f\u0430\u043b\u0438\u0442\u0440\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 \u0438\u043b\u0438 Cmd-Shift-P) \u0438 \u0432\u0432\u0435\u0434\u0438\u0442\u0435,&nbsp;<code>python<\/code>\u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432\u0441\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 Python:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"641\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-1024x641.png\" alt=\"\" class=\"wp-image-126\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-1024x641.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-300x188.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-768x481.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-1536x962.png 1536w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-2048x1283.png 2048w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-639x400.png 639w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-24x15.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-36x23.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.30.02-48x30.png 48w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"641\"><\/span><\/figure>\n\n\n\n<p>\u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u043f\u043e\u0441\u043e\u0431 \u043b\u0435\u0433\u043a\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u0434 Python &#8212; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c repl.it, \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0440\u0435\u0434\u0443 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u044f\u0437\u044b\u043a\u0435, \u0432\u043a\u043b\u044e\u0447\u0430\u044f Python:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"940\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.33.58-1024x940.png\" alt=\"\" class=\"wp-image-127\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.33.58-1024x940.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.33.58-300x275.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.33.58-768x705.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.33.58-1536x1410.png 1536w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.33.58-2048x1880.png 2048w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.33.58-436x400.png 436w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.33.58-24x22.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.33.58-36x33.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.33.58-48x44.png 48w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"940\"><\/span><\/figure>\n\n\n\n<p>\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044c (\u044d\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e), \u0437\u0430\u0442\u0435\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u00ab\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u00bb \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Python:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"779\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.46.34-1024x779.png\" alt=\"\" class=\"wp-image-128\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.46.34-1024x779.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.46.34-300x228.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.46.34-768x584.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.46.34-1536x1169.png 1536w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.46.34-2048x1559.png 2048w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.46.34-526x400.png 526w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.46.34-24x18.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.46.34-36x27.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.46.34-48x37.png 48w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"779\"><\/span><\/figure>\n\n\n\n<p>\u0438 \u0432\u0430\u043c \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0441&nbsp;<code>main.py<\/code>\u0444\u0430\u0439\u043b\u043e\u043c, \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043a \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043a\u043e\u0434\u0430 Python:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"779\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.47.15-1024x779.png\" alt=\"\" class=\"wp-image-129\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.47.15-1024x779.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.47.15-300x228.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.47.15-768x584.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.47.15-1536x1169.png 1536w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.47.15-2048x1559.png 2048w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.47.15-526x400.png 526w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.47.15-24x18.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.47.15-36x27.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.47.15-48x37.png 48w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"779\"><\/span><\/figure>\n\n\n\n<p>\u041a\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u043e\u0434, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u00ab\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c\u00bb, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u043f\u0440\u0430\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043e\u043a\u043d\u0430:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span itemprop=\"image\" itemscope itemtype=\"https:\/\/schema.org\/ImageObject\"><img itemprop=\"url image\" loading=\"lazy\" width=\"1024\" height=\"779\" src=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.48.09-1024x779.png\" alt=\"\" class=\"wp-image-130\" srcset=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.48.09-1024x779.png 1024w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.48.09-300x228.png 300w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.48.09-768x584.png 768w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.48.09-1536x1169.png 1536w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.48.09-2048x1559.png 2048w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.48.09-526x400.png 526w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.48.09-24x18.png 24w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.48.09-36x27.png 36w, https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/screen-shot-2020-11-10-at-14.48.09-48x37.png 48w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><meta itemprop=\"width\" content=\"1024\"><meta itemprop=\"height\" content=\"779\"><\/span><\/figure>\n\n\n\n<p>\u042f \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0440\u0435\u043f\u043b. \u042d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e:<\/p>\n\n\n\n<ul><li>\u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043a\u043e\u0434\u043e\u043c, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u0432\u0448\u0438\u0441\u044c \u0441\u0441\u044b\u043b\u043a\u043e\u0439<\/li><li>\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0434 \u043e\u0434\u043d\u0438\u043c \u0438 \u0442\u0435\u043c \u0436\u0435 \u043a\u043e\u0434\u043e\u043c<\/li><li>\u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u0434\u043e\u043b\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/li><li>\u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b<\/li><li>\u043e\u043d \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0430\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 &#171;\u043a\u043b\u044e\u0447-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435&#187; \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.<\/li><\/ul>\n\n\n\n<h2 id=\"python2vspython3\">Python 2 \u043f\u0440\u043e\u0442\u0438\u0432 Python 3<\/h2>\n\n\n\n<p>\u041e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0442\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u0430, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 Python 2 \u0438 Python 3.<\/p>\n\n\n\n<p>Python 3 \u0431\u044b\u043b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432 2008 \u0433\u043e\u0434\u0443 \u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0441\u044f \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043a\u0430\u043a \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f Python, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a Python 2 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u043b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u043f\u0430\u0442\u0447\u0430\u043c\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0434\u043e \u043d\u0430\u0447\u0430\u043b\u0430 2020 \u0433\u043e\u0434\u0430.<\/p>\n\n\n\n<p>\u0412 \u0442\u043e\u0442 \u0434\u0435\u043d\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Python 2 \u0431\u044b\u043b\u0430 \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0435\u043d\u0430.<\/p>\n\n\n\n<p>\u041c\u043d\u043e\u0433\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432\u0441\u0435 \u0435\u0449\u0435 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Python 2, \u0438 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0441\u0435 \u0435\u0449\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043d\u0430\u0434 \u043d\u0438\u043c\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 Python 3 \u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u0435\u043d \u0438 \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u044b.&nbsp;\u0410 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0438 \u0432\u0430\u0436\u043d\u044b\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u0438\u0432\u043e\u0434\u044f\u0442 \u043a \u043d\u043e\u0432\u044b\u043c \u043e\u0448\u0438\u0431\u043a\u0430\u043c.<\/p>\n\n\n\n<p>\u041d\u043e \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u0434, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u043b, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0432\u0430\u0448\u0435\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 Python 2, \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 Python 3.<\/p>\n\n\n\n<h2 id=\"pythonbasics\">\u041e\u0441\u043d\u043e\u0432\u044b Python<\/h2>\n\n\n\n<h3 id=\"variablesinpython\">\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 Python<\/h3>\n\n\n\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e Python, \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0442\u043a\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>=<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f.<\/p>\n\n\n\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043c\u044b \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u043c&nbsp;<code>name<\/code>\u043c\u0435\u0442\u043a\u0435&nbsp;\u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u00ab\u0420\u043e\u0434\u0436\u0435\u0440\u00bb&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"\n<\/code><\/pre>\n\n\n\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0441 \u0447\u0438\u0441\u043b\u043e\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>age = 8\n<\/code><\/pre>\n\n\n\n<p>\u0418\u043c\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u0446\u0438\u0444\u0440 \u0438&nbsp;<code>_<\/code>\u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u044f.&nbsp;\u042d\u0442\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0441 \u0447\u0438\u0441\u043b\u0430.&nbsp;\u042d\u0442\u043e \u0432\u0441\u0435&nbsp;<strong>\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435<\/strong>&nbsp;\u0438\u043c\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name1\nAGE\naGE\na11111\nmy_name\n_name\n<\/code><\/pre>\n\n\n\n<p>\u042d\u0442\u043e&nbsp;<strong>\u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435<\/strong>&nbsp;\u0438\u043c\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>123\ntest!\nname%\n<\/code><\/pre>\n\n\n\n<p>\u041a\u0440\u043e\u043c\u0435 \u044d\u0442\u043e\u0433\u043e, \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e \u0432\u0441\u0435, \u043a\u0440\u043e\u043c\u0435&nbsp;<strong>\u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430<\/strong>&nbsp;Python&nbsp;.&nbsp;\u0415\u0441\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 ,&nbsp;\u043a\u0430\u043a&nbsp;<code>for<\/code>,&nbsp;<code>if<\/code>,&nbsp;<code>while<\/code>,&nbsp;<code>import<\/code>\u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0435.<\/p>\n\n\n\n<p>\u041d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u0438\u0445, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 Python \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u0442 \u0432\u0430\u0441, \u0435\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u043e\u0434\u043d\u0443 \u0438\u0437 \u043d\u0438\u0445 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u0438 \u0432\u044b \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0443\u0437\u043d\u0430\u0435\u0442\u0435 \u0438\u0445 \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u044c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430 \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Python.<\/p>\n\n\n\n<h3 id=\"expressionsandstatementsinpython\">\u0412\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u0432 Python<\/h3>\n\n\n\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c&nbsp;<em>\u0432\u044b\u0440\u0430\u0437\u0438\u0442\u044c<\/em>&nbsp;\u043b\u044e\u0431\u043e\u0439 \u043a\u043e\u0434, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0438\u0439 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.&nbsp;\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1 + 1\n\"Roger\"\n<\/code><\/pre>\n\n\n\n<p>\u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 &#8212; \u044d\u0442\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043d\u0430\u0434 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c.&nbsp;\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u044d\u0442\u043e 2 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"\nprint(name)\n<\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0441\u0435\u0440\u0438\u0438 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0439.&nbsp;\u041a\u0430\u0436\u0434\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443, \u043d\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u0447\u043a\u0443 \u0441 \u0437\u0430\u043f\u044f\u0442\u043e\u0439, \u0447\u0442\u043e\u0431\u044b \u0438\u043c\u0435\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"; print(name)\n<\/code><\/pre>\n\n\n\n<h3 id=\"comments\">\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438<\/h3>\n\n\n\n<p>\u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 Python \u0432\u0441\u0435, \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0445\u0435\u0448-\u043c\u0435\u0442\u043a\u0438, \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#this is a commented line\n\nname = \"Roger\" # this is an inline comment\n<\/code><\/pre>\n\n\n\n<h3 id=\"indentationinpython\">\u041e\u0442\u0441\u0442\u0443\u043f\u044b \u0432 Python<\/h3>\n\n\n\n<p>\u041e\u0442\u0441\u0442\u0443\u043f\u044b \u0432 Python \u0438\u043c\u0435\u044e\u0442 \u0441\u043c\u044b\u0441\u043b.<\/p>\n\n\n\n<p>\u0412\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u043e\u0442\u0441\u0442\u0443\u043f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Flavio\"\n    print(name)\n<\/code><\/pre>\n\n\n\n<p>\u0412 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u0430\u0445 \u043d\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u043c\u044b\u0445 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432, \u043d\u043e \u0432 Python \u043e\u0442\u0441\u0442\u0443\u043f\u044b \u0438\u043c\u0435\u044e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n\n\n\n<p>\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435&nbsp;<code>IndentationError: unexpected indent<\/code>\u043e\u0448\u0438\u0431\u043a\u0443, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u0442\u0441\u0442\u0443\u043f \u0438\u043c\u0435\u0435\u0442 \u043e\u0441\u043e\u0431\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n\n\n\n<p>\u0412\u0441\u0435 \u0441 \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u043c \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u0431\u043b\u043e\u043a\u0443, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u043c\u0443 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443, \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u043c\u0443 \u0431\u043b\u043e\u043a\u0443, \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u043b\u0438 \u0442\u0435\u043b\u0443 \u043a\u043b\u0430\u0441\u0441\u0430.&nbsp;\u041f\u043e\u0437\u0436\u0435 \u043c\u044b \u0443\u0437\u043d\u0430\u0435\u043c \u043e \u043d\u0438\u0445 \u0431\u043e\u043b\u044c\u0448\u0435.<\/p>\n\n\n\n<h2 id=\"datatypesinpython\">\u0422\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Python<\/h2>\n\n\n\n<p>Python \u0438\u043c\u0435\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432.<\/p>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u0442\u0435&nbsp;<code>name<\/code>\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0432 \u0435\u0439 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u00abRoger\u00bb, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u044d\u0442\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442&nbsp;\u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445&nbsp;<strong>String<\/strong>&nbsp;.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0442\u0438\u043f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>type()<\/code>\u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043f\u0435\u0440\u0435\u0434\u0430\u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430, \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u0440\u0430\u0432\u043d\u0438\u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441&nbsp;<code>str<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"\ntype(name) == str #True\n<\/code><\/pre>\n\n\n\n<p>\u0418\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>isinstance()<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"\nisinstance(name, str) #True\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-style-warning\"><p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c&nbsp;<code>True<\/code>\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 Python \u0432\u043d\u0435 REPL, \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0432\u043d\u0443\u0442\u0440\u044c&nbsp;<code>print()<\/code>, \u043d\u043e \u0434\u043b\u044f \u044f\u0441\u043d\u043e\u0441\u0442\u0438 \u044f \u0438\u0437\u0431\u0435\u0433\u0430\u044e \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.<\/p><\/blockquote>\n\n\n\n<p>\u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438&nbsp;<code>str<\/code>\u0437\u0434\u0435\u0441\u044c \u043a\u043b\u0430\u0441\u0441, \u043d\u043e \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0442\u0438\u043f\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n\n\n\n<p>\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0447\u0438\u0441\u043b\u0430.&nbsp;\u0426\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>int<\/code>\u043a\u043b\u0430\u0441\u0441\u0430.&nbsp;\u0427\u0438\u0441\u043b\u0430 \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 (\u0434\u0440\u043e\u0431\u0438) \u0438\u043c\u0435\u044e\u0442 \u0442\u0438\u043f&nbsp;<code>float<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>age = 1\ntype(age) == int #True\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>fraction = 0.1\ntype(fraction) == float #True\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u0432\u0438\u0434\u0435\u043b\u0438, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0438\u043f \u0438\u0437 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Flavio\"\nage = 20\n<\/code><\/pre>\n\n\n\n<p>Python \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0442\u0438\u043f \u043f\u043e \u0442\u0438\u043f\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<\/p>\n\n\n\n<p>\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043a\u043b\u0430\u0441\u0441\u0430, \u043f\u0435\u0440\u0435\u0434\u0430\u0432 \u043b\u0438\u0442\u0435\u0440\u0430\u043b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0438\u043c\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = str(\"Flavio\")\nanotherName = str(name)\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0442\u0438\u043f \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430.&nbsp;Python \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u044f \u0447\u0438\u0441\u043b\u043e \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>age = int(\"20\")\nprint(age) #20\n\nfraction = 0.1\nintFraction = int(fraction)\nprint(intFraction) #0\n<\/code><\/pre>\n\n\n\n<p>\u042d\u0442\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f&nbsp;<strong>\u043a\u0430\u0441\u0442\u0438\u043d\u0433\u043e\u043c<\/strong>&nbsp;.&nbsp;\u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u044d\u0442\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.&nbsp;\u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0430\u043f\u0438\u0448\u0435\u0442\u0435&nbsp;<code>test<\/code>\u0432\u043c\u0435\u0441\u0442\u043e&nbsp;<code>20<\/code>\u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u044b\u0448\u0435, \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435&nbsp;<code>ValueError: invalid literal for int() with base 10: 'test'<\/code>\u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435.<\/p>\n\n\n\n<p>\u042d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u043d\u043e\u0432\u044b \u0442\u0438\u043f\u043e\u0432.&nbsp;\u0423 \u043d\u0430\u0441 \u0432 Python \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0442\u0438\u043f\u043e\u0432:<\/p>\n\n\n\n<ul><li><code>complex<\/code>&nbsp;\u0434\u043b\u044f \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b<\/li><li><code>bool<\/code>&nbsp;\u0434\u043b\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439<\/li><li><code>list<\/code>&nbsp;\u0434\u043b\u044f \u0441\u043f\u0438\u0441\u043a\u043e\u0432<\/li><li><code>tuple<\/code>&nbsp;\u0434\u043b\u044f \u043a\u043e\u0440\u0442\u0435\u0436\u0435\u0439<\/li><li><code>range<\/code>&nbsp;\u0434\u043b\u044f \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u043e\u0432<\/li><li><code>dict<\/code>&nbsp;\u0434\u043b\u044f \u0441\u043b\u043e\u0432\u0430\u0440\u0435\u0439<\/li><li><code>set<\/code>&nbsp;\u0434\u043b\u044f \u043d\u0430\u0431\u043e\u0440\u043e\u0432<\/li><\/ul>\n\n\n\n<p>\u0438 \u0431\u043e\u043b\u044c\u0448\u0435!<\/p>\n\n\n\n<p>\u0421\u043a\u043e\u0440\u043e \u043c\u044b \u0438\u0437\u0443\u0447\u0438\u043c \u0438\u0445 \u0432\u0441\u0435.<\/p>\n\n\n\n<h2 id=\"operatorsinpython\">\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0432 Python<\/h2>\n\n\n\n<p>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b Python &#8212; \u044d\u0442\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438.<\/p>\n\n\n\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043f\u043e \u0442\u0438\u043f\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0439 \u0438\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438:<\/p>\n\n\n\n<ul><li>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f<\/li><li>\u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b<\/li><li>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f<\/li><li>\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b<\/li><li>\u043f\u043e\u0431\u0438\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b<\/li><\/ul>\n\n\n\n<p>\u043f\u043b\u044e\u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0432\u0440\u043e\u0434\u0435&nbsp;<code>is<\/code>\u0438&nbsp;<code>in<\/code>.<\/p>\n\n\n\n<h3 id=\"assignmentoperatorinpython\">\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f \u0432 Python<\/h3>\n\n\n\n<p>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>age = 8\n<\/code><\/pre>\n\n\n\n<p>\u0418\u043b\u0438 \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>age = 8\nanotherVariable = age\n<\/code><\/pre>\n\n\n\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 Python 3.8,&nbsp;<code>:=<\/code>&nbsp;<em>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043c\u043e\u0440\u0436\u0430<\/em>&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438.&nbsp;\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u043d\u0443\u0442\u0440\u0438&nbsp;<code>if<\/code>\u0438\u043b\u0438 \u0432 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0446\u0438\u043a\u043b\u0430.&nbsp;\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u0437\u0436\u0435.<\/p>\n\n\n\n<h3 id=\"arithmeticoperatorsinpython\">\u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0432 Python<\/h3>\n\n\n\n<p>Python \u0438\u043c\u0435\u0435\u0442 \u0440\u044f\u0434 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432:&nbsp;<code>+<\/code>,&nbsp;<code>-<\/code>,&nbsp;<code>*<\/code>,&nbsp;<code>\/<\/code>(\u0434\u0435\u043b\u0435\u043d\u0438\u0435),&nbsp;<code>%<\/code>(\u043e\u0441\u0442\u0430\u0442\u043e\u043a),&nbsp;<code>**<\/code>(\u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432&nbsp;\u0441\u0442\u0435\u043f\u0435\u043d\u044c) \u0438&nbsp;<code>\/\/<\/code>(\u043f\u043e\u043b \u0434\u0435\u043b\u0435\u043d\u0438\u0435):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1 + 1 #2\n2 - 1 #1\n2 * 2 #4\n4 \/ 2 #2\n4 % 3 #1\n4 ** 2 #16\n4 \/\/ 2 #2\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-style-warning\"><p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u043f\u0440\u043e\u0431\u0435\u043b \u043c\u0435\u0436\u0434\u0443 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430\u043c\u0438, \u043d\u043e \u043e\u043d \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f.<\/p><\/blockquote>\n\n\n\n<p><code>-<\/code>&nbsp;\u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0443\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043c\u0438\u043d\u0443\u0441\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(-4) #-4\n<\/code><\/pre>\n\n\n\n<p><code>+<\/code>&nbsp;\u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"Roger\" + \" is a good dog\"\n#Roger is a good dog\n<\/code><\/pre>\n\n\n\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f \u0441 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438:<\/p>\n\n\n\n<ul><li><code>+=<\/code><\/li><li><code>-=<\/code><\/li><li><code>*=<\/code><\/li><li><code>\/=<\/code><\/li><li><code>%=<\/code><\/li><li>..\u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435<\/li><\/ul>\n\n\n\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>age = 8\nage += 1\n# age is now 9\n<\/code><\/pre>\n\n\n\n<h3 id=\"comparisonoperatorsinpython\">\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0432 Python<\/h3>\n\n\n\n<p>Python \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f:<\/p>\n\n\n\n<ul><li><code>==<\/code><\/li><li><code>!=<\/code><\/li><li><code>&gt;<\/code><\/li><li><code>&lt;<\/code><\/li><li><code>&gt;=<\/code><\/li><li><code>&lt;=<\/code><\/li><\/ul>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (&nbsp;<code>True<\/code>\u0438\u043b\u0438&nbsp;<code>False<\/code>) \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>a = 1\nb = 2\n\na == b #False\na != b #True\na &gt; b #False\na &lt;= b #True\n<\/code><\/pre>\n\n\n\n<h3 id=\"booleanoperatorsinpython\">\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0432 Python<\/h3>\n\n\n\n<p>Python \u0434\u0430\u0435\u0442 \u043d\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b:<\/p>\n\n\n\n<ul><li><code>not<\/code><\/li><li><code>and<\/code><\/li><li><code>or<\/code><\/li><\/ul>\n\n\n\n<p>\u041f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441&nbsp;\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c\u0438&nbsp;<code>True<\/code>\u0438\u043b\u0438&nbsp;<code>False<\/code>\u043e\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043a\u0430\u043a \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0418, \u0418\u041b\u0418 \u0438 \u041d\u0415 \u0438 \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u043e\u0446\u0435\u043d\u043a\u0435&nbsp;<code>if<\/code>\u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>condition1 = True\ncondition2 = False\n\nnot condition1 #False\ncondition1 and condition2 #False\ncondition1 or condition2 #True\n<\/code><\/pre>\n\n\n\n<p>\u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043d\u0435\u0434\u043e\u0440\u0430\u0437\u0443\u043c\u0435\u043d\u0438\u0439:<\/p>\n\n\n\n<p><code>or<\/code>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430 ,&nbsp;\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f falsy \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (&nbsp;<code>False<\/code>,&nbsp;<code>0<\/code>,&nbsp;<code>''<\/code>,&nbsp;<code>[]<\/code>..).&nbsp;\u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043e\u043f\u0435\u0440\u0430\u043d\u0434.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(0 or 1) ## 1\nprint(False or 'hey') ## 'hey'\nprint('hi' or 'hey') ## 'hi'\nprint(&#91;] or False) ## 'False'\nprint(False or &#91;]) ## '&#91;]'\n<\/code><\/pre>\n\n\n\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b Python \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u0435\u0433\u043e \u043a\u0430\u043a&nbsp;<code>if x is false, then y, else x<\/code>.<\/p>\n\n\n\n<p><code>and<\/code>\u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442, \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0435\u0440\u0435\u043d.&nbsp;\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c ,&nbsp;\u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 falsy (&nbsp;<code>False<\/code>,&nbsp;<code>0<\/code>,&nbsp;<code>''<\/code>,&nbsp;<code>[]<\/code>..), \u043e\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442.&nbsp;\u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(0 and 1) ## 0\nprint(1 and 0) ## 0\nprint(False and 'hey') ## False\nprint('hi' and 'hey') ## 'hey'\nprint(&#91;] and False ) ## &#91;]\nprint(False and &#91;] ) ## False\n<\/code><\/pre>\n\n\n\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b Python \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u0435\u0433\u043e \u043a\u0430\u043a&nbsp;<code>if x is false, then x, else y<\/code>.<\/p>\n\n\n\n<h3 id=\"bitwiseoperatorsinpython\">\u041f\u043e\u0431\u0438\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0432 Python<\/h3>\n\n\n\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0431\u0438\u0442\u0430\u043c\u0438 \u0438 \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438:<\/p>\n\n\n\n<ul><li><code>&amp;<\/code>&nbsp;\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0435 \u0418<\/li><li><code>|<\/code>&nbsp;\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0435 \u0418\u041b\u0418<\/li><li><code>^<\/code>&nbsp;\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0431\u0438\u043d\u0430\u0440\u043d\u0443\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e XOR<\/li><li><code>~<\/code>&nbsp;\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0431\u0438\u043d\u0430\u0440\u043d\u0443\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u041d\u0415<\/li><li><code>&lt;&lt;<\/code>&nbsp;\u0441\u0434\u0432\u0438\u0433 \u0432\u043b\u0435\u0432\u043e<\/li><li><code>&gt;&gt;<\/code>&nbsp;\u0441\u0434\u0432\u0438\u0433 \u0432\u043f\u0440\u0430\u0432\u043e<\/li><\/ul>\n\n\n\n<p>\u041f\u043e\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0440\u0435\u0434\u043a\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0447\u0435\u043d\u044c \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445, \u043d\u043e \u043e \u043d\u0438\u0445 \u0441\u0442\u043e\u0438\u0442 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044c.<\/p>\n\n\n\n<h3 id=\"isandininpython\"><code>is<\/code>\u0438&nbsp;<code>in<\/code>\u0432 Python<\/h3>\n\n\n\n<p><code>is<\/code>\u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f&nbsp;<strong>\u0442\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c<\/strong>&nbsp;.&nbsp;\u041e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u0441\u0442\u0438\u043d\u0443, \u0435\u0441\u043b\u0438 \u043e\u0431\u0430 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u0438 \u0442\u0435\u043c \u0436\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c.&nbsp;\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u0445 \u043f\u043e\u0437\u0436\u0435.<\/p>\n\n\n\n<p><code>in<\/code>\u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f&nbsp;<strong>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u0447\u043b\u0435\u043d\u0441\u0442\u0432\u0430<\/strong>&nbsp;.&nbsp;\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0442\u043e\u0433\u043e, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438.&nbsp;\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u0441\u043f\u0438\u0441\u043a\u0430\u0445 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044f\u0445 \u043f\u043e\u0437\u0436\u0435.<\/p>\n\n\n\n<h2 id=\"theternaryoperatorinpython\">\u0422\u0435\u0440\u043d\u0430\u0440\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0432 Python<\/h2>\n\n\n\n<p>\u0422\u0435\u0440\u043d\u0430\u0440\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0432 Python \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435.<\/p>\n\n\n\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442&nbsp;<code>age<\/code>\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441\u043e&nbsp;<code>18<\/code>\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 True \u0438\u043b\u0438 False \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430.<\/p>\n\n\n\n<p>\u0412\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0438\u0441\u0430\u0442\u044c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def is_adult(age):\n    if age &gt; 18:\n        return True\n    else:\n        return False\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0435\u0440\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def is_adult(age):\n    return True if age &gt; 18 else False\n<\/code><\/pre>\n\n\n\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0435\u0441\u043b\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0438\u0441\u0442\u0438\u043d\u043d\u043e, \u0437\u0430\u0442\u0435\u043c \u0432\u044b \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u0437\u0430\u0442\u0435\u043c \u0432\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0435\u0441\u043b\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043b\u043e\u0436\u043d\u043e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;result_if_true&gt; if &lt;condition&gt; else &lt;result_if_false&gt;\n<\/code><\/pre>\n\n\n\n<h2 id=\"stringsinpython\">\u0421\u0442\u0440\u043e\u043a\u0438 \u0432 Python<\/h2>\n\n\n\n<p>\u0421\u0442\u0440\u043e\u043a\u0430 \u0432 Python &#8212; \u044d\u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u0438\u043b\u0438 \u0434\u0432\u043e\u0439\u043d\u044b\u0435 \u043a\u0430\u0432\u044b\u0447\u043a\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"Roger\"\n'Roger'\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>+<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>phrase = \"Roger\" + \" is a good dog\"\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a \u0441\u0442\u0440\u043e\u043a\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>+=<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"\nname += \" is a good dog\"\n\nprint(name) #Roger is a good dog\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0438\u0441\u043b\u043e \u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>str<\/code>\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>str(8) #\"8\"\n<\/code><\/pre>\n\n\n\n<p>\u042d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043b\u044f \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u043b\u0430 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(\"Roger is \" + str(8) + \" years old\") #Roger is 8 years old\n<\/code><\/pre>\n\n\n\n<p>\u0421\u0442\u0440\u043e\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043c\u043d\u043e\u0433\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e\u0439, \u0435\u0441\u043b\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430, \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u043d\u0430\u0431\u043e\u0440 \u0438\u0437 \u0442\u0440\u0435\u0445 \u043a\u0430\u0432\u044b\u0447\u0435\u043a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(\"\"\"Roger is\n\n    8\n\nyears old\n\"\"\")\n\n#double quotes, or single quotes\n\nprint('''\nRoger is\n\n    8\n\nyears old\n''')\n<\/code><\/pre>\n\n\n\n<p>\u0421\u0442\u0440\u043e\u043a\u0430 \u0438\u043c\u0435\u0435\u0442 \u043d\u0430\u0431\u043e\u0440 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n\n\n\n<ul><li><code>isalpha()<\/code>&nbsp;\u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043e\u043d\u0430 \u043f\u0443\u0441\u0442\u043e\u0439<\/li><li><code>isalnum()<\/code>&nbsp;\u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438\u043b\u0438 \u0446\u0438\u0444\u0440\u044b \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043e\u043d\u0430 \u043f\u0443\u0441\u0442\u043e\u0439<\/li><li><code>isdecimal()<\/code>&nbsp;\u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u0446\u0438\u0444\u0440\u044b \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043e\u043d\u0430 \u043f\u0443\u0441\u0442\u043e\u0439<\/li><li><code>lower()<\/code>&nbsp;\u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0442\u0440\u043e\u043a\u0438<\/li><li><code>islower()<\/code>&nbsp;\u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u0442\u0440\u043e\u0447\u043d\u043e\u0439<\/li><li><code>upper()<\/code>&nbsp;\u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435<\/li><li><code>isupper()<\/code>&nbsp;\u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u0440\u043e\u043f\u0438\u0441\u043d\u043e\u0439<\/li><li><code>title()<\/code>&nbsp;\u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0431\u0443\u043a\u0432\u044b<\/li><li><code>startsswith()<\/code>&nbsp;\u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0438<\/li><li><code>endswith()<\/code>&nbsp;\u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u043e\u0439<\/li><li><code>replace()<\/code>&nbsp;\u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438<\/li><li><code>split()<\/code>&nbsp;\u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432<\/li><li><code>strip()<\/code>&nbsp;\u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0440\u0435\u0437\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u0432 \u0441\u0442\u0440\u043e\u043a\u0435<\/li><li><code>join()<\/code>&nbsp;\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0431\u0443\u043a\u0432\u044b \u0432 \u0441\u0442\u0440\u043e\u043a\u0443<\/li><li><code>find()<\/code>&nbsp;\u043d\u0430\u0439\u0442\u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0438<\/li><\/ul>\n\n\n\n<p>\u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.<\/p>\n\n\n\n<p>\u041d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u044d\u0442\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.&nbsp;\u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043e\u043d\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u043d\u043e\u0432\u0443\u044e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.&nbsp;\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"\nprint(name.lower()) #\"roger\"\nprint(name) #\"Roger\"\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438.<\/p>\n\n\n\n<p>\u0412 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u044f \u0434\u0443\u043c\u0430\u044e \u043e \u0442\u043e\u043c&nbsp;<code>len()<\/code>, \u0447\u0442\u043e \u0434\u0430\u0435\u0442 \u0432\u0430\u043c \u0434\u043b\u0438\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"\nprint(len(name)) #5\n<\/code><\/pre>\n\n\n\n<p><code>in<\/code>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c ,&nbsp;\u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"\nprint(\"ger\" in name) #True\n<\/code><\/pre>\n\n\n\n<p>\u042d\u043a\u0440\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 &#8212; \u044d\u0442\u043e \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443.<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0432\u043e\u0439\u043d\u044b\u0435 \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u0432 \u0441\u0442\u0440\u043e\u043a\u0443, \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u0443\u044e \u0432 \u0434\u0432\u043e\u0439\u043d\u044b\u0435 \u043a\u0430\u0432\u044b\u0447\u043a\u0438?<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"\n<\/code><\/pre>\n\n\n\n<p><code>\"Ro\"Ger\"<\/code>\u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a Python \u0431\u0443\u0434\u0435\u0442 \u0434\u0443\u043c\u0430\u0442\u044c, \u0447\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0430 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430&nbsp;<code>\"Ro\"<\/code>.<\/p>\n\n\n\n<p>\u0412\u044b\u0445\u043e\u0434 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>\\<\/code>\u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u043a\u043e\u0441\u043e\u0439 \u0447\u0435\u0440\u0442\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Ro\\\"ger\"\n<\/code><\/pre>\n\n\n\n<p>\u042d\u0442\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u0438 \u043a \u043e\u0434\u0438\u043d\u0430\u0440\u043d\u044b\u043c \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u043c&nbsp;<code>\\'<\/code>, \u0438 \u043a \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0442\u0430\u043a\u0438\u043c \u043a\u0430\u043a&nbsp;<code>\\t<\/code>\u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u044f,&nbsp;<code>\\n<\/code>\u043d\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0438&nbsp;<code>\\\\<\/code>\u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u043a\u043e\u0441\u0430\u044f \u0447\u0435\u0440\u0442\u0430.<\/p>\n\n\n\n<p>\u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0443, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0435\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0435 \u0441\u043a\u043e\u0431\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0435\u0433\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0430, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 0:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"\nname&#91;0] #'R'\nname&#91;1] #'o'\nname&#91;2] #'g'\n<\/code><\/pre>\n\n\n\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043a \u043e\u0442\u0441\u0447\u0435\u0442\u0443 \u0441 \u043a\u043e\u043d\u0446\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"\nname&#91;-1] #\"r\"\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u043e, \u0447\u0442\u043e \u043c\u044b \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c&nbsp;<strong>\u043d\u0430\u0440\u0435\u0437\u043a\u043e\u0439<\/strong>&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"\nname&#91;0:2] #\"Ro\"\nname&#91;:2] #\"Ro\"\nname&#91;2:] #\"ger\"\n<\/code><\/pre>\n\n\n\n<h2 id=\"booleansinpython\">\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 Python<\/h2>\n\n\n\n<p>Python \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442&nbsp;<code>bool<\/code>\u0442\u0438\u043f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0434\u0432\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:&nbsp;<code>True<\/code>\u0438&nbsp;<code>False<\/code>(\u0441 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0431\u0443\u043a\u0432\u044b).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>done = False\ndone = True\n<\/code><\/pre>\n\n\n\n<p>\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u044b \u0441 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u043c\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u043c\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c\u0438, \u0442\u0430\u043a\u0438\u043c\u0438 \u043a\u0430\u043a&nbsp;<code>if<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>done = True\n\nif done:\n    # run some code here\nelse:\n    # run some other code\n<\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u0438 \u043e\u0446\u0435\u043d\u043a\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f&nbsp;<code>True<\/code>\u0438\u043b\u0438&nbsp;<code>False<\/code>, \u0435\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 a,&nbsp;<code>bool<\/code>\u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u0438\u043f\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:<\/p>\n\n\n\n<ul><li>\u0447\u0438\u0441\u043b\u0430 \u0432\u0441\u0435\u0433\u0434\u0430&nbsp;<code>True<\/code>\u043a\u0440\u043e\u043c\u0435 \u0447\u0438\u0441\u043b\u0430<code>0<\/code><\/li><li>\u0441\u0442\u0440\u043e\u043a\u0438&nbsp;<code>False<\/code>\u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 \u043f\u0443\u0441\u0442\u044b\u0435<\/li><li>\u0441\u043f\u0438\u0441\u043a\u0438, \u043a\u043e\u0440\u0442\u0435\u0436\u0438, \u043d\u0430\u0431\u043e\u0440\u044b \u0438 \u0441\u043b\u043e\u0432\u0430\u0440\u0438&nbsp;<code>False<\/code>\u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0438 \u043f\u0443\u0441\u0442\u044b<\/li><\/ul>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c, \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>done = True\ntype(done) == bool #True\n<\/code><\/pre>\n\n\n\n<p>\u0418\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>isinstance()<\/code>, \u043f\u0435\u0440\u0435\u0434\u0430\u0432 2 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430: \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0438&nbsp;<code>bool<\/code>\u043a\u043b\u0430\u0441\u0441:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>done = True\nisinstance(done, bool) #True\n<\/code><\/pre>\n\n\n\n<p>\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f&nbsp;<code>any()<\/code>\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0442\u0430\u043a\u0436\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0430 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442,&nbsp;<code>True<\/code>\u0435\u0441\u043b\u0438 \u043b\u044e\u0431\u043e\u0435 \u0438\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0438\u0442\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043f\u0438\u0441\u043a\u0430), \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430, \u0440\u0430\u0432\u043d\u043e&nbsp;<code>True<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>book_1_read = True\nbook_2_read = False\n\nread_any_book = any(&#91;book_1_read, book_2_read])\n<\/code><\/pre>\n\n\n\n<p>\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f&nbsp;<code>all()<\/code>\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0442\u0430\u043a\u0430\u044f \u0436\u0435, \u043d\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f,&nbsp;<code>True<\/code>\u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0435\u0439 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f&nbsp;<code>True<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ingredients_purchased = True\nmeal_cooked = False\n\nready_to_serve = all(&#91;ingredients_purchased, meal_cooked])\n<\/code><\/pre>\n\n\n\n<h2 id=\"numbersinpython\">\u0427\u0438\u0441\u043b\u0430 \u0432 Python<\/h2>\n\n\n\n<p>\u0427\u0438\u0441\u043b\u0430 \u0432 Python \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c 3 -\u0445&nbsp;\u0442\u0438\u043f\u043e\u0432:&nbsp;<code>int<\/code>,&nbsp;<code>float<\/code>\u0438&nbsp;<code>complex<\/code>.<\/p>\n\n\n\n<h3 id=\"integernumbersinpython\">\u0426\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0432 Python<\/h3>\n\n\n\n<p>\u0426\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>int<\/code>\u043a\u043b\u0430\u0441\u0441\u0430.&nbsp;\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043b\u0438\u0442\u0435\u0440\u0430\u043b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>age = 8\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>int()<\/code>\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>age = int(8)\n<\/code><\/pre>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0438\u043c\u0435\u0435\u0442 \u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0442\u0438\u043f&nbsp;<code>int<\/code>, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<code>type()<\/code>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type(age) == int #True\n<\/code><\/pre>\n\n\n\n<h3 id=\"floatingpointnumbersinpython\">\u0427\u0438\u0441\u043b\u0430 \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u0432 Python<\/h3>\n\n\n\n<p>\u0427\u0438\u0441\u043b\u0430 \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 (\u0434\u0440\u043e\u0431\u0438) \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a \u0442\u0438\u043f\u0443&nbsp;<code>float<\/code>.&nbsp;\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043b\u0438\u0442\u0435\u0440\u0430\u043b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>fraction = 0.1\n<\/code><\/pre>\n\n\n\n<p>\u0418\u043b\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>float()<\/code>\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>fraction = float(0.1)\n<\/code><\/pre>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0438\u043c\u0435\u0435\u0442 \u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0442\u0438\u043f&nbsp;<code>float<\/code>, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<code>type()<\/code>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type(fraction) == float #True\n<\/code><\/pre>\n\n\n\n<h3 id=\"complexnumbersinpython\">\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0432 Python<\/h3>\n\n\n\n<p>\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a \u0442\u0438\u043f\u0443&nbsp;<code>complex<\/code>.<\/p>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u0445, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043b\u0438\u0442\u0435\u0440\u0430\u043b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>complexNumber = 2+3j\n<\/code><\/pre>\n\n\n\n<p>\u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>complex()<\/code>\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>complexNumber = complex(2, 3)\n<\/code><\/pre>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438 \u043c\u043d\u0438\u043c\u0443\u044e \u0447\u0430\u0441\u0442\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>complexNumber.real #2.0\ncomplexNumber.imag #3.0\n<\/code><\/pre>\n\n\n\n<p>\u041e\u043f\u044f\u0442\u044c \u0436\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0438\u043c\u0435\u0435\u0442 \u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0442\u0438\u043f&nbsp;<code>complex<\/code>, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<code>type()<\/code>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>type(complexNumber) == complex #True\n<\/code><\/pre>\n\n\n\n<h3 id=\"arithmeticoperationsonnumbersinpython\">\u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0434 \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0432 Python<\/h3>\n\n\n\n<p>\u041c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0434 \u0447\u0438\u0441\u043b\u0430\u043c\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438:&nbsp;<code>+<\/code>,&nbsp;<code>-<\/code>,&nbsp;<code>*<\/code>,&nbsp;<code>\/<\/code>(\u0434\u0435\u043b\u0435\u043d\u0438\u0435),&nbsp;<code>%<\/code>(\u043e\u0441\u0442\u0430\u0442\u043e\u043a),&nbsp;<code>**<\/code>(\u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432&nbsp;\u0441\u0442\u0435\u043f\u0435\u043d\u044c) \u0438&nbsp;<code>\/\/<\/code>(\u043f\u043e\u043b \u0434\u0435\u043b\u0435\u043d\u0438\u0435):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1 + 1 #2\n2 - 1 #1\n2 * 2 #4\n4 \/ 2 #2\n4 % 3 #1\n4 ** 2 #16\n4 \/\/ 2 #2\n<\/code><\/pre>\n\n\n\n<p>\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f<\/p>\n\n\n\n<ul><li><code>+=<\/code><\/li><li><code>-=<\/code><\/li><li><code>*=<\/code><\/li><li><code>\/=<\/code><\/li><li><code>%=<\/code><\/li><li>..\u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435<\/li><\/ul>\n\n\n\n<p>\u0442\u0430\u043a\u0436\u0435 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>age = 8\nage += 1\n<\/code><\/pre>\n\n\n\n<h3 id=\"builtinfunctionsinpython\">\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 Python<\/h3>\n\n\n\n<p>\u0415\u0441\u0442\u044c 2 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u0441 \u0447\u0438\u0441\u043b\u0430\u043c\u0438:<\/p>\n\n\n\n<p><code>abs()<\/code>&nbsp;\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430.<\/p>\n\n\n\n<p><code>round()<\/code>&nbsp;\u0434\u043b\u044f \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u043d\u043e\u0435 \u0434\u043e \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u0446\u0435\u043b\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>round(0.12) #0\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>round(0.12, 1) #0.1\n<\/code><\/pre>\n\n\n\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 Python:<\/p>\n\n\n\n<ul><li><code>math<\/code>\u043f\u0430\u043a\u0435\u0442 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u043e\u0431\u0449\u0435\u0435 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<\/li><li>\u0432&nbsp;<code>cmath<\/code>\u043f\u0430\u043a\u0435\u0442\u0435 \u0435\u0441\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438.<\/li><li>\u0432&nbsp;<code>decimal<\/code>\u043f\u0430\u043a\u0435\u0442\u0435 \u0435\u0441\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u043c\u0438 \u0438 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0438\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438.<\/li><li>\u0432&nbsp;<code>fractions<\/code>\u043f\u0430\u043a\u0435\u0442\u0435 \u0435\u0441\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0440\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438.<\/li><\/ul>\n\n\n\n<p>\u041f\u043e\u0437\u0436\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e.<\/p>\n\n\n\n<h2 id=\"constantsinpython\">\u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0432 Python<\/h2>\n\n\n\n<p>Python \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0431\u044b\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043e\u0439.<\/p>\n\n\n\n<p>\u0411\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435, \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c, &#8212; \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Constants(Enum):\n    WIDTH = 1024\n    HEIGHT = 256\n<\/code><\/pre>\n\n\n\n<p>\u0418 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u0435 \u043a \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440&nbsp;<code>Constants.WIDTH.value<\/code>,.<\/p>\n\n\n\n<p>\u041d\u0438\u043a\u0442\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n\n\n\n<p>\u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u043e\u0431 \u0438\u043c\u0435\u043d\u0430\u0445, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u043e\u0433\u043e: \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0432 \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>WIDTH = 1024\n<\/code><\/pre>\n\n\n\n<p>\u041d\u0438\u043a\u0442\u043e \u043d\u0435 \u043f\u043e\u043c\u0435\u0448\u0430\u0435\u0442 \u0432\u0430\u043c \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0438 Python \u043d\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u044d\u0442\u043e.<\/p>\n\n\n\n<p>\u042d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u0434\u0430 Python, \u0447\u0442\u043e \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435.<\/p>\n\n\n\n<h2 id=\"enumsinpython\">\u041f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0432 Python<\/h2>\n\n\n\n<p>\u041f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f &#8212; \u044d\u0442\u043e \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0435 \u0438\u043c\u0435\u043d\u0430, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043a \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e.<\/p>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f, \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435&nbsp;<code>Enum<\/code>\u0438\u0437&nbsp;<code>enum<\/code>\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u0447\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from enum import Enum\n<\/code><\/pre>\n\n\n\n<p>\u0417\u0430\u0442\u0435\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class State(Enum):\n    INACTIVE = 0\n    ACTIVE = 1\n<\/code><\/pre>\n\n\n\n<p>\u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u0442\u0435, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430&nbsp;<code>State.INACTIVE<\/code>\u0438&nbsp;<code>State.ACTIVE<\/code>, \u0438 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u043c\u0438.<\/p>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u043d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c,&nbsp;<code>State.ACTIVE<\/code>\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(State.ACTIVE)\n<\/code><\/pre>\n\n\n\n<p>\u043e\u043d \u043d\u0435 \u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f&nbsp;<code>1<\/code>, \u043d\u043e&nbsp;<code>State.ACTIVE<\/code>.<\/p>\n\n\n\n<p>\u0422\u0430\u043a\u043e\u0435 \u0436\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0443\u0442\u043e \u043f\u043e \u043d\u043e\u043c\u0435\u0440\u0443, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0432 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0438:&nbsp;<code>print(State(1))<\/code>\u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f&nbsp;<code>State.ACTIVE<\/code>.&nbsp;\u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0434\u043b\u044f \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a&nbsp;<code>State['ACTIVE']<\/code>.<\/p>\n\n\n\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>State.ACTIVE.value<\/code>.<\/p>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>list(State) # &#91;&lt;State.INACTIVE: 0&gt;, &lt;State.ACTIVE: 1&gt;]\n<\/code><\/pre>\n\n\n\n<p>\u0418\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>len(State) # 2\n<\/code><\/pre>\n\n\n\n<h2 id=\"userinputinpython\">\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0432\u0432\u043e\u0434 \u0432 Python<\/h2>\n\n\n\n<p>\u0412 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 Python \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>print()<\/code>\u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Roger\"\nprint(name)\n<\/code><\/pre>\n\n\n\n<p>\u041c\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0432\u0432\u043e\u0434 \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>input()<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print('What is your age?')\nage = input()\nprint('Your age is ' + age)\n<\/code><\/pre>\n\n\n\n<p>\u042d\u0442\u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0432\u0432\u043e\u0434 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0438 \u0431\u0443\u0434\u0435\u0442 \u0436\u0434\u0430\u0442\u044c, \u043f\u043e\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u0431\u0435\u0440\u0435\u0442 \u0438 \u043d\u0435 \u043d\u0430\u0436\u043c\u0435\u0442&nbsp;<code>enter<\/code>\u043a\u043b\u0430\u0432\u0438\u0448\u0443.<\/p>\n\n\n\n<p>\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0432\u0432\u043e\u0434\u0430 \u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0432\u0432\u043e\u0434 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u0438 \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c, \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0437\u0436\u0435.<\/p>\n\n\n\n<p>\u042d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438.&nbsp;\u0414\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0442\u0438\u043f\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u0438\u0435\u043c\u0430 \u0432\u0432\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n\n\n\n<h2 id=\"controlstatementsinpython\">\u0423\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0432 Python<\/h2>\n\n\n\n<p>\u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u0438\u043c\u0435\u0435\u0442\u0435 \u0434\u0435\u043b\u043e \u0441 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u0441 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0438 \u0438\u0434\u0442\u0438 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043f\u0443\u0442\u044f\u043c\u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0438\u0445&nbsp;\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439&nbsp;<code>True<\/code>\u0438\u043b\u0438&nbsp;<code>False<\/code>.<\/p>\n\n\n\n<p>\u0412 Python \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>if<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>condition = True\n\nif condition == True:\n    # do something\n<\/code><\/pre>\n\n\n\n<p>\u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f&nbsp;<code>True<\/code>, \u043a\u0430\u043a \u0432 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u043c \u0432\u044b\u0448\u0435 \u0441\u043b\u0443\u0447\u0430\u0435, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0435\u0433\u043e \u0431\u043b\u043e\u043a.<\/p>\n\n\n\n<p>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0431\u043b\u043e\u043a?&nbsp;\u0411\u043b\u043e\u043a &#8212; \u044d\u0442\u043e \u0442\u0430 \u0447\u0430\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u043c\u0435\u0435\u0442 \u043e\u0442\u0441\u0442\u0443\u043f \u043d\u0430 \u043e\u0434\u0438\u043d \u0443\u0440\u043e\u0432\u0435\u043d\u044c (\u043e\u0431\u044b\u0447\u043d\u043e 4 \u043f\u0440\u043e\u0431\u0435\u043b\u0430) \u0441\u043f\u0440\u0430\u0432\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>condition = True\n\nif condition == True:\n    print(\"The condition\")\n    print(\"was true\")\n<\/code><\/pre>\n\n\n\n<p>\u0411\u043b\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u043a, \u0438 \u043e\u043d \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0435\u0441\u044c \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043e\u0442\u0441\u0442\u0443\u043f\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>condition = True\n\nif condition == True:\n    print(\"The condition\")\n    print(\"was true\")\n\nprint(\"Outside of the if\")\n<\/code><\/pre>\n\n\n\n<p>\u0412 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0438 \u0441 \u0443&nbsp;<code>if<\/code>\u0432\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c&nbsp;<code>else<\/code>\u0431\u043b\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0439&nbsp;<code>if<\/code>\u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a&nbsp;<code>False<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>condition = True\n\nif condition == True:\n    print(\"The condition\")\n    print(\"was True\")\nelse:\n    print(\"The condition\")\n    print(\"was False\")\n<\/code><\/pre>\n\n\n\n<p>\u0418 \u0443 \u0432\u0430\u0441 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435&nbsp;<code>if<\/code>\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438,&nbsp;<code>elif<\/code>\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0431\u044b\u043b\u0430&nbsp;<code>False<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>condition = True\nname = \"Roger\"\n\nif condition == True:\n    print(\"The condition\")\n    print(\"was True\")\nelif name == \"Roger\":\n    print(\"Hello Roger\")\nelse:\n    print(\"The condition\")\n    print(\"was False\")\n<\/code><\/pre>\n\n\n\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u0431\u043b\u043e\u043a \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438&nbsp;<code>condition<\/code>\u0435\u0441\u0442\u044c&nbsp;<code>False<\/code>, \u0438&nbsp;<code>name<\/code>\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 &#8212; \u00abRoger\u00bb.<\/p>\n\n\n\n<p>\u0412&nbsp;<code>if<\/code>\u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u043c\u0435\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d&nbsp;<code>if<\/code>\u0438&nbsp;<code>else<\/code>\u0447\u0435\u043a, \u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0440\u0438\u0439&nbsp;<code>elif<\/code>\u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>condition = True\nname = \"Roger\"\n\nif condition == True:\n    print(\"The condition\")\n    print(\"was True\")\nelif name == \"Roger\":\n    print(\"Hello Roger\")\nelif name == \"Syd\":\n    print(\"Hello Syd\")\nelif name == \"Flavio\":\n    print(\"Hello Flavio\")\nelse:\n    print(\"The condition\")\n    print(\"was False\")\n<\/code><\/pre>\n\n\n\n<p><code>if<\/code>\u0438&nbsp;<code>else<\/code>\u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0442\u043e \u0438\u043b\u0438 \u0438\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0443\u0441\u043b\u043e\u0432\u0438\u044f.<\/p>\n\n\n\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>a = 2\nresult = 2 if a == 0 else 3\nprint(result) # 3\n<\/code><\/pre>\n\n\n\n<h2 id=\"listsinpython\">\u0421\u043f\u0438\u0441\u043a\u0438 \u043d\u0430 Python<\/h2>\n\n\n\n<p>\u0421\u043f\u0438\u0441\u043a\u0438 &#8212; \u044d\u0442\u043e \u0432\u0430\u0436\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 Python.<\/p>\n\n\n\n<p>\u041e\u043d\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0438 \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043d\u0438\u0445 \u043f\u043e\u0434 \u043e\u0431\u0449\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c.<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dogs = &#91;\"Roger\", \"Syd\"]\n<\/code><\/pre>\n\n\n\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items = &#91;\"Roger\", 1, \"Syd\", True]\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>in<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(\"Roger\" in items) # True\n<\/code><\/pre>\n\n\n\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u0430\u043a \u043f\u0443\u0441\u0442\u043e\u0439:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items = &#91;]\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u043e \u0438\u0445 \u0438\u043d\u0434\u0435\u043a\u0441\u0443, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u043d\u0443\u043b\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items&#91;0] # \"Roger\"\nitems&#91;1] # 1\nitems&#91;3] # True\n<\/code><\/pre>\n\n\n\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u0443 \u0436\u0435 \u043d\u043e\u0442\u0430\u0446\u0438\u044e, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0445\u0440\u0430\u043d\u044f\u0449\u0435\u0435\u0441\u044f \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c \u0438\u043d\u0434\u0435\u043a\u0441\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items&#91;0] = \"Roger\"\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<code>index()<\/code>\u043c\u0435\u0442\u043e\u0434:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items.index(0) # \"Roger\"\nitems.index(1) # 1\n<\/code><\/pre>\n\n\n\n<p>\u041a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438, \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u043f\u043e\u0438\u0441\u043a \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0441 \u043a\u043e\u043d\u0446\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items&#91;-1] # True\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0447\u0430\u0441\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u0440\u0435\u0437\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items&#91;0:2] # &#91;\"Roger\", 1]\nitems&#91;2:] # &#91;\"Syd\", True]\n<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>len()<\/code>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0442\u0430\u043a\u0443\u044e \u200b\u200b\u0436\u0435, \u043a\u0430\u043a \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u0438\u043d\u044b \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>len(items) #4\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u0441\u043f\u0438\u0441\u043e\u043a, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>append()<\/code>\u043c\u0435\u0442\u043e\u0434&nbsp;\u0441\u043f\u0438\u0441\u043a\u0430&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items.append(\"Test\")\n<\/code><\/pre>\n\n\n\n<p>\u0438\u043b\u0438 \u043c\u0435\u0442\u043e\u0434 extend ():<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items.extend(&#91;\"Test\"])\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<code>+=<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items += &#91;\"Test\"]\n\n# items is &#91;'Roger', 1, 'Syd', True, 'Test']\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-style-thumbs-up\"><p>\u0421\u043e\u0432\u0435\u0442:&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0435 \u0441\u043a\u043e\u0431\u043a\u0438&nbsp;<code>extend()<\/code>\u0438\u043b\u0438&nbsp;<code>+=<\/code>\u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435.&nbsp;\u041d\u0435 \u0434\u0435\u043b\u0430\u0439\u0442\u0435&nbsp;<code>items += \"Test\"<\/code>\u0438\u043b\u0438&nbsp;<code>items.extend(\"Test\")<\/code>\u0438\u043b\u0438 Python \u0434\u043e\u0431\u0430\u0432\u0438\u0442 \u0432 \u0441\u043f\u0438\u0441\u043e\u043a 4 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u0430, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0447\u0435\u0433\u043e<code>['Roger', 1, 'Syd', True, 'T', 'e', 's', 't']<\/code><\/p><\/blockquote>\n\n\n\n<p>\u0423\u0434\u0430\u043b\u0438\u0442\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>remove()<\/code>\u043c\u0435\u0442\u043e\u0434\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items.remove(\"Test\")\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items += &#91;\"Test1\", \"Test2\"]\n\n#or\n\nitems.extend(&#91;\"Test1\", \"Test2\"])\n<\/code><\/pre>\n\n\n\n<p>\u041e\u043d\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 \u043a\u043e\u043d\u0435\u0446 \u0441\u043f\u0438\u0441\u043a\u0430.<\/p>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0443 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0438\u043d\u0434\u0435\u043a\u0441\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435&nbsp;<code>insert()<\/code>\u043c\u0435\u0442\u043e\u0434:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items.insert(\"Test\", 1) # add \"Test\" at index 1\n<\/code><\/pre>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0438\u043d\u0434\u0435\u043a\u0441\u0443, \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0440\u0435\u0437\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items&#91;1:1] = &#91;\"Test1\", \"Test2\"]\n<\/code><\/pre>\n\n\n\n<p>\u041e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>sort()<\/code>\u043c\u0435\u0442\u043e\u0434\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items.sort()\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-style-thumbs-up\"><p>\u0421\u043e\u0432\u0435\u0442: sort () \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c.&nbsp;\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0446\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430, \u0438 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435, \u043a\u0430\u043a&nbsp;<code>TypeError: '&lt;' not supported between instances of 'int' and 'str'<\/code>\u0435\u0441\u043b\u0438 \u0431\u044b \u0432\u044b \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0438\u0441\u044c.<\/p><\/blockquote>\n\n\n\n<p>\u042d\u0442\u0438&nbsp;<code>sort()<\/code>\u043c\u0435\u0442\u043e\u0434\u044b \u0437\u0430\u043a\u0430\u0437\u044b \u043f\u0440\u043e\u043f\u0438\u0441\u043d\u044b\u0445 \u0431\u0443\u043a\u0432, \u0430&nbsp;\u0437\u0430\u0442\u0435\u043c \u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0435 \u0431\u0443\u043a\u0432\u044b.&nbsp;\u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items.sort(key=str.lower)\n<\/code><\/pre>\n\n\n\n<p>\u0432\u043c\u0435\u0441\u0442\u043e.<\/p>\n\n\n\n<p>\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u043f\u0438\u0441\u043a\u0430.&nbsp;\u0427\u0442\u043e\u0431\u044b \u044d\u0442\u043e\u0433\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u043f\u0438\u0441\u043a\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>itemscopy = items&#91;:]\n<\/code><\/pre>\n\n\n\n<p>\u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435&nbsp;<code>sorted()<\/code>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(sorted(items, key=str.lower))\n<\/code><\/pre>\n\n\n\n<p>\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0435\u0440\u043d\u0435\u0442 \u043d\u043e\u0432\u044b\u0439 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u043c\u0435\u0441\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430.<\/p>\n\n\n\n<h2 id=\"tuplesinpython\">\u041a\u043e\u0440\u0442\u0435\u0436\u0438 \u0432 Python<\/h2>\n\n\n\n<p>\u041a\u043e\u0440\u0442\u0435\u0436\u0438 &#8212; \u0435\u0449\u0435 \u043e\u0434\u043d\u0430 \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 Python.<\/p>\n\n\n\n<p>\u041e\u043d\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432.&nbsp;\u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u043e\u0440\u0442\u0435\u0436\u0430 \u0435\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c.&nbsp;\u0412\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b.<\/p>\n\n\n\n<p>\u041e\u043d\u0438 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0441\u043f\u0438\u0441\u043a\u0430\u043c, \u043d\u043e \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u0440\u0443\u0433\u043b\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0445:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>names = (\"Roger\", \"Syd\")\n<\/code><\/pre>\n\n\n\n<p>\u041a\u043e\u0440\u0442\u0435\u0436 \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d, \u043a\u0430\u043a \u0441\u043f\u0438\u0441\u043e\u043a, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0443\u043a\u0430\u0437\u0430\u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>names&#91;0] # \"Roger\"\nnames&#91;1] # \"Syd\"\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<code>index()<\/code>\u043c\u0435\u0442\u043e\u0434:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>names.index('Roger') # 0\nnames.index('Syd')   # 1\n<\/code><\/pre>\n\n\n\n<p>\u041a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u0438 \u0441\u043f\u0438\u0441\u043a\u0430\u043c\u0438, \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u043f\u043e\u0438\u0441\u043a \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0441 \u043a\u043e\u043d\u0446\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>names&#91;-1] # True\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u043a\u043e\u0440\u0442\u0435\u0436\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>len()<\/code>\u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>len(names) # 2\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 \u043a\u043e\u0440\u0442\u0435\u0436\u0435, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>in<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(\"Roger\" in names) # True\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u0440\u0442\u0435\u0436\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u0440\u0435\u0437\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>names&#91;0:2] # ('Roger', 'Syd')\nnames&#91;1:] # ('Syd',)\n<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043a\u043e\u0440\u0442\u0435\u0436\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>len()<\/code>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0442\u0430\u043a\u0443\u044e \u200b\u200b\u0436\u0435, \u043a\u0430\u043a \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u0438\u043d\u044b \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>len(names) #2\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043a\u043e\u0440\u0442\u0435\u0436\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>sorted()<\/code>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sorted(names)\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u0440\u0442\u0435\u0436 \u0438\u0437 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043a\u043e\u0440\u0442\u0435\u0436\u0435\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>+<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>newTuple = names + (\"Vanille\", \"Tina\")\n<\/code><\/pre>\n\n\n\n<h2 id=\"dictionariesinpython\">\u0421\u043b\u043e\u0432\u0430\u0440\u0438 \u043d\u0430 Python<\/h2>\n\n\n\n<p>\u0421\u043b\u043e\u0432\u0430\u0440\u0438 &#8212; \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 Python.<\/p>\n\n\n\n<p>\u0412 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0441\u043f\u0438\u0441\u043a\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u0441\u043b\u043e\u0432\u0430\u0440\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438&nbsp;<strong>\u043f\u0430\u0440 \u043a\u043b\u044e\u0447 \/ \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong>&nbsp;.<\/p>\n\n\n\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u043b\u043e\u0432\u0430\u0440\u044f \u0441 \u043e\u0434\u043d\u043e\u0439 \u043f\u0430\u0440\u043e\u0439 \u043a\u043b\u044e\u0447 \/ \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dog = { 'name': 'Roger' }\n<\/code><\/pre>\n\n\n\n<p>\u041a\u043b\u044e\u0447 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u044b\u043c \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u0447\u0438\u0441\u043b\u043e\u043c \u0438\u043b\u0438 \u043a\u043e\u0440\u0442\u0435\u0436\u0435\u043c.&nbsp;\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u044b\u043c.<\/p>\n\n\n\n<p>\u0421\u043b\u043e\u0432\u0430\u0440\u044c \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440 \u043a\u043b\u044e\u0447 \/ \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dog = { 'name': 'Roger', 'age': 8 }\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044d\u0442\u0443 \u043d\u043e\u0442\u0430\u0446\u0438\u044e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dog&#91;'name'] # 'Roger'\ndog&#91;'age']  # 8\n<\/code><\/pre>\n\n\n\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u0443 \u0436\u0435 \u043d\u043e\u0442\u0430\u0446\u0438\u044e, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0445\u0440\u0430\u043d\u044f\u0449\u0435\u0435\u0441\u044f \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c \u0438\u043d\u0434\u0435\u043a\u0441\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dog&#91;'name'] = 'Syd'\n<\/code><\/pre>\n\n\n\n<p>\u0418 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u043f\u043e\u0441\u043e\u0431 &#8212; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<code>get()<\/code>\u043c\u0435\u0442\u043e\u0434, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dog.get('name') # 'Roger'\ndog.get('test', 'default') # 'default'\n<\/code><\/pre>\n\n\n\n<p><code>pop()<\/code>\u041c\u0435\u0442\u043e\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0430, \u0430 \u0437\u0430\u0442\u0435\u043c \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438\u0437 \u0441\u043b\u043e\u0432\u0430\u0440\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dog.pop('name') # 'Roger'\n<\/code><\/pre>\n\n\n\n<p>\u0412&nbsp;<code>popitem()<\/code>\u043c\u0435\u0442\u043e\u0434\u0435 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u0442 \u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043a\u043b\u044e\u0447 \/ \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0441\u043b\u043e\u0432\u0430\u0440\u044c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dog.popitem()\n<\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043b\u0438 \u043a\u043b\u044e\u0447 \u0432 \u0441\u043b\u043e\u0432\u0430\u0440\u0435, \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>in<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>'name' in dog # True\n<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u0441 \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u0432 \u0441\u043b\u043e\u0432\u0430\u0440\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>keys()<\/code>\u043c\u0435\u0442\u043e\u0434\u0430, \u043f\u0435\u0440\u0435\u0434\u0430\u0432 \u0435\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442&nbsp;<code>list()<\/code>\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>list(dog.keys()) # &#91;'name', 'age']\n<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>values()<\/code>\u043c\u0435\u0442\u043e\u0434\u0430 \u0438 \u043a\u043e\u0440\u0442\u0435\u0436\u0438 \u043f\u0430\u0440 \u043a\u043b\u044e\u0447 \/ \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>items()<\/code>\u043c\u0435\u0442\u043e\u0434\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(list(dog.values()))\n# &#91;'Roger', 8]\n\nprint(list(dog.items()))\n# &#91;('name', 'Roger'), ('age', 8)]\n<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0434\u043b\u0438\u043d\u0443 \u0441\u043b\u043e\u0432\u0430\u0440\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>len()<\/code>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0442\u0430\u043a\u0443\u044e \u200b\u200b\u0436\u0435, \u043a\u0430\u043a \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u0438\u043d\u044b \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>len(dog) #2\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043f\u0430\u0440\u0443 \u043a\u043b\u044e\u0447 \/ \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dog&#91;'favorite food'] = 'Meat'\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0430\u0440\u0443 \u043a\u043b\u044e\u0447 \/ \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0441\u043b\u043e\u0432\u0430\u0440\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>del<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>del dog&#91;'favorite food']\n<\/code><\/pre>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u043e\u0432\u0430\u0440\u044c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043c\u0435\u0442\u043e\u0434 copy ():<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dogCopy = dog.copy()\n<\/code><\/pre>\n\n\n\n<h2 id=\"setsinpython\">\u041d\u0430\u0431\u043e\u0440\u044b \u0432 Python<\/h2>\n\n\n\n<p>\u041d\u0430\u0431\u043e\u0440\u044b &#8212; \u0435\u0449\u0435 \u043e\u0434\u043d\u0430 \u0432\u0430\u0436\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 Python.<\/p>\n\n\n\n<p>\u041c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043e\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043a\u0430\u043a \u043a\u043e\u0440\u0442\u0435\u0436\u0438, \u043d\u043e \u043e\u043d\u0438 \u043d\u0435 \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u044b \u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f&nbsp;<strong>\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u043c\u0438<\/strong>&nbsp;.<\/p>\n\n\n\n<p>\u0418\u043b\u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043e\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043a\u0430\u043a \u0441\u043b\u043e\u0432\u0430\u0440\u0438, \u043d\u043e \u0443 \u043d\u0438\u0445 \u043d\u0435\u0442 \u043a\u043b\u044e\u0447\u0435\u0439.<\/p>\n\n\n\n<p>\u0423 \u043d\u0438\u0445 \u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0430\u044f&nbsp;<code>frozenset<\/code>.<\/p>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0430\u0431\u043e\u0440, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044d\u0442\u043e\u0442 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>names = {\"Roger\", \"Syd\"}\n<\/code><\/pre>\n\n\n\n<p>\u041d\u0430\u0431\u043e\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0445\u043e\u0440\u043e\u0448\u043e, \u0435\u0441\u043b\u0438 \u0432\u044b \u0434\u0443\u043c\u0430\u0435\u0442\u0435 \u043e \u043d\u0438\u0445 \u043a\u0430\u043a \u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043d\u0430\u0431\u043e\u0440\u0430\u0445.<\/p>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u044c \u0434\u0432\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set1 = {\"Roger\", \"Syd\"}\nset2 = {\"Roger\"}\n\nintersect = set1 &amp; set2 #{'Roger'}\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0434\u0432\u0443\u0445 \u043d\u0430\u0431\u043e\u0440\u043e\u0432:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set1 = {\"Roger\", \"Syd\"}\nset2 = {\"Luna\"}\n\nunion = set1 | set2\n#{'Syd', 'Luna', 'Roger'}\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043d\u0430\u0431\u043e\u0440\u0430\u043c\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set1 = {\"Roger\", \"Syd\"}\nset2 = {\"Roger\"}\n\ndifference = set1 - set2 #{'Syd'}\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u043d\u0430\u0431\u043e\u0440 \u043d\u0430\u0434\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u0434\u0440\u0443\u0433\u043e\u0433\u043e (\u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0435\u0441\u043b\u0438 \u043d\u0430\u0431\u043e\u0440 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u0434\u0440\u0443\u0433\u043e\u0433\u043e):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set1 = {\"Roger\", \"Syd\"}\nset2 = {\"Roger\"}\n\nisSuperset = set1 &gt; set2 # True\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u0432 \u0432 \u043d\u0430\u0431\u043e\u0440\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>len()<\/code>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>names = {\"Roger\", \"Syd\"}\nlen(names) # 2\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0430\u0431\u043e\u0440\u0430, \u043f\u0435\u0440\u0435\u0434\u0430\u0432 \u043d\u0430\u0431\u043e\u0440&nbsp;<code>list()<\/code>\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>names = {\"Roger\", \"Syd\"}\nlist(names) #&#91;'Syd', 'Roger']\n<\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0432\u0445\u043e\u0434\u0438\u0442 \u043b\u0438 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0432 \u043d\u0430\u0431\u043e\u0440, \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>in<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(\"Roger\" in names) # True\n<\/code><\/pre>\n\n\n\n<h2 id=\"functionsinpython\">\u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 Python<\/h2>\n\n\n\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n\n\n\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b \u0432 Python \u0438 \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u0430\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.&nbsp;\u041e\u043d\u0438 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u043d\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0438\u043c\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0440\u0430\u0437\u043b\u043e\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0435 \u0447\u0430\u0441\u0442\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u0441\u0442\u0432\u0443\u044e\u0442 \u0443\u0434\u043e\u0431\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u0438 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u043a\u043e\u0434\u0430.<\/p>\n\n\n\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0438,&nbsp;<code>hello<\/code>\u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u00abHello!\u00bb:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def hello():\n    print('Hello!')\n<\/code><\/pre>\n\n\n\n<p>\u042d\u0442\u043e&nbsp;<strong>\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435<\/strong>&nbsp;\u0444\u0443\u043d\u043a\u0446\u0438\u0438&nbsp;.&nbsp;\u0415\u0441\u0442\u044c \u0438\u043c\u044f (&nbsp;<code>hello<\/code>) \u0438 \u0442\u0435\u043b\u043e, \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0437\u0430 \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435\u043c.&nbsp;\u041e\u043d \u0438\u043c\u0435\u0435\u0442 \u043e\u0442\u0441\u0442\u0443\u043f \u043d\u0430 \u043e\u0434\u0438\u043d \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u043f\u0440\u0430\u0432\u0430.<\/p>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0435\u0435 \u0432\u044b\u0437\u0432\u0430\u0442\u044c.&nbsp;\u042d\u0442\u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hello()\n<\/code><\/pre>\n\n\n\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437.<\/p>\n\n\n\n<p>\u0418\u043c\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438&nbsp;<code>hello<\/code>\u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e.&nbsp;\u041e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c, \u0447\u0442\u043e\u0431\u044b \u043b\u044e\u0431\u043e\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0435\u0433\u043e \u043c\u043e\u0433 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0435\u0431\u0435, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f.<\/p>\n\n\n\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def hello(name):\n    print('Hello ' + name + '!')\n<\/code><\/pre>\n\n\n\n<p>\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hello('Roger')\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-style-info\"><p>\u041c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c&nbsp;<em>\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/em>&nbsp;\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438, \u043f\u0440\u0438\u043d\u044f\u0442\u044b\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0438&nbsp;<em>\u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438<\/em>&nbsp;\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0435\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c.&nbsp;\u042d\u0442\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435 \u0447\u0430\u0441\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0443\u0442\u0430\u043d\u0438\u0446\u0443.<\/p><\/blockquote>\n\n\n\n<p>\u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def hello(name='my friend'):\n    print('Hello ' + name + '!')\n\nhello()\n#Hello my friend!\n<\/code><\/pre>\n\n\n\n<p>\u0412\u043e\u0442 \u043a\u0430\u043a \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def hello(name, age):\n    print('Hello ' + name + ', you are ' + str(age) + ' years old!')\n<\/code><\/pre>\n\n\n\n<p>\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u044f \u043d\u0430\u0431\u043e\u0440 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hello('Roger', 8)\n<\/code><\/pre>\n\n\n\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435.&nbsp;\u0412\u0441\u0435 \u0442\u0438\u043f\u044b \u0432 Python \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438, \u043d\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0446\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430, \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0447\u0438\u0441\u043b\u0430 \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439, \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u043a\u043e\u0440\u0442\u0435\u0436\u0438.&nbsp;\u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u0442\u0435 \u0438\u0445 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043d\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0440\u0430\u0436\u0435\u043d\u043e \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def change(value):\n    value = 2\n\nval = 1\nchange(val)\n\nprint(val) #1\n<\/code><\/pre>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u0442\u0435 \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u043c, \u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u043e\u0434\u043d\u043e \u0438\u0437 \u0435\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043e\u0442\u0440\u0430\u0437\u0438\u0442\u0441\u044f \u0441\u043d\u0430\u0440\u0443\u0436\u0438.<\/p>\n\n\n\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>return<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430.&nbsp;\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c&nbsp;<code>name<\/code>\u0438\u043c\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def hello(name):\n    print('Hello ' + name + '!')\n    return name\n<\/code><\/pre>\n\n\n\n<p>\u041a\u043e\u0433\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442&nbsp;<code>return<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440, \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f.<\/p>\n\n\n\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def hello(name):\n    print('Hello ' + name + '!')\n    return\n<\/code><\/pre>\n\n\n\n<p>\u0423 \u043d\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 return \u0432\u043d\u0443\u0442\u0440\u0438 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430, \u0447\u0442\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0435\u0441\u043b\u0438 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def hello(name):\n    if not name:\n        return\n    print('Hello ' + name + '!')\n<\/code><\/pre>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0449\u0443\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f&nbsp;<code>False<\/code>\u043a\u0430\u043a \u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430, \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u044f&nbsp;<code>print()<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430.<\/p>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def hello(name):\n    print('Hello ' + name + '!')\n    return name, 'Roger', 8\n<\/code><\/pre>\n\n\n\n<p>\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u043c\u0443&nbsp;<code>hello('Syd')<\/code>\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u0440\u0442\u0435\u0436 ,&nbsp;\u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u044d\u0442\u0438 3 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:&nbsp;<code>('Syd', 'Roger', 8)<\/code>.<\/p>\n\n\n\n<h2 id=\"objectsinpython\">\u041e\u0431\u044a\u0435\u043a\u0442\u044b \u0432 Python<\/h2>\n\n\n\n<p>\u0412\u0441\u0435 \u0432 Python &#8212; \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442.<\/p>\n\n\n\n<p>\u0414\u0430\u0436\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 (\u0446\u0435\u043b\u044b\u0435, \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435, \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 &#8230;) \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438.&nbsp;\u0421\u043f\u0438\u0441\u043a\u0438 &#8212; \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u043a\u0430\u043a \u0438 \u043a\u043e\u0440\u0442\u0435\u0436\u0438, \u0441\u043b\u043e\u0432\u0430\u0440\u0438 \u0438 \u0432\u0441\u0435 \u0442\u0430\u043a\u043e\u0435.<\/p>\n\n\n\n<p>\u0423 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0435\u0441\u0442\u044c&nbsp;<strong>\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b<\/strong>&nbsp;\u0438&nbsp;<strong>\u043c\u0435\u0442\u043e\u0434\u044b, \u043a<\/strong>&nbsp;\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u043e\u0447\u0435\u0447\u043d\u043e\u0433\u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430.<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0442\u0438\u043f\u0430&nbsp;<code>int<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>age = 8\n<\/code><\/pre>\n\n\n\n<p><code>age<\/code>\u0442\u0435\u043f\u0435\u0440\u044c \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c \u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u0434\u043b\u044f \u0432\u0441\u0435\u0445&nbsp;<code>int<\/code>\u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432.<\/p>\n\n\n\n<p>\u042d\u0442\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438 \u043c\u043d\u0438\u043c\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u044d\u0442\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(age.real) # 8\nprint(age.imag) # 0\n\nprint(age.bit_length()) #4\n\n# the bit_length() method returns the number of bits necessary to represent this number in binary notation\n<\/code><\/pre>\n\n\n\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0430\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430, \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u043d\u0430\u0431\u043e\u0440\u0443 \u043c\u0435\u0442\u043e\u0434\u043e\u0432:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items = &#91;1, 2]\nitems.append(3)\nitems.pop()\n<\/code><\/pre>\n\n\n\n<p>\u041c\u0435\u0442\u043e\u0434\u044b \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u0442\u0438\u043f\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<\/p>\n\n\n\n<p><code>id()<\/code>\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f ,&nbsp;\u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u043c\u0430\u044f Python \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>id(age) # 140170065725376\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\u0412\u0430\u0448\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f &#8212; \u044f \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430.<\/p><\/blockquote>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0435\u0435 \u0430\u0434\u0440\u0435\u0441 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0431\u044b\u043b\u043e \u0437\u0430\u043c\u0435\u043d\u0435\u043d\u043e \u0434\u0440\u0443\u0433\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c, \u0445\u0440\u0430\u043d\u044f\u0449\u0438\u043c\u0441\u044f \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>age = 8\n\nprint(id(age)) # 140535918671808\n\nage = 9\n\nprint(id(age)) # 140535918671840\n<\/code><\/pre>\n\n\n\n<p>\u041d\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u043e\u0431\u044a\u0435\u043a\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0435\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u0430\u0434\u0440\u0435\u0441 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0436\u043d\u0438\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items = &#91;1, 2]\n\nprint(id(items)) # 140093713593920\n\nitems.append(3)\n\nprint(items) # &#91;1, 2, 3]\nprint(id(items)) # 140093713593920\n<\/code><\/pre>\n\n\n\n<p>\u0410\u0434\u0440\u0435\u0441 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u0435\u0440\u0435\u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n\n\n\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b&nbsp;<em>\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b<\/em>&nbsp;, \u0430 \u0434\u0440\u0443\u0433\u0438\u0435&nbsp;<em>\u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u044b<\/em>&nbsp;.&nbsp;\u042d\u0442\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0441\u0430\u043c\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430.<\/p>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u043e\u0431\u044a\u0435\u043a\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e, \u0442\u043e \u043e\u043d \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439.&nbsp;\u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u0435\u043d.<\/p>\n\n\n\n<p>\u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0442\u0438\u043f\u043e\u0432, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 Python, \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b.&nbsp;\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,&nbsp;<code>int<\/code>\u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u043e.&nbsp;\u041d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.&nbsp;\u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>age = 8\nage = age + 1\n\n#or\n\nage += 1\n<\/code><\/pre>\n\n\n\n<p>\u0438 \u0432\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u0435&nbsp;<code>id(age)<\/code>, \u0432\u044b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u0435, \u0447\u0442\u043e \u044d\u0442\u043e&nbsp;<code>age<\/code>\u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0432 \u043f\u0430\u043c\u044f\u0442\u0438.&nbsp;\u0418\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c, \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0448\u043b\u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n\n\n\n<h2 id=\"loopsinpython\">\u0426\u0438\u043a\u043b\u044b \u0432 Python<\/h2>\n\n\n\n<p>\u0426\u0438\u043a\u043b\u044b &#8212; \u043e\u0434\u043d\u0430 \u0438\u0437 \u0432\u0430\u0436\u043d\u0435\u0439\u0448\u0438\u0445 \u0447\u0430\u0441\u0442\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n\n\n\n<p>\u0412 Python \u043c\u044b \u0438\u043c\u0435\u0435\u043c 2 \u0432\u0438\u0434\u0430 \u043f\u0435\u0442\u0435\u043b\u044c: \u0432&nbsp;<strong>\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u043f\u0435\u0442\u043b\u0438<\/strong>&nbsp;\u0438&nbsp;<strong>\u0434\u043b\u044f \u043f\u0435\u0442\u0435\u043b\u044c<\/strong>&nbsp;.<\/p>\n\n\n\n<h3 id=\"whileloopsinpython\"><code>while<\/code>&nbsp;\u0446\u0438\u043a\u043b\u044b \u0432 Python<\/h3>\n\n\n\n<p><code>while<\/code>\u0446\u0438\u043a\u043b\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>while<\/code>\u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430, \u0438 \u043e\u043d\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0442 \u0441\u0432\u043e\u0439 \u0431\u043b\u043e\u043a \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0446\u0435\u043d\u0435\u043d\u043e \u043a\u0430\u043a&nbsp;<code>False<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>condition = True\nwhile condition == True:\n    print(\"The condition is True\")\n<\/code><\/pre>\n\n\n\n<p>\u042d\u0442\u043e&nbsp;<strong>\u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0446\u0438\u043a\u043b<\/strong>&nbsp;.&nbsp;\u042d\u0442\u043e \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f.<\/p>\n\n\n\n<p>\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0446\u0438\u043a\u043b \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>condition = True\nwhile condition == True:\n    print(\"The condition is True\")\n    condition = False\n\nprint(\"After the loop\")\n<\/code><\/pre>\n\n\n\n<p>\u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u0430\u044f \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f, \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f&nbsp;<code>True<\/code>.&nbsp;\u041d\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f&nbsp;<code>False<\/code>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u0446\u0438\u043a\u043b\u0430.<\/p>\n\n\n\n<p>\u041e\u0431\u044b\u0447\u043d\u043e \u0435\u0441\u0442\u044c \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0446\u0438\u043a\u043b\u043e\u0432:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>count = 0\nwhile count &lt; 10:\n    print(\"The condition is True\")\n    count = count + 1\n\nprint(\"After the loop\")\n<\/code><\/pre>\n\n\n\n<h3 id=\"forloopsinpython\"><code>for<\/code>&nbsp;\u0446\u0438\u043a\u043b\u044b \u0432 Python<\/h3>\n\n\n\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>for<\/code>\u0446\u0438\u043a\u043b\u044b, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043a\u0430\u0437\u0430\u0442\u044c Python \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0431\u043b\u043e\u043a \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437 \u0438 \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u0441\u043f\u0438\u0441\u043a\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items = &#91;1, 2, 3, 4]\nfor item in items:\n    print(item)\n<\/code><\/pre>\n\n\n\n<p>\u0418\u043b\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>range()<\/code>\u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for item in range(04):\n    print(item)\n<\/code><\/pre>\n\n\n\n<p><code>range(4)<\/code>\u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c ,&nbsp;\u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043e\u0442 0 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 4 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430:&nbsp;<code>[0, 1, 2, 3]<\/code>.<\/p>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441, \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432&nbsp;<code>enumerate()<\/code>\u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items = &#91;1, 2, 3, 4]\nfor index, item in enumerate(items):\n    print(index, item)\n<\/code><\/pre>\n\n\n\n<h3 id=\"breakandcontinueinpython\">\u041f\u0440\u0435\u0440\u0432\u0430\u0442\u044c \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0432 Python<\/h3>\n\n\n\n<p>\u041e\u0431\u0430&nbsp;\u0446\u0438\u043a\u043b\u0430&nbsp;<code>while<\/code>\u0438&nbsp;<code>for<\/code>\u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u0440\u0432\u0430\u043d\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0431\u043b\u043e\u043a\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0432\u0443\u0445 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432:&nbsp;<code>break<\/code>\u0438&nbsp;<code>continue<\/code>.<\/p>\n\n\n\n<p><code>continue<\/code>&nbsp;\u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044e \u0438 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 Python \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e.<\/p>\n\n\n\n<p><code>break<\/code>&nbsp;\u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0446\u0438\u043a\u043b \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0446\u0438\u043a\u043b\u0430.<\/p>\n\n\n\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0437\u0434\u0435\u0441\u044c \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442&nbsp;<code>1, 3, 4<\/code>.&nbsp;\u0412\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442&nbsp;<code>1<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>items = &#91;1, 2, 3, 4]\nfor item in items:\n    if item == 2:\n        continue\n    print(item)\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>items = &#91;1, 2, 3, 4]\nfor item in items:\n    if item == 2:\n        break\n    print(item)\n<\/code><\/pre>\n\n\n\n<h2 id=\"classesinpython\">\u041a\u043b\u0430\u0441\u0441\u044b \u043d\u0430 Python<\/h2>\n\n\n\n<p>\u0412 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0442\u0438\u043f\u043e\u0432, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 Python, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0442\u044c \u043d\u0430\u0448\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b, \u0430 \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432.<\/p>\n\n\n\n<p>\u041e\u0431\u044a\u0435\u043a\u0442 &#8212; \u044d\u0442\u043e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043a\u043b\u0430\u0441\u0441\u0430.&nbsp;\u041a\u043b\u0430\u0441\u0441 &#8212; \u044d\u0442\u043e \u0442\u0438\u043f \u043e\u0431\u044a\u0435\u043a\u0442\u0430.<\/p>\n\n\n\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class &lt;class_name&gt;:\n    # my class\n<\/code><\/pre>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u043a\u043b\u0430\u0441\u0441 Dog<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Dog:\n    # the Dog class\n<\/code><\/pre>\n\n\n\n<p>\u041a\u043b\u0430\u0441\u0441 \u043c\u043e\u0436\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Dog:\n    # the Dog class\n    def bark(self):\n        print('WOF!')\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-style-check\"><p><code>self<\/code>&nbsp;\u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043c\u0435\u0442\u043e\u0434\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u043d \u043f\u0440\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u043c\u0435\u0442\u043e\u0434\u0430.<\/p><\/blockquote>\n\n\n\n<p>\u041c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043a\u043b\u0430\u0441\u0441\u0430,&nbsp;<strong>\u043e\u0431\u044a\u0435\u043a\u0442<\/strong>&nbsp;, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044d\u0442\u043e\u0442 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>roger = Dog()\n<\/code><\/pre>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440\u044c&nbsp;<code>roger<\/code>\u044d\u0442\u043e \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u0442\u0438\u043f\u0430 Dog.<\/p>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0442\u044b \u0431\u0435\u0436\u0438\u0448\u044c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(type(roger))\n<\/code><\/pre>\n\n\n\n<p>\u0422\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0448\u044c&nbsp;<code>&lt;class '__main__.Dog'&gt;<\/code><\/p>\n\n\n\n<p>\u041e\u0441\u043e\u0431\u044b\u0439 \u0442\u0438\u043f \u043c\u0435\u0442\u043e\u0434\u0430&nbsp;<code>__init__()<\/code>\u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043e\u043c, \u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Dog:\n    # the Dog class\n    def __init__(self, name, age):\n        self.name = name\n        self.age = age\n\n    def bark(self):\n        print('WOF!')\n<\/code><\/pre>\n\n\n\n<p>\u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u044d\u0442\u043e \u0442\u0430\u043a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>roger = Dog('Roger', 8)\nprint(roger.name) # 'Roger'\nprint(roger.age)  # 8\n\nroger.bark() # 'WOF!'\n<\/code><\/pre>\n\n\n\n<p>\u0412\u0430\u0436\u043d\u0430\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u043e\u0432 &#8212; \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435.<\/p>\n\n\n\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441 Animal \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0442\u043e\u0434\u0430&nbsp;<code>walk()<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Animal:\n    def walk(self):\n        print('Walking..')\n<\/code><\/pre>\n\n\n\n<p>\u0430 \u043a\u043b\u0430\u0441\u0441 Dog \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d \u043e\u0442 Animal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Dog(Animal):\n    def bark(self):\n        print('WOF!')\n<\/code><\/pre>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043a\u043b\u0430\u0441\u0441\u0430&nbsp;<code>Dog<\/code>\u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c&nbsp;<code>walk()<\/code>\u043c\u0435\u0442\u043e\u0434, \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0442&nbsp;<code>Animal<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>roger = Dog()\nroger.walk() # 'Walking..'\nroger.bark() # 'WOF!'\n<\/code><\/pre>\n\n\n\n<h2 id=\"modulesinpython\">\u041c\u043e\u0434\u0443\u043b\u0438 \u0432 Python<\/h2>\n\n\n\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0444\u0430\u0439\u043b Python &#8212; \u044d\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u044c.<\/p>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0438 \u044d\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u0430 \u043b\u044e\u0431\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0441\u0440\u0435\u0434\u043d\u0435\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0441\u0442\u0432\u0443\u0435\u0442 \u0440\u0430\u0437\u0443\u043c\u043d\u043e\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u043a\u043e\u0434\u0430.<\/p>\n\n\n\n<p>\u0412 \u0442\u0438\u043f\u0438\u0447\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 Python \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u043e\u0447\u043a\u0438 \u0432\u0445\u043e\u0434\u0430.&nbsp;\u0414\u0440\u0443\u0433\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438 \u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n\n\n\n<p>\u0424\u0430\u0439\u043b&nbsp;<code>dog.py<\/code>\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u044d\u0442\u043e\u0442 \u043a\u043e\u0434:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def bark():\n    print('WOF!')\n<\/code><\/pre>\n\n\n\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>import<\/code>.&nbsp;\u0418 \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u044b \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u043c, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u043e\u0447\u0435\u0447\u043d\u0443\u044e \u043d\u043e\u0442\u0430\u0446\u0438\u044e&nbsp;<code>dog.bark()<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import dog\n\ndog.bark()\n<\/code><\/pre>\n\n\n\n<p>\u0418\u043b\u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<code>from .. import<\/code>\u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from dog import bark\n\nbark()\n<\/code><\/pre>\n\n\n\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0432\u0441\u0435, \u0447\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e \u0432 \u0444\u0430\u0439\u043b\u0435.<\/p>\n\n\n\n<p>\u0412\u0442\u043e\u0440\u0430\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e.<\/p>\n\n\n\n<p>\u042d\u0442\u0438 \u043c\u043e\u0434\u0443\u043b\u0438 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u0438 \u0438\u043c\u043f\u043e\u0440\u0442 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430 \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435.<\/p>\n\n\n\n<p>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0432\u044b \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043b\u0438&nbsp;<code>dog.py<\/code>\u0432&nbsp;<code>lib<\/code>\u043f\u043e\u0434\u043f\u0430\u043f\u043a\u0443.<\/p>\n\n\n\n<p>\u0412 \u044d\u0442\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0443\u0441\u0442\u043e\u0439 \u0444\u0430\u0439\u043b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c&nbsp;<code>__init__.py<\/code>.&nbsp;\u042d\u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 Python, \u0447\u0442\u043e \u043f\u0430\u043f\u043a\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u043e\u0434\u0443\u043b\u0438.<\/p>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c &#8212; \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c&nbsp;<code>dog<\/code>\u0438\u0437&nbsp;<code>lib<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from lib import dog\n\ndog.bark()\n<\/code><\/pre>\n\n\n\n<p>\u0438\u043b\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430&nbsp;<code>dog<\/code>\u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043c\u043e\u0434\u0443\u043b\u044f, \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c\u0443\u044e \u0438\u0437&nbsp;<code>lib.dog<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from lib.dog import bark\n\nbark()\n<\/code><\/pre>\n\n\n\n<h2 id=\"thepythonstandardlibrary\">\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 Python<\/h2>\n\n\n\n<p>Python \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0447\u0435\u0440\u0435\u0437&nbsp;<strong>\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443<\/strong>&nbsp;.<\/p>\n\n\n\n<p>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 &#8212; \u044d\u0442\u043e \u043e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u0432\u0441\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0443\u0442\u0438\u043b\u0438\u0442, \u043e\u0442 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0443\u0442\u0438\u043b\u0438\u0442 \u0434\u043e \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432.<\/p>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u0447\u043d\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0437\u0434\u0435\u0441\u044c:&nbsp;<a href=\"https:\/\/docs.python.org\/3\/library\/index.html\">https:\/\/docs.python.org\/3\/library\/index.html<\/a><\/p>\n\n\n\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u0432\u0430\u0436\u043d\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439:<\/p>\n\n\n\n<ul><li><code>math<\/code>&nbsp;\u0434\u043b\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0443\u0442\u0438\u043b\u0438\u0442<\/li><li><code>re<\/code>&nbsp;\u0434\u043b\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439<\/li><li><code>json<\/code>&nbsp;\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 JSON<\/li><li><code>datetime<\/code>&nbsp;\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0434\u0430\u0442\u0430\u043c\u0438<\/li><li><code>sqlite3<\/code>&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c SQLite<\/li><li><code>os<\/code>&nbsp;\u0434\u043b\u044f \u0443\u0442\u0438\u043b\u0438\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/li><li><code>random<\/code>&nbsp;\u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b<\/li><li><code>statistics<\/code>&nbsp;\u0434\u043b\u044f \u0443\u0442\u0438\u043b\u0438\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438<\/li><li><code>requests<\/code>&nbsp;\u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0445 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432<\/li><li><code>http<\/code>&nbsp;\u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f HTTP-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432<\/li><li><code>urllib<\/code>&nbsp;\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c URL-\u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438<\/li><\/ul>\n\n\n\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043c\u0441\u044f \u0441 \u0442\u0435\u043c, \u043a\u0430\u043a&nbsp;<em>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<\/em>&nbsp;\u043c\u043e\u0434\u0443\u043b\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.&nbsp;\u0412\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u0442\u0435, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u0430\u043c\u0438 \u043c\u043e\u0434\u0443\u043b\u0438, \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u044f \u0438\u0445 \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043f\u0430\u043f\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n\n\n\n<p>\u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0438 \u0441 \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import math\n\nmath.sqrt(4) # 2.0\n<\/code><\/pre>\n\n\n\n<p>\u0438\u043b\u0438 \u0436\u0435<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from math import sqrt\n\nsqrt(4) # 2.0\n<\/code><\/pre>\n\n\n\n<p>\u0412\u0441\u043a\u043e\u0440\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441 \u043d\u0438\u043c\u0438 \u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n\n\n\n<h2 id=\"thepep8pythonstyleguide\">\u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0441\u0442\u0438\u043b\u044e PEP8 Python<\/h2>\n\n\n\n<p>\u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u043a\u043e\u0434, \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0432\u0430\u043c\u0438 \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u0443\u0447\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u043e\u0431 \u0438\u043c\u0435\u043d\u0430\u0445 \u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438, \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0433\u0447\u0435 \u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u0434, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043b\u044e\u0434\u044c\u043c\u0438, \u0438 \u043b\u044e\u0434\u044f\u043c \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0433\u0447\u0435 \u0447\u0438\u0442\u0430\u0442\u044c \u0432\u0430\u0448 \u043a\u043e\u0434.<\/p>\n\n\n\n<p>Python \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0441\u0432\u043e\u0438 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u0432 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0435 \u043f\u043e \u0441\u0442\u0438\u043b\u044e PEP8.&nbsp;PEP \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a&nbsp;<em>Python Enhancement Proposals,<\/em>&nbsp;\u0438 \u044d\u0442\u043e \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u0432\u0441\u0435 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0438 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u044f \u044f\u0437\u044b\u043a\u0430 Python.<\/p>\n\n\n\n<p>\u0415\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 PEP, \u0432\u0441\u0435 \u043e\u043d\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443&nbsp;<a href=\"https:\/\/www.python.org\/dev\/peps\/\">https:\/\/www.python.org\/dev\/peps\/<\/a>&nbsp;.<\/p>\n\n\n\n<p>PEP8 &#8212; \u043e\u0434\u0438\u043d \u0438\u0437 \u043f\u0435\u0440\u0432\u044b\u0445, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0432\u0430\u0436\u043d\u044b\u0445.&nbsp;\u041e\u043d \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f Python &#171;\u043f\u0438\u0442\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u043c&#187; \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c.<\/p>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u043b\u043d\u043e\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0437\u0434\u0435\u0441\u044c:&nbsp;<a href=\"https:\/\/www.python.org\/dev\/peps\/pep-0008\/\">https:\/\/www.python.org\/dev\/peps\/pep-0008\/,<\/a>&nbsp;\u043d\u043e \u0432\u043e\u0442 \u043a\u0440\u0430\u0442\u043a\u043e\u0435 \u0438\u0437\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432\u0430\u0436\u043d\u044b\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0447\u0430\u0442\u044c:<\/p>\n\n\n\n<ul><li>\u041e\u0442\u0441\u0442\u0443\u043f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432, \u0430 \u043d\u0435 \u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u0438<\/li><li>\u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u043e\u0442\u0441\u0442\u0443\u043f \u0432 4 \u043f\u0440\u043e\u0431\u0435\u043b\u0430.<\/li><li>\u0424\u0430\u0439\u043b\u044b Python \u043a\u043e\u0434\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 UTF-8<\/li><li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c 80 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0434\u0430<\/li><li>\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043a\u0430\u0436\u0434\u043e\u0435 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435<\/li><li>\u0424\u0443\u043d\u043a\u0446\u0438\u0438, \u0438\u043c\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0438\u043c\u0435\u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u0447\u043d\u044b\u043c\u0438 \u0431\u0443\u043a\u0432\u0430\u043c\u0438 \u0441 \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435\u043c \u043c\u0435\u0436\u0434\u0443 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 (snake_case)<\/li><li>\u0418\u043c\u0435\u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0441 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0431\u0443\u043a\u0432\u044b, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u0442\u043e\u0436\u0435 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0441 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0431\u0443\u043a\u0432\u044b (CamelCase)<\/li><li>\u0418\u043c\u0435\u043d\u0430 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0432 \u043d\u0438\u0436\u043d\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 \u0438 \u0431\u0435\u0437 \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u0441\u043b\u043e\u0432\u0430\u043c\u0438.<\/li><li>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f (\u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b), \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0432 \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435.<\/li><li>\u0418\u043c\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0437\u043d\u0430\u0447\u0438\u043c\u044b\u043c\u0438<\/li><li>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438, \u043d\u043e \u0438\u0437\u0431\u0435\u0433\u0430\u0439\u0442\u0435 \u044f\u0432\u043d\u044b\u0445.<\/li><li>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u0432\u043e\u043a\u0440\u0443\u0433 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432<\/li><li>\u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u044b<\/li><li>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u0435\u0440\u0435\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439<\/li><li>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043c\u0435\u0436\u0434\u0443 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u0432 \u043a\u043b\u0430\u0441\u0441\u0435<\/li><li>\u0412\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \/ \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043f\u0443\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u043e\u0431\u043b\u0435\u0433\u0447\u0435\u043d\u0438\u044f \u0447\u0442\u0435\u043d\u0438\u044f.<\/li><\/ul>\n\n\n\n<h2 id=\"debugginginpython\">\u041e\u0442\u043b\u0430\u0434\u043a\u0430 \u0432 Python<\/h2>\n\n\n\n<p>\u041e\u0442\u043b\u0430\u0434\u043a\u0430 &#8212; \u043e\u0434\u0438\u043d \u0438\u0437 \u043b\u0443\u0447\u0448\u0438\u0445 \u043d\u0430\u0432\u044b\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0432\u0430\u043c \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445.<\/p>\n\n\n\n<p>\u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a.&nbsp;\u0423 Python \u0435\u0441\u0442\u044c&nbsp;<code>pdb<\/code>, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443.<\/p>\n\n\n\n<p>\u0412\u044b \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0435\u0442\u0435, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u043e\u0434\u043d\u0443 \u0442\u043e\u0447\u043a\u0443 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430 \u0432 \u0441\u0432\u043e\u0439 \u043a\u043e\u0434:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>breakpoint()\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-style-warning\"><p>\u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0442\u043e\u0447\u0435\u043a \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430.<\/p><\/blockquote>\n\n\n\n<p>\u041a\u043e\u0433\u0434\u0430 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 Python \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u0442 \u0442\u043e\u0447\u043a\u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430 \u0432 \u0432\u0430\u0448\u0435\u043c \u043a\u043e\u0434\u0435, \u043e\u043d \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438 \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u0432\u0430\u043c, \u043a\u0430\u043a\u0443\u044e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u043e\u043d \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442.<\/p>\n\n\n\n<p>\u0422\u043e\u0433\u0434\u0430 \u0438 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0449\u0435\u0439.<\/p>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0432\u0435\u0441\u0442\u0438 \u0438\u043c\u044f \u043b\u044e\u0431\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0436\u0430\u0442\u044c,&nbsp;<code>n<\/code>\u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.&nbsp;\u0415\u0441\u043b\u0438 \u043a\u043e\u0434 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u0432 \u043d\u0438\u0445 \u043d\u0435 \u043b\u0435\u0437\u0435\u0442, \u0430 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0438\u0445 \u00ab\u0447\u0435\u0440\u043d\u044b\u043c\u0438 \u044f\u0449\u0438\u043a\u0430\u043c\u0438\u00bb.<\/p>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0436\u0430\u0442\u044c,&nbsp;<code>s<\/code>\u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.&nbsp;\u0415\u0441\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439, \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u0432 \u043d\u0435\u0435, \u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u043e \u043e\u0434\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0437\u0430 \u0440\u0430\u0437.<\/p>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0436\u0430\u0442\u044c,&nbsp;<code>c<\/code>\u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0448\u0430\u0433 \u0437\u0430 \u0448\u0430\u0433\u043e\u043c.<\/p>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0436\u0430\u0442\u044c,&nbsp;<code>q<\/code>\u0447\u0442\u043e\u0431\u044b \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n\n\n\n<p>\u041e\u0442\u043b\u0430\u0434\u043a\u0430 \u043f\u043e\u043b\u0435\u0437\u043d\u0430 \u0434\u043b\u044f \u043e\u0446\u0435\u043d\u043a\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u043d\u0430\u0442\u044c, \u043a\u0430\u043a \u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u0438\u043b\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c.<\/p>\n\n\n\n<h2 id=\"variablescopeinpython\">\u041e\u0431\u043b\u0430\u0441\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0432 Python<\/h2>\n\n\n\n<p>\u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u044d\u0442\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0432\u0438\u0434\u043d\u0430 \u0432 \u0447\u0430\u0441\u0442\u044f\u0445 \u0432\u0430\u0448\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0433\u0434\u0435 \u0432\u044b \u0435\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442\u0435.<\/p>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u0435 \u0435\u0435 \u0432\u043d\u0435 \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u043d\u0430 \u043b\u044e\u0431\u043e\u043c\u0443 \u043a\u043e\u0434\u0443, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>age = 8\n\ndef test():\n    print(age)\n\nprint(age) # 8\ntest() # 8\n<\/code><\/pre>\n\n\n\n<p>\u041c\u044b \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u044d\u0442\u043e&nbsp;<strong>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439<\/strong>&nbsp;.<\/p>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u044d\u0442\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f&nbsp;<strong>\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439<\/strong>&nbsp;\u0438 \u0432\u0438\u0434\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.&nbsp;\u0412\u043d\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u043d \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def test():\n    age = 8\n    print(age)\n\ntest() # 8\n\nprint(age)\n# NameError: name 'age' is not defined\n<\/code><\/pre>\n\n\n\n<h2 id=\"howtoacceptargumentsfromthecommandlineinpython\">\u041a\u0430\u043a \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 Python<\/h2>\n\n\n\n<p>Python \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n\n\n\n<p>\u0414\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u0432\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043b\u0438\u0431\u043e \u0438\u0437 REPL, \u043b\u0438\u0431\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python &lt;filename&gt;.py\n<\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python &lt;filename&gt;.py &lt;argument1&gt;\npython &lt;filename&gt;.py &lt;argument1&gt; &lt;argument2&gt;\n<\/code><\/pre>\n\n\n\n<p>\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u044d\u0442\u0438\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 &#8212; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<code>sys<\/code>\u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<\/p>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b, \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0432&nbsp;<code>sys.argv<\/code>\u0441\u043f\u0438\u0441\u043a\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import sys\nprint(len(sys.argv))\nprint(sys.argv)\n<\/code><\/pre>\n\n\n\n<p><code>sys.argv<\/code>\u0421\u043f\u0438\u0441\u043e\u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432&nbsp;\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430 ,&nbsp;\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u0437\u0430\u043f\u0443\u0449\u0435\u043d, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440&nbsp;<code>['main.py']<\/code>.<\/p>\n\n\n\n<p>\u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431, \u043d\u043e \u0432\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443.&nbsp;\u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b, \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0438\u0445 \u0442\u0438\u043f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439, \u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u043e\u0442\u0437\u044b\u0432 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0435\u0441\u043b\u0438 \u043e\u043d \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443.<\/p>\n\n\n\n<p>Python \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043f\u0430\u043a\u0435\u0442 \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 ,&nbsp;\u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043c\u043e\u0447\u044c \u0432\u0430\u043c:&nbsp;<code>argparse<\/code>.<\/p>\n\n\n\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0435&nbsp;<code>argparse<\/code>\u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0435&nbsp;<code>argparse.ArgumentParser()<\/code>, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import argparse\n\nparser = argparse.ArgumentParser(\n    description='This program prints the name of my dogs'\n)\n<\/code><\/pre>\n\n\n\n<p>\u0417\u0430\u0442\u0435\u043c \u0432\u044b \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u0435 \u043a \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u0438\u043d\u044f\u0442\u044c.<br>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043c\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c&nbsp;<code>-c<\/code>\u043e\u043f\u0446\u0438\u044e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0446\u0432\u0435\u0442\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<code>python program.py -c red<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import argparse\n\nparser = argparse.ArgumentParser(\n    description='This program prints a color HEX value'\n)\n\nparser.add_argument('-c', '--color', metavar='color', required=True, help='the color to search for')\n\nargs = parser.parse_args()\n\nprint(args.color) # 'red'\n<\/code><\/pre>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0432\u044b\u0434\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u279c  python python program.py\nusage: program.py &#91;-h] -c color\nprogram.py: error: the following arguments are required: -c\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043e\u043f\u0446\u0438\u044e, \u0447\u0442\u043e\u0431\u044b \u0438\u043c\u0435\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>choices<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>parser.add_argument('-c', '--color', metavar='color', required=True, choices={'red','yellow'}, help='the color to search for')\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\u279c  python python program.py -c blue\nusage: program.py &#91;-h] -c color\nprogram.py: error: argument -c\/--color: invalid choice: 'blue' (choose from 'yellow', 'red')\n<\/code><\/pre>\n\n\n\n<p>\u0415\u0441\u0442\u044c \u0435\u0449\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b, \u043d\u043e \u044d\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u044b.<\/p>\n\n\n\n<p>\u0418 \u0435\u0441\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440&nbsp;<a href=\"https:\/\/click.palletsprojects.com\/en\/7.x\/\">Click<\/a>&nbsp;\u0438&nbsp;<a href=\"https:\/\/python-prompt-toolkit.readthedocs.io\/en\/master\/index.html\">Python Prompt Toolkit<\/a>&nbsp;.<\/p>\n\n\n\n<h2 id=\"lambdafunctionsinpython\">\u041b\u044f\u043c\u0431\u0434\u0430-\u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 Python<\/h2>\n\n\n\n<p>\u041b\u044f\u043c\u0431\u0434\u0430-\u0444\u0443\u043d\u043a\u0446\u0438\u0438 (\u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0435 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438) &#8212; \u044d\u0442\u043e \u043a\u0440\u043e\u0448\u0435\u0447\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 \u0438\u043c\u0435\u043d\u0438 \u0438 \u0438\u043c\u0435\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0432\u043e\u0435\u0433\u043e \u0442\u0435\u043b\u0430.<\/p>\n\n\n\n<p>\u0412 Python \u043e\u043d\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>lambda<\/code>\u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lambda &lt;arguments&gt; : &lt;expression&gt;\n<\/code><\/pre>\n\n\n\n<p>\u0422\u0435\u043b\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c &#8212; \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c, \u0430 \u043d\u0435 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435\u043c.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-warning\"><p>\u042d\u0442\u0430 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432\u0430\u0436\u043d\u0430.&nbsp;\u0412\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f &#8212; \u043d\u0435\u0442.<\/p><\/blockquote>\n\n\n\n<p>\u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u043b\u044f\u043c\u0431\u0434\u0430-\u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u0443\u0434\u0432\u0430\u0438\u0432\u0430\u044e\u0449\u0430\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lambda num : num * 2\n<\/code><\/pre>\n\n\n\n<p>\u041b\u044f\u043c\u0431\u0434\u0430-\u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lambda a, b : a * b\n<\/code><\/pre>\n\n\n\n<p>\u041b\u044f\u043c\u0431\u0434\u0430-\u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0435\u043b\u044c\u0437\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u043d\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>multiply = lambda a, b : a * b\n\nprint(multiply(2, 2)) # 4\n<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0441\u0442\u044c \u043b\u044f\u043c\u0431\u0434\u0430-\u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0438 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 Python, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0438 \u0441&nbsp;<code>map()<\/code>,&nbsp;<code>filter()<\/code>\u0438&nbsp;<code>reduce()<\/code>.<\/p>\n\n\n\n<h2 id=\"recursioninpython\">\u0420\u0435\u043a\u0443\u0440\u0441\u0438\u044f \u0432 Python<\/h2>\n\n\n\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0432 Python \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u0430\u043c\u0430 \u0441\u0435\u0431\u044f.&nbsp;\u0412\u043e\u0442 \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u044f.&nbsp;\u0418 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f\u0445.<\/p>\n\n\n\n<p>\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u044e &#8212; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435.<\/p>\n\n\n\n<p>\u0424\u0430\u043a\u0442\u043e\u0440\u0438\u0430\u043b \u0447\u0438\u0441\u043b\u0430 &#8212; \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e,&nbsp;<code>n<\/code>\u0443\u043c\u043d\u043e\u0436\u0435\u043d\u043d\u043e\u0435 \u043d\u0430&nbsp;<code>n-1<\/code>, \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u043d\u043e\u0435 \u043d\u0430&nbsp;<code>n-2<\/code>&#8230; \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0443\u0442\u043e \u0447\u0438\u0441\u043b\u043e&nbsp;<code>1<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>3! = 3 * 2 * 1 = 6\n4! = 4 * 3 * 2 * 1 = 24\n5! = 5 * 4 * 3 * 2 * 1 = 120\n<\/code><\/pre>\n\n\n\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u044e, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0430\u043b \u043b\u044e\u0431\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def factorial(n):\n    if n == 1: return 1\n    return n * factorial(n-1)\n\nprint(factorial(3)) #   6\nprint(factorial(4)) #  24\nprint(factorial(5)) # 120\n<\/code><\/pre>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0438&nbsp;<code>factorial()<\/code>\u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438&nbsp;<code>factorial(n)<\/code>\u0432\u043c\u0435\u0441\u0442\u043e&nbsp;<code>factorial(n-1)<\/code>, \u0432\u044b \u0432\u044b\u0437\u043e\u0432\u0435\u0442\u0435 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u0443\u044e \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u044e.&nbsp;Python \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u044e \u043f\u0440\u0438 1000 \u0432\u044b\u0437\u043e\u0432\u0430\u0445, \u0438 \u043f\u0440\u0438 \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u043b\u0438\u043c\u0438\u0442\u0430 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435&nbsp;<code>RecursionError<\/code>\u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435.<\/p>\n\n\n\n<p>\u0420\u0435\u043a\u0443\u0440\u0441\u0438\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u0430 \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u0438 \u200b\u200b\u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043d\u0430\u043c \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u043d\u0430\u0448 \u043a\u043e\u0434, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u043d\u0430\u0442\u044c \u044d\u0442\u0443 \u0442\u0435\u0445\u043d\u0438\u043a\u0443.<\/p>\n\n\n\n<h2 id=\"nestedfunctionsinpython\">\u0412\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 Python<\/h2>\n\n\n\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 Python \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0432\u043b\u043e\u0436\u0435\u043d\u044b \u0432 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n\n\n\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0432\u0438\u0434\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n\n\n\n<p>\u042d\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0443\u0442\u0438\u043b\u0438\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043d\u043e \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u044b \u0432\u043d\u0435 \u0435\u0435.<\/p>\n\n\n\n<p>\u0412\u044b \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u0435: \u0430 \u0437\u0430\u0447\u0435\u043c \u043c\u043d\u0435 \u00ab\u043f\u0440\u044f\u0442\u0430\u0442\u044c\u00bb \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u043d\u0435 \u0432\u0440\u0435\u0434\u0438\u0442?<\/p>\n\n\n\n<p>\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u043b\u0443\u0447\u0448\u0435 \u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u043f\u0440\u0438\u0433\u043e\u0434\u044f\u0442\u0441\u044f.<\/p>\n\n\n\n<p>\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u0437\u0436\u0435).<\/p>\n\n\n\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def talk(phrase):\n    def say(word):\n        print(word)\n\n    words = phrase.split(' ')\n    for word in words:\n        say(word)\n\ntalk('I am going to buy the milk')\n<\/code><\/pre>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0438\u0437 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0432\u0430\u043c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u0435\u0435 \u043a\u0430\u043a&nbsp;<code>nonlocal<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def count():\n    count = 0\n\n    def increment():\n        nonlocal count\n        count = count + 1\n        print(count)\n\n    increment()\n\ncount()\n<\/code><\/pre>\n\n\n\n<p>\u042d\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0439, \u043a\u0430\u043a \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n\n\n\n<h2 id=\"closuresinpython\">\u0417\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f \u0432 Python<\/h2>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0435 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u044d\u0442\u0430 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u0432 \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u044d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u0430.<\/p>\n\n\n\n<p>\u0412\u043e\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0432\u0441\u0442\u0440\u0435\u0447\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def counter():\n    count = 0\n\n    def increment():\n        nonlocal count\n        count = count + 1\n        return count\n\n    return increment\n\nincrement = counter()\n\nprint(increment()) # 1\nprint(increment()) # 2\nprint(increment()) # 3\n<\/code><\/pre>\n\n\n\n<p>\u041c\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c&nbsp;<code>increment()<\/code>\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0438 \u043e\u043d\u0430 \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044e&nbsp;<code>count<\/code>\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438&nbsp;<code>counter()<\/code>\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0430\u0441\u044c.<\/p>\n\n\n\n<h2 id=\"decoratorsinpython\">\u0414\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u044b \u0432 Python<\/h2>\n\n\n\n<p>\u0414\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u044b &#8212; \u044d\u0442\u043e \u0441\u043f\u043e\u0441\u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c, \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u0438\u043b\u0438 \u043a\u0430\u043a\u0438\u043c-\u043b\u0438\u0431\u043e \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n\n\n\n<p>\u0414\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>@<\/code>\u0441\u0438\u043c\u0432\u043e\u043b\u0430, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u043c\u044f \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u0430, \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u0434 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n\n\n\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@logtime\ndef hello():\n    print('hello!')\n<\/code><\/pre>\n\n\n\n<p>\u042d\u0442\u043e\u0439&nbsp;<code>hello<\/code>\u0444\u0443\u043d\u043a\u0446\u0438\u0438&nbsp;<code>logtime<\/code>\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440.<\/p>\n\n\n\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c&nbsp;<code>hello()<\/code>, \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440.<\/p>\n\n\n\n<p>\u0414\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440 &#8212; \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430, \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c, \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u044d\u0442\u0443 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e.&nbsp;\u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def logtime(func):\n    def wrapper():\n        # do something before\n        val = func()\n        # do something after\n        return val\n    return wrapper\n<\/code><\/pre>\n\n\n\n<h2 id=\"docstringsinpython\">\u0421\u0442\u0440\u043e\u043a\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0432 Python<\/h2>\n\n\n\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0447\u0440\u0435\u0437\u0432\u044b\u0447\u0430\u0439\u043d\u043e \u0432\u0430\u0436\u043d\u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u043c \u043b\u044e\u0434\u044f\u043c, \u043a\u0430\u043a\u043e\u0432\u0430 \u0446\u0435\u043b\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \/ \u043a\u043b\u0430\u0441\u0441\u0430 \/ \u043c\u0435\u0442\u043e\u0434\u0430 \/ \u043c\u043e\u0434\u0443\u043b\u044f, \u043d\u043e \u0438 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e\u0431 \u044d\u0442\u043e\u043c \u0432\u0430\u043c.<\/p>\n\n\n\n<p>\u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u0432\u0435\u0440\u043d\u0435\u0442\u0435\u0441\u044c \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u043a\u043e\u0434\u0443 \u0447\u0435\u0440\u0435\u0437 6 \u0438\u043b\u0438 12 \u043c\u0435\u0441\u044f\u0446\u0435\u0432, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0435 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0432\u0441\u0435 \u0437\u043d\u0430\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0432 \u0441\u0432\u043e\u0435\u0439 \u0433\u043e\u043b\u043e\u0432\u0435.&nbsp;\u0412 \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432\u0430\u0448 \u043a\u043e\u0434 \u0438 \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n\n\n\n<p>\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 &#8212; \u044d\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043f\u043e\u043c\u043e\u0447\u044c \u0441\u0435\u0431\u0435 (\u0438 \u0434\u0440\u0443\u0433\u0438\u043c):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># this is a comment\n\nnum = 1 #this is another comment\n<\/code><\/pre>\n\n\n\n<p>\u0414\u0440\u0443\u0433\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 &#8212; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<strong>\u0441\u0442\u0440\u043e\u043a\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/strong>&nbsp;.<\/p>\n\n\n\n<p>\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0441\u0442\u044c \u0441\u0442\u0440\u043e\u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f\u043c.&nbsp;\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438.<\/p>\n\n\n\n<p>\u0412\u043e\u0442 \u043a\u0430\u043a \u0432\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def increment(n):\n    \"\"\"Increment a number\"\"\"\n    return n + 1\n<\/code><\/pre>\n\n\n\n<p>\u0412\u043e\u0442 \u043a\u0430\u043a \u0432\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u0430 \u0438 \u043c\u0435\u0442\u043e\u0434\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Dog:\n    \"\"\"A class representing a dog\"\"\"\n    def __init__(self, name, age):\n        \"\"\"Initialize a new dog\"\"\"\n        self.name = name\n        self.age = age\n\n    def bark(self):\n        \"\"\"Let the dog bark\"\"\"\n        print('WOF!')\n<\/code><\/pre>\n\n\n\n<p>\u0417\u0430\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u043c\u043e\u0434\u0443\u043b\u044c, \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0432 \u0441\u0442\u0440\u043e\u043a\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0432\u0432\u0435\u0440\u0445\u0443 \u0444\u0430\u0439\u043b\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u044d\u0442\u043e&nbsp;<code>dog.py<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"\"\"Dog module\n\nThis module does ... bla bla bla and provides the following classes:\n\n- Dog\n...\n\"\"\"\n\nclass Dog:\n    \"\"\"A class representing a dog\"\"\"\n    def __init__(self, name, age):\n        \"\"\"Initialize a new dog\"\"\"\n        self.name = name\n        self.age = age\n\n    def bark(self):\n        \"\"\"Let the dog bark\"\"\"\n        print('WOF!')\n<\/code><\/pre>\n\n\n\n<p>\u0421\u0442\u0440\u043e\u043a\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u0433\u0443\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def increment(n):\n    \"\"\"Increment\n    a number\n    \"\"\"\n    return n + 1\n<\/code><\/pre>\n\n\n\n<p>Python \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438\u0445, \u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<code>help()<\/code>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u0430 \/ \u043c\u0435\u0442\u043e\u0434\u0430 \/ \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \/ \u043c\u043e\u0434\u0443\u043b\u044f.<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u044b\u0437\u043e\u0432&nbsp;<code>help(increment)<\/code>\u0434\u0430\u0441\u0442 \u0432\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Help on function increment in module\n__main__:\n\nincrement(n)\n    Increment\n    a number\n<\/code><\/pre>\n\n\n\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u043b\u044e\u0431\u0438\u043c\u043e\u0433\u043e.<\/p>\n\n\n\n<p>\u041c\u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 Google:&nbsp;<a href=\"https:\/\/github.com\/google\/styleguide\/blob\/gh-pages\/pyguide.md#38-comments-and-docstrings\">https:\/\/github.com\/google\/styleguide\/blob\/gh-pages\/pyguide.md#38-comments-and-docstrings<\/a><\/p>\n\n\n\n<p>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u044b \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0438\u043c\u0435\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0434\u0430.<\/p>\n\n\n\n<h2 id=\"introspectioninpython\">\u0421\u0430\u043c\u043e\u0430\u043d\u0430\u043b\u0438\u0437 \u0432 Python<\/h2>\n\n\n\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438, \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<strong>\u0438\u043d\u0442\u0440\u043e\u0441\u043f\u0435\u043a\u0446\u0438\u0438<\/strong>&nbsp;.<\/p>\n\n\n\n<p>\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>help()<\/code>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e, \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u200b\u200b\u0432 \u0432\u0438\u0434\u0435 \u0441\u0442\u0440\u043e\u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438.<\/p>\n\n\n\n<p>\u0417\u0430\u0442\u0435\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c print () \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def increment(n):\n    return n + 1\n\nprint(increment)\n\n# &lt;function increment at 0x7f420e2973a0&gt;\n<\/code><\/pre>\n\n\n\n<p>\u0438\u043b\u0438 \u043e\u0431\u044a\u0435\u043a\u0442:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Dog():\n    def bark(self):\n        print('WOF!')\n\nroger = Dog()\n\nprint(roger)\n\n# &lt;__main__.Dog object at 0x7f42099d3340&gt;\n<\/code><\/pre>\n\n\n\n<p><code>type()<\/code>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u0430\u0435\u0442 \u043d\u0430\u043c \u0442\u0438\u043f \u043e\u0431\u044a\u0435\u043a\u0442\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(type(increment))\n# &lt;class 'function'&gt;\n\nprint(type(roger))\n# &lt;class '__main__.Dog'&gt;\n\nprint(type(1))\n# &lt;class 'int'&gt;\n\nprint(type('test'))\n# &lt;class 'str'&gt;\n<\/code><\/pre>\n\n\n\n<p><code>dir()<\/code>\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u0443\u0437\u043d\u0430\u0442\u044c \u0432\u0441\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(dir(roger))\n\n# &#91;'__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'bark']\n<\/code><\/pre>\n\n\n\n<p>\u0412&nbsp;<code>id()<\/code>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u043c \u043c\u0435\u0441\u0442\u043e \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print(id(roger)) # 140227518093024\nprint(id(1))     # 140227521172384\n<\/code><\/pre>\n\n\n\n<p>\u041c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043b\u0438 \u0434\u0432\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043e\u0431\u044a\u0435\u043a\u0442.<\/p>\n\n\n\n<p><code>inspect<\/code>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u0447\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u0430\u0435\u0442 \u043d\u0430\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 ,&nbsp;\u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u0445, \u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0435\u0433\u043e \u0437\u0434\u0435\u0441\u044c:&nbsp;<a href=\"https:\/\/docs.python.org\/3\/library\/inspect.html\">https:\/\/docs.python.org\/3\/library\/inspect.html<\/a><\/p>\n\n\n\n<h2 id=\"annotationsinpython\">\u0410\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u0432 Python<\/h2>\n\n\n\n<p>Python \u0438\u043c\u0435\u0435\u0442 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044e.&nbsp;\u041d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u0438\u043f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0438\u043b\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u043b\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n\n\n\n<p>\u0410\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043d\u0430\u043c (\u043f\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u044e) \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e.<\/p>\n\n\n\n<p>\u042d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0435\u0437 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0439:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def increment(n):\n    return n + 1\n<\/code><\/pre>\n\n\n\n<p>\u042d\u0442\u043e \u0442\u0430 \u0436\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0441 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044f\u043c\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def increment(n: int) -&gt; int:\n    return n + 1\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0430\u043d\u043d\u043e\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>count: int = 0\n<\/code><\/pre>\n\n\n\n<p>Python \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442 \u044d\u0442\u0438 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438.&nbsp;\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c&nbsp;<a href=\"http:\/\/mypy-lang.org\/\"><code>mypy<\/code><\/a>\u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e \u0438\u043b\u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d \u0432 IDE, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 VS Code \u0438\u043b\u0438 PyCharm, \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u0442\u0438\u043f\u0430 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.&nbsp;\u042d\u0442\u043e \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0432\u0430\u043c \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u043d\u0435\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0442\u0438\u043f\u043e\u0432 \u0435\u0449\u0435 \u0434\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u0434\u0430.<\/p>\n\n\n\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u043f\u043e\u043c\u043e\u0449\u044c, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u0432\u0430\u0448\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043c, \u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0440\u0435\u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434.<\/p>\n\n\n\n<h2 id=\"exceptionsinpython\">\u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432 Python<\/h2>\n\n\n\n<p>\u0412\u0430\u0436\u043d\u043e \u0438\u043c\u0435\u0442\u044c \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438, \u0438 Python \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439.<\/p>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u043e\u0434\u0430 \u0432&nbsp;<code>try:<\/code>\u0431\u043b\u043e\u043a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try:\n    # some lines of code\n<\/code><\/pre>\n\n\n\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043a\u0438 Python \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u0442 \u0432\u0430\u0441, \u0438 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u043a\u0430\u043a\u043e\u0439 \u0442\u0438\u043f \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u0435\u043b, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>except<\/code>\u0431\u043b\u043e\u043a\u043e\u0432:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try:\n    # some lines of code\nexcept &lt;ERROR1&gt;:\n    # handler &lt;ERROR1&gt;\nexcept &lt;ERROR2&gt;:\n    # handler &lt;ERROR2&gt;\n<\/code><\/pre>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<code>except<\/code>\u0431\u0435\u0437 \u043a\u0430\u043a\u043e\u0433\u043e-\u043b\u0438\u0431\u043e \u0442\u0438\u043f\u0430 \u043e\u0448\u0438\u0431\u043a\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try:\n    # some lines of code\nexcept &lt;ERROR1&gt;:\n    # handler &lt;ERROR1&gt;\nexcept:\n    # catch all other exceptions\n<\/code><\/pre>\n\n\n\n<p><code>else<\/code>\u0411\u043b\u043e\u043a \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f ,&nbsp;\u0435\u0441\u043b\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try:\n    # some lines of code\nexcept &lt;ERROR1&gt;:\n    # handler &lt;ERROR1&gt;\nexcept &lt;ERROR2&gt;:\n    # handler &lt;ERROR2&gt;\nelse:\n    # no exceptions were raised, the code ran successfully\n<\/code><\/pre>\n\n\n\n<p><code>finally<\/code>\u0411\u043b\u043e\u043a \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0442\u043e\u0433\u043e,&nbsp;\u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0430 \u0438\u043b\u0438 \u043d\u0435\u0442:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try:\n    # some lines of code\nexcept &lt;ERROR1&gt;:\n    # handler &lt;ERROR1&gt;\nexcept &lt;ERROR2&gt;:\n    # handler &lt;ERROR2&gt;\nelse:\n    # no exceptions were raised, the code ran successfully\nfinally:\n    # do something in any case\n<\/code><\/pre>\n\n\n\n<p>\u041a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0442\u0438, \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0439 \u0432\u0430\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438.<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0432\u044b \u0447\u0438\u0442\u0430\u0435\u0442\u0435 \u0444\u0430\u0439\u043b, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435&nbsp;<code>EOFError<\/code>.&nbsp;\u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435 \u0447\u0438\u0441\u043b\u043e \u043d\u0430 \u043d\u043e\u043b\u044c, \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435&nbsp;<code>ZeroDivisionError<\/code>.&nbsp;\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0438\u043f\u043e\u0432, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0444\u0430\u0439\u043b&nbsp;<code>TypeError<\/code>.<\/p>\n\n\n\n<p>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u044d\u0442\u043e\u0442 \u043a\u043e\u0434:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>result = 2 \/ 0\nprint(result)\n<\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044f \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Traceback (most recent call last):\n  File \"main.py\", line 1, in &lt;module&gt;\n    result = 2 \/ 0\nZeroDivisionError: division by zero\n<\/code><\/pre>\n\n\n\n<p>\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u043e\u0434\u0430 \u043f\u043e\u0441\u043b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043d\u0435 \u0431\u0443\u0434\u0443\u0442.<\/p>\n\n\n\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0432&nbsp;<code>try:<\/code>\u0431\u043b\u043e\u043a \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u043f\u043b\u0430\u0432\u043d\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try:\n    result = 2 \/ 0\nexcept ZeroDivisionError:\n    print('Cannot divide by zero!')\nfinally:\n    result = 1\n\nprint(result) # 1\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432 \u0441\u0432\u043e\u0435\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u043a\u043e\u0434\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f&nbsp;<code>raise<\/code>\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>raise Exception('An error occurred!')\n<\/code><\/pre>\n\n\n\n<p>\u042d\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u0431\u0449\u0435\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435, \u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u0435\u0433\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try:\n    raise Exception('An error occurred!')\nexcept Exception as error:\n    print(error)\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u044e\u0449\u0438\u0439\u0441\u044f \u043e\u0442 Exception:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class DogNotFoundException(Exception):\n    pass\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-style-warning\"><p><code>pass<\/code>&nbsp;\u0437\u0434\u0435\u0441\u044c \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u00ab\u043d\u0438\u0447\u0435\u0433\u043e\u00bb, \u0438 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043a\u043b\u0430\u0441\u0441 \u0431\u0435\u0437 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0438\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0431\u0435\u0437 \u043a\u043e\u0434\u0430 \u0442\u043e\u0436\u0435.<\/p><\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>try:\n    raise DogNotFoundException()\nexcept DogNotFoundException:\n    print('Dog not found!')\n<\/code><\/pre>\n\n\n\n<h2 id=\"thewithstatementinpython\"><code>with<\/code>\u0417\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 Python<\/h2>\n\n\n\n<p>\u042d\u0442\u043e\u0442&nbsp;<code>with<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0434\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439.<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b, \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043e \u0435\u0433\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0438.<\/p>\n\n\n\n<p><code>with<\/code>&nbsp;\u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u043c.<\/p>\n\n\n\n<p>\u0412\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0438\u0441\u0430\u0442\u044c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>filename = '\/Users\/flavio\/test.txt'\n\ntry:\n    file = open(filename, 'r')\n    content = file.read()\n    print(content)\nfinally:\n    file.close()\n<\/code><\/pre>\n\n\n\n<p>\u0422\u044b \u043c\u043e\u0436\u0435\u0448\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>filename = '\/Users\/flavio\/test.txt'\n\nwith open(filename, 'r') as file:\n    content = file.read()\n    print(content)\n<\/code><\/pre>\n\n\n\n<p>\u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u043d\u0435\u044f\u0432\u043d\u0430\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439,&nbsp;<code>close()<\/code>\u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043d\u0430\u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438.<\/p>\n\n\n\n<p><code>with<\/code>\u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438.&nbsp;\u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0441 \u0435\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438.<\/p>\n\n\n\n<h2 id=\"howtoinstall3rdpartypackagesinpythonusingpip\">\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0432 Python \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>pip<\/code><\/h2>\n\n\n\n<p>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 Python \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0442\u0438\u043b\u0438\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u043f\u0440\u043e\u0449\u0430\u044e\u0442 \u043d\u0430\u0448\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u0438 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 Python, \u043d\u043e \u043d\u0438\u0447\u0442\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u044c&nbsp;<em>\u0432\u0441\u0435<\/em>&nbsp;.<\/p>\n\n\n\n<p>\u0412\u043e\u0442 \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043b\u0438\u0446\u0430 \u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u043f\u0430\u043a\u0435\u0442\u044b \u0438 \u0434\u0435\u043b\u0430\u044e\u0442 \u0438\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\u0438 \u043a\u0430\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0434\u043b\u044f \u0432\u0441\u0435\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430.<\/p>\n\n\n\n<p>\u0412\u0441\u0435 \u044d\u0442\u0438 \u043c\u043e\u0434\u0443\u043b\u0438 \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435,&nbsp;<strong>\u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 Python<\/strong>&nbsp;\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430&nbsp;<a href=\"https:\/\/pypi.org\/\">https:\/\/pypi.org<\/a>&nbsp;, \u0438 \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>pip<\/code>.<\/p>\n\n\n\n<p>\u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435 \u0431\u043e\u043b\u0435\u0435 270 000 \u043f\u0430\u043a\u0435\u0442\u043e\u0432.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-warning\"><p>\u0412\u044b&nbsp;<code>pip<\/code>\u0443\u0436\u0435&nbsp;\u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u043b\u0438&nbsp;\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 Python.<\/p><\/blockquote>\n\n\n\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043b\u044e\u0431\u043e\u0439 \u043f\u0430\u043a\u0435\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b&nbsp;<code>pip install<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install &lt;package&gt;\n<\/code><\/pre>\n\n\n\n<p>\u0438\u043b\u0438, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0435\u0433\u043e&nbsp;<code>python -m<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python -m pip install &lt;package&gt;\n<\/code><\/pre>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c&nbsp;<a href=\"https:\/\/pypi.org\/project\/requests\/\"><code>requests<\/code><\/a>\u043f\u0430\u043a\u0435\u0442 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 HTTP:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install requests\n<\/code><\/pre>\n\n\n\n<p>\u0438 \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u0442\u0435, \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0432\u0430\u0448\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 Python, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0430\u043a\u0435\u0442\u044b \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e.<\/p>\n\n\n\n<p>\u0422\u043e\u0447\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0432\u0430\u0448\u0435\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n\n\n\n<p>\u041d\u0430 MacOS, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430&nbsp;Python 3.9, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435&nbsp;<code>\/Library\/Frameworks\/Python.framework\/Versions\/3.9\/lib\/python3.9\/site-packages<\/code>.<\/p>\n\n\n\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u043f\u0430\u043a\u0435\u0442 \u0434\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install \u2013U &lt;package&gt;\n<\/code><\/pre>\n\n\n\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u0430\u043a\u0435\u0442\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install &lt;package&gt;==&lt;version&gt;\n<\/code><\/pre>\n\n\n\n<p>\u0423\u0434\u0430\u043b\u0438\u0442\u0435 \u043f\u0430\u043a\u0435\u0442, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip uninstall &lt;package&gt;\n<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e\u0431 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u043c \u043f\u0430\u043a\u0435\u0442\u0435, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044e, \u0432\u0435\u0431-\u0441\u0430\u0439\u0442 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u0430\u0432\u0442\u043e\u0440\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip show &lt;package&gt;\n<\/code><\/pre>\n\n\n\n<h2 id=\"listcomprehensionsinpython\">\u0421\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0432 Python<\/h2>\n\n\n\n<p>\u0421\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 &#8212; \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u043e\u0432.<\/p>\n\n\n\n<p>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>numbers = &#91;1, 2, 3, 4, 5]\n<\/code><\/pre>\n\n\n\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0438\u0437&nbsp;<code>numbers<\/code>\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043f\u0438\u0441\u043a\u0430, \u0441\u0442\u0435\u043f\u0435\u043d\u044c 2:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>numbers_power_2 = &#91;n**2 for n in numbers]\n# &#91;1, 4, 9, 16, 25]\n<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 &#8212; \u044d\u0442\u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u0446\u0438\u043a\u043b\u043e\u0432, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d \u0431\u043e\u043b\u0435\u0435 \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>numbers_power_2 = &#91;]\nfor n in numbers:\n    numbers_power_2.append(n**2)\n<\/code><\/pre>\n\n\n\n<p>\u0438 \u0431\u043e\u043b\u0435\u0435&nbsp;<code>map()<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>numbers_power_2 = list(map(lambda n : n**2, numbers))\n<\/code><\/pre>\n\n\n\n<h2 id=\"polymorphisminpython\">\u041f\u043e\u043b\u0438\u043c\u043e\u0440\u0444\u0438\u0437\u043c \u0432 Python<\/h2>\n\n\n\n<p>\u041f\u043e\u043b\u0438\u043c\u043e\u0440\u0444\u0438\u0437\u043c \u043e\u0431\u043e\u0431\u0449\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438.&nbsp;\u042d\u0442\u043e \u0432\u0430\u0436\u043d\u0430\u044f \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n\n\n\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Dog:\n    def eat():\n        print('Eating dog food')\n\nclass Cat:\n    def eat():\n        print('Eating cat food')\n<\/code><\/pre>\n\n\n\n<p>\u0417\u0430\u0442\u0435\u043c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c&nbsp;<code>eat()<\/code>\u043c\u0435\u0442\u043e\u0434 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0430, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u043e\u0431\u044a\u0435\u043a\u0442, \u0438 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0440\u0430\u0437\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>animal1 = Dog()\nanimal2 = Cat()\n\nanimal1.eat()\nanimal2.eat()\n<\/code><\/pre>\n\n\n\n<p>\u041c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043e\u0431\u043e\u0431\u0449\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0436\u0438\u0432\u043e\u0442\u043d\u043e\u0435 &#8212; \u044d\u0442\u043e \u043a\u043e\u0448\u043a\u0430 \u0438\u043b\u0438 \u0441\u043e\u0431\u0430\u043a\u0430.<\/p>\n\n\n\n<h2 id=\"operatoroverloadinginpython\">\u041f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0432 Python<\/h2>\n\n\n\n<p>\u041f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c\u044b\u043c\u0438 \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u0445 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438 Python.<\/p>\n\n\n\n<p>\u0412\u043e\u0437\u044c\u043c\u0435\u043c \u043a\u043b\u0430\u0441\u0441 Dog:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Dog:\n    # the Dog class\n    def __init__(self, name, age):\n        self.name = name\n        self.age = age\n<\/code><\/pre>\n\n\n\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c 2 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 Dog:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>roger = Dog('Roger', 8)\nsyd = Dog('Syd', 7)\n<\/code><\/pre>\n\n\n\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0443 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0434\u0432\u0443\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435&nbsp;<code>age<\/code>\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Dog:\n    # the Dog class\n    def __init__(self, name, age):\n        self.name = name\n        self.age = age\n    def __gt__(self, other):\n        return True if self.age &gt; other.age else False\n<\/code><\/pre>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u0442\u0435 \u0431\u0435\u0436\u0430\u0442\u044c,&nbsp;<code>print(roger &gt; syd)<\/code>\u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442&nbsp;<code>True<\/code>.<\/p>\n\n\n\n<p>\u0422\u0430\u043a\u0438\u043c \u0436\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043a\u0430\u043a \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438&nbsp;<code>__gt__()<\/code>(\u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c), \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b:<\/p>\n\n\n\n<ul><li><code>__eq__()<\/code>&nbsp;\u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0430 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e<\/li><li><code>__lt__()<\/code>\u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043b\u0438 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u043e\u0431\u044a\u0435\u043a\u0442 \u043d\u0438\u0436\u0435 \u0434\u0440\u0443\u0433\u043e\u0433\u043e, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;<code>&lt;<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430<\/li><li><code>__le__()<\/code>\u0434\u043b\u044f \u043c\u0435\u043d\u044c\u0448\u0435\u0433\u043e \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e\u0433\u043e (&nbsp;<code>&lt;=<\/code>)<\/li><li><code>__ge__()<\/code>\u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e\u0433\u043e (&nbsp;<code>&gt;=<\/code>)<\/li><li><code>__ne__()<\/code>\u0434\u043b\u044f \u043d\u0435 \u0440\u0430\u0432\u043d\u043e (&nbsp;<code>!=<\/code>)<\/li><\/ul>\n\n\n\n<p>\u0422\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c\u0438:<\/p>\n\n\n\n<ul><li><code>__add__()<\/code>\u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c&nbsp;<code>+<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443<\/li><li><code>__sub__()<\/code>\u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c&nbsp;<code>\u2013<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443<\/li><li><code>__mul__()<\/code>\u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c&nbsp;<code>*<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443<\/li><li><code>__truediv__()<\/code>\u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c&nbsp;<code>\/<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443<\/li><li><code>__floordiv__()<\/code>\u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c&nbsp;<code>\/\/<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443<\/li><li><code>__mod__()<\/code>\u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c&nbsp;<code>%<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443<\/li><li><code>__pow__()<\/code>\u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c&nbsp;<code>**<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443<\/li><li><code>__rshift__()<\/code>\u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c&nbsp;<code>&gt;&gt;<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443<\/li><li><code>__lshift__()<\/code>\u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c&nbsp;<code>&lt;&lt;<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443<\/li><li><code>__and__()<\/code>\u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c&nbsp;<code>&amp;<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443<\/li><li><code>__or__()<\/code>\u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c&nbsp;<code>|<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443<\/li><li><code>__xor__()<\/code>\u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c&nbsp;<code>^<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443<\/li><\/ul>\n\n\n\n<p>\u0415\u0441\u0442\u044c \u0435\u0449\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438, \u043d\u043e \u0432\u044b \u043f\u043e\u043d\u044f\u043b\u0438 \u0438\u0434\u0435\u044e.<\/p>\n\n\n\n<h2 id=\"virtualenvironmentsinpython\">\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u044b \u0432 Python<\/h2>\n\n\n\n<p>\u041e\u0431\u044b\u0447\u043d\u043e \u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 Python.<\/p>\n\n\n\n<p>\u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043c\u043e\u0434\u0443\u043b\u044c, \u0432 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u044b \u043f\u043e\u043f\u0430\u0434\u0435\u0442\u0435 \u0432 \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u043d\u0443\u0436\u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f, \u0430 \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e &#8212; \u0434\u0440\u0443\u0433\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0442\u043e\u0433\u043e \u0436\u0435 \u043c\u043e\u0434\u0443\u043b\u044f.<\/p>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u0440\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435&nbsp;<strong>\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u044b<\/strong>&nbsp;.<\/p>\n\n\n\n<p>\u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<code>venv<\/code>.&nbsp;\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u0432\u0440\u043e\u0434\u0435&nbsp;<code>pipenv<\/code>.<\/p>\n\n\n\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0440\u0435\u0434\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python -m venv .venv\n<\/code><\/pre>\n\n\n\n<p>\u0432 \u043f\u0430\u043f\u043a\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u043b\u0438 \u0433\u0434\u0435 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442.<\/p>\n\n\n\n<p>\u0422\u043e\u0433\u0434\u0430 \u0431\u0435\u0433\u0438<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source .venv\/bin\/activate\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-style-warning\"><p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435&nbsp;<code>source .venv\/bin\/activate.fish<\/code>\u043d\u0430 \u0440\u044b\u0431\u043d\u043e\u0439 \u0440\u0430\u043a\u043e\u0432\u0438\u043d\u0435<\/p><\/blockquote>\n\n\n\n<p>\u0417\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0440\u0435\u0434\u0443 Python.&nbsp;\u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0430\u0448\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430.<\/p>\n\n\n\n<p>\u041c\u043e\u044f \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c \u0441<\/p>\n\n\n\n<p><code>\u279c folder<\/code><\/p>\n\n\n\n<p>\u043a<\/p>\n\n\n\n<p><code>(.venv) \u279c folder<\/code><\/p>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435&nbsp;<code>pip<\/code>\u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0440\u0435\u0434\u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u042d\u0442\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044e Python \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0443 80\/20: \u0432\u044b\u0443\u0447\u0438\u0442\u044c 80% \u044f\u0437\u044b\u043a\u0430 Python \u0437\u0430 20% \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n","protected":false},"author":1,"featured_media":131,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18,4],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.1.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u041a\u0430\u043a \u0438\u0437\u0443\u0447\u0438\u0442\u044c Python \u0432 2022 \u0433\u043e\u0434\u0443 \u2014 [\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e] \ud83d\udd25<\/title>\n<meta name=\"description\" content=\"\u0425\u043e\u0442\u0438\u0442\u0435 \u0432\u044b\u0443\u0447\u0438\u0442\u044c Python \u0432 2022 \u0433\u043e\u0434\u0443? \u041d\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430! \u042d\u0442\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044e Python \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0443 80\/20: \u0432\u044b\u0443\u0447\u0438\u0442\u044c 80% \u044f\u0437\u044b\u043a\u0430 Python \u0437\u0430 20% \u0432\u0440\u0435\u043c\u0435\u043d\u0438.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/floop.top\/ru\/python\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u041a\u0430\u043a \u0438\u0437\u0443\u0447\u0438\u0442\u044c Python \u0432 2022 \u0433\u043e\u0434\u0443 \u2014 [\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e] \ud83d\udd25\" \/>\n<meta property=\"og:description\" content=\"\u0425\u043e\u0442\u0438\u0442\u0435 \u0432\u044b\u0443\u0447\u0438\u0442\u044c Python \u0432 2022 \u0433\u043e\u0434\u0443? \u041d\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430! \u042d\u0442\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044e Python \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0443 80\/20: \u0432\u044b\u0443\u0447\u0438\u0442\u044c 80% \u044f\u0437\u044b\u043a\u0430 Python \u0437\u0430 20% \u0432\u0440\u0435\u043c\u0435\u043d\u0438.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/floop.top\/ru\/python\/\" \/>\n<meta property=\"og:site_name\" content=\"FLOOP\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-23T11:28:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-28T14:35:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/python-development-company-in-pondicherry.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"800\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/floop.top\/ru\/#website\",\"url\":\"https:\/\/floop.top\/ru\/\",\"name\":\"FLOOP\",\"description\":\"\\u0414\\u0435\\u043b\\u0430\\u0435\\u043c \\u0434\\u043e\\u0431\\u0440\\u043e \\u0432\\u043c\\u0435\\u0441\\u0442\\u0435! \\ud83c\\udf43\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/floop.top\/ru\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/floop.top\/ru\/python\/#primaryimage\",\"inLanguage\":\"ru-RU\",\"url\":\"https:\/\/floop.top\/ru\/wp-content\/uploads\/sites\/3\/2021\/04\/python-development-company-in-pondicherry.png\",\"width\":1200,\"height\":800,\"caption\":\"\\u041a\\u0430\\u043a \\u0438\\u0437\\u0443\\u0447\\u0438\\u0442\\u044c Python \\u0432 2021 \\u0433\\u043e\\u0434\\u0443 \\u2014 [\\u041f\\u043e\\u0448\\u0430\\u0433\\u043e\\u0432\\u043e\\u0435 \\u0440\\u0443\\u043a\\u043e\\u0432\\u043e\\u0434\\u0441\\u0442\\u0432\\u043e] \\ud83d\\udd25\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/floop.top\/ru\/python\/#webpage\",\"url\":\"https:\/\/floop.top\/ru\/python\/\",\"name\":\"\\u041a\\u0430\\u043a \\u0438\\u0437\\u0443\\u0447\\u0438\\u0442\\u044c Python \\u0432 2022 \\u0433\\u043e\\u0434\\u0443 \\u2014 [\\u041f\\u043e\\u0448\\u0430\\u0433\\u043e\\u0432\\u043e\\u0435 \\u0440\\u0443\\u043a\\u043e\\u0432\\u043e\\u0434\\u0441\\u0442\\u0432\\u043e] \\ud83d\\udd25\",\"isPartOf\":{\"@id\":\"https:\/\/floop.top\/ru\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/floop.top\/ru\/python\/#primaryimage\"},\"datePublished\":\"2021-04-23T11:28:36+00:00\",\"dateModified\":\"2022-01-28T14:35:41+00:00\",\"author\":{\"@id\":\"https:\/\/floop.top\/ru\/#\/schema\/person\/b6f2cf7a60cff0b4e33a39f535ddad77\"},\"description\":\"\\u0425\\u043e\\u0442\\u0438\\u0442\\u0435 \\u0432\\u044b\\u0443\\u0447\\u0438\\u0442\\u044c Python \\u0432 2022 \\u0433\\u043e\\u0434\\u0443? \\u041d\\u0435 \\u043f\\u0440\\u043e\\u0431\\u043b\\u0435\\u043c\\u0430! \\u042d\\u0442\\u043e \\u0440\\u0443\\u043a\\u043e\\u0432\\u043e\\u0434\\u0441\\u0442\\u0432\\u043e \\u043f\\u043e \\u0438\\u0437\\u0443\\u0447\\u0435\\u043d\\u0438\\u044e Python \\u0441\\u043b\\u0435\\u0434\\u0443\\u0435\\u0442 \\u043f\\u0440\\u0430\\u0432\\u0438\\u043b\\u0443 80\/20: \\u0432\\u044b\\u0443\\u0447\\u0438\\u0442\\u044c 80% \\u044f\\u0437\\u044b\\u043a\\u0430 Python \\u0437\\u0430 20% \\u0432\\u0440\\u0435\\u043c\\u0435\\u043d\\u0438.\",\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/floop.top\/ru\/python\/\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/floop.top\/ru\/#\/schema\/person\/b6f2cf7a60cff0b4e33a39f535ddad77\",\"name\":\"\\u0412\\u043b\\u0430\\u0434\\u0438\\u0441\\u043b\\u0430\\u0432 \\u0411\\u0440\\u0435\\u0439\\u043d\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/floop.top\/ru\/#personlogo\",\"inLanguage\":\"ru-RU\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e4c0cf915a551537f6cfa05144327e50?s=96&d=mm&r=g\",\"caption\":\"\\u0412\\u043b\\u0430\\u0434\\u0438\\u0441\\u043b\\u0430\\u0432 \\u0411\\u0440\\u0435\\u0439\\u043d\"},\"sameAs\":[\"https:\/\/floop.top\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/floop.top\/ru\/wp-json\/wp\/v2\/posts\/110"}],"collection":[{"href":"https:\/\/floop.top\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/floop.top\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/floop.top\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/floop.top\/ru\/wp-json\/wp\/v2\/comments?post=110"}],"version-history":[{"count":1,"href":"https:\/\/floop.top\/ru\/wp-json\/wp\/v2\/posts\/110\/revisions"}],"predecessor-version":[{"id":1809,"href":"https:\/\/floop.top\/ru\/wp-json\/wp\/v2\/posts\/110\/revisions\/1809"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/floop.top\/ru\/wp-json\/wp\/v2\/media\/131"}],"wp:attachment":[{"href":"https:\/\/floop.top\/ru\/wp-json\/wp\/v2\/media?parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/floop.top\/ru\/wp-json\/wp\/v2\/categories?post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/floop.top\/ru\/wp-json\/wp\/v2\/tags?post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}