{"id":3782,"date":"2022-04-01T08:00:35","date_gmt":"2022-04-01T08:00:35","guid":{"rendered":"https:\/\/umschool.net\/library\/?p=3782"},"modified":"2023-03-14T10:07:19","modified_gmt":"2023-03-14T10:07:19","slug":"osnovy-programmirovaniya-na-yazyke-python-praktika","status":"publish","type":"post","link":"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/","title":{"rendered":"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430"},"content":{"rendered":"\n<p>\u0412\u044b \u043b\u044e\u0431\u0438\u0442\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u044b\u0435 \u0438\u0433\u0440\u044b? \u0410 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u043b\u0438 \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439? \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u0432 \u0440\u043e\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438\u0433\u0440, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u043d\u0438\u044f.<\/p>\n\n\n\n<h2 class=\"has-text-align-center wp-block-heading\" id=\"\u0443\u043c\u0435\u043d\u0438\u0435_\u043f\u0438\u0441\u0430\u0442\u044c_\u043f\u0440\u043e\u0441\u0442\u043e\u0439_\u043a\u043e\u0434_\u043d\u0430_\u042f\u041f\"><strong>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 RPG<\/strong><\/h2>\n\n\n\n<p>\u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0445 \u043c\u044b \u0441 \u0432\u0430\u043c\u0438 \u0438\u0437\u0443\u0447\u0438\u043b\u0438 \u0442\u0435\u043c\u044b:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445;<\/li><li>\u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438;<\/li><li>\u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438;<\/li><li>\u0446\u0438\u043a\u043b\u044b.<\/li><\/ul>\n\n\n\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u00a0\u00ab<a href=\"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-chast-1\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0427\u0430\u0441\u0442\u044c 1<\/a>\u00bb \u0438 \u00ab<a href=\"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-chast-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0427\u0430\u0441\u0442\u044c 2<\/a>\u00bb.<\/p>\n\n\n\n<p><strong>\u042d\u0442\u0438\u0445 \u0437\u043d\u0430\u043d\u0438\u0439 \u043d\u0430\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430,<strong>\u00a0\u0435\u0433\u043e \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u0430 <\/strong>\u2014<\/strong> <strong>\u0433\u043e\u0431\u043b\u0438\u043d\u0430 \u0438 \u043f\u0440\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434 \u0431\u0438\u0442\u0432\u044b \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438<\/strong>.<br>\u041d\u0430\u0434\u0435\u0435\u043c\u0441\u044f, \u0432\u044b \u043b\u044e\u0431\u0438\u0442\u0435 \u044d\u0442\u043e\u0442 \u0436\u0430\u043d\u0440.<\/p>\n\n\n\n<p><strong>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0430<\/strong>. \u041f\u0443\u0441\u0442\u044c \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u0440\u044b\u0446\u0430\u0440\u044c \u0441\u043e \u0437\u0434\u043e\u0440\u043e\u0432\u0435\u043d\u043d\u043e\u0439 \u043b\u043e\u0448\u0430\u0434\u044c\u044e, \u043c\u043e\u0449\u043d\u044b\u043c \u0437\u0430\u043f\u0430\u0441\u043e\u043c \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0437\u0435\u043b\u044c\u044f\u043c\u0438 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"\/library\/wp-content\/uploads\/2023\/03\/2-5-1024x935.png\" alt=\"\" class=\"wp-image-24026\" width=\"256\" height=\"234\" srcset=\"\/library\/wp-content\/uploads\/2023\/03\/2-5-1024x935.png 1024w, \/library\/wp-content\/uploads\/2023\/03\/2-5-300x274.png 300w, \/library\/wp-content\/uploads\/2023\/03\/2-5-768x701.png 768w, \/library\/wp-content\/uploads\/2023\/03\/2-5-1536x1403.png 1536w, \/library\/wp-content\/uploads\/2023\/03\/2-5-2048x1871.png 2048w\" sizes=\"auto, (max-width: 256px) 100vw, 256px\" \/><\/figure><\/div>\n\n\n\n<p><strong>\u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0418\u043c\u044f \u0440\u044b\u0446\u0430\u0440\u044f. \u041c\u044b \u0441\u0430\u043c\u0438 \u0435\u0433\u043e \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0435\u043c \u0438 \u0432\u0432\u0435\u0434\u0435\u043c \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u2014 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 input().<\/li><li>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0440\u044b\u0446\u0430\u0440\u044f.<\/li><li>\u0423\u0440\u043e\u043d \u043e\u0442 \u0435\u0433\u043e \u043c\u0435\u0447\u0430.<\/li><li>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0435\u043b\u0438\u0439 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f.<br>\u0414\u043b\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f, \u0443\u0440\u043e\u043d\u0430 \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0437\u0435\u043b\u0438\u0439 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0446\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430.<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>hero_name = input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043c\u044f \u0440\u044b\u0446\u0430\u0440\u044f: \")\nhero_health = 100\nsword_damage = 13\npotions = 2\nprint(\"\u0413\u0435\u0440\u043e\u0439 \u043f\u043e \u0438\u043c\u0435\u043d\u0438\", hero_name, \"\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\")<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<p>\u0427\u0442\u043e\u0431 \u0440\u044b\u0446\u0430\u0440\u044e \u0436\u0438\u0437\u043d\u044c \u043c\u0435\u0434\u043e\u043c \u043d\u0435 \u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c, <strong>\u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0435\u043c\u0443 \u043d\u0430 \u043f\u0443\u0442\u0438 \u043f\u0440\u0435\u043f\u044f\u0442\u0441\u0442\u0432\u0438\u0435 \u0432 \u0432\u0438\u0434\u0435 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u0430 \u2014<\/strong> <strong>\u0433\u043e\u0431\u043b\u0438\u043d\u0430<\/strong>. \u041e\u043d \u0442\u0430\u043a\u0436\u0435 \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u0437\u0430\u043f\u0430\u0441\u043e\u043c \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0443\u0440\u043e\u043d\u043e\u043c.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"\/library\/wp-content\/uploads\/2023\/03\/3-5-774x1024.png\" alt=\"\" class=\"wp-image-24027\" width=\"194\" height=\"256\" srcset=\"\/library\/wp-content\/uploads\/2023\/03\/3-5-774x1024.png 774w, \/library\/wp-content\/uploads\/2023\/03\/3-5-227x300.png 227w, \/library\/wp-content\/uploads\/2023\/03\/3-5-768x1017.png 768w, \/library\/wp-content\/uploads\/2023\/03\/3-5-1160x1536.png 1160w, \/library\/wp-content\/uploads\/2023\/03\/3-5-1547x2048.png 1547w\" sizes=\"auto, (max-width: 194px) 100vw, 194px\" \/><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>goblin_health = 55\ngoblin_damage = 9\nprint(\"\u041f\u043e \u043f\u0443\u0442\u0438 \u0433\u0435\u0440\u043e\u044e \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0441\u044f \u0433\u043e\u0431\u043b\u0438\u043d. \u0423 \u043d\u0435\u0433\u043e\", goblin_health, \"\u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f, \u0438 \u043e\u043d \u043d\u0430\u043d\u043e\u0441\u0438\u0442 \u0443\u0440\u043e\u043d\", goblin_damage)<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u0430\u043c\u0443 \u0431\u0438\u0442\u0432\u0443 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438. \u0418 \u044d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c <strong>\u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0446\u0438\u043a\u043b <\/strong>\u2014 \u0442\u0430\u043a\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u043a\u043e\u0433\u0434\u0430 \u0446\u0438\u043a\u043b while \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c \u0441\u0432\u043e\u044e \u0440\u0430\u0431\u043e\u0442\u0443. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0435\u0433\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c\u0441\u044f \u043f\u043e \u043a\u0440\u0443\u0433\u0443, \u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043c \u0438\u0437\u043d\u0443\u0442\u0440\u0438, \u043a\u043e\u0433\u0434\u0430 \u043e\u0434\u0438\u043d \u0438\u0437 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u0431\u0438\u0442\u0432\u044b \u043f\u043e\u0433\u0438\u0431\u043d\u0435\u0442.<\/p>\n\n\n\n<p><strong>\u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0411\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0446\u0438\u043a\u043b.<\/li><li>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0443\u0434\u0430\u0440\u0430 \u043f\u043e \u0433\u043e\u0431\u043b\u0438\u043d\u0443 \u2014 \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u0435 \u0435\u0433\u043e \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u0443\u0440\u043e\u043d\u0430.<\/li><li>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0433\u043e\u0431\u043b\u0438\u043d\u0430 \u2014 \u0435\u0441\u043b\u0438 \u043e\u043d\u043e \u043e\u043f\u0443\u0441\u0442\u0438\u043b\u043e\u0441\u044c \u043d\u0438\u0436\u0435 0, \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0446\u0438\u043a\u043b.<\/li><li>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0443\u0434\u0430\u0440\u0430 \u0433\u043e\u0431\u043b\u0438\u043d\u0430 \u043f\u043e \u0440\u044b\u0446\u0430\u0440\u044e.<\/li><li>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0440\u044b\u0446\u0430\u0440\u044f.<\/li><\/ul>\n\n\n\n<p>\u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0430\u0442\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u043c\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u0430\u0448 \u0440\u044b\u0446\u0430\u0440\u044c \u0441\u0438\u043b\u044c\u043d\u0435\u0435, \u0443\u043c\u043d\u0435\u0435 \u0438 \u043a\u0440\u0430\u0441\u0438\u0432\u0435\u0435 \u0433\u043e\u0431\u043b\u0438\u043d\u0430.<\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>print(\"\u0413\u0435\u0440\u043e\u0439 \u0432\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0432 \u0441\u0445\u0432\u0430\u0442\u043a\u0443 \u0441 \u0433\u043e\u0431\u043b\u0438\u043d\u043e\u043c\")\nwhile True:\n    goblin_health -= sword_damage\n    if goblin_health &lt;= 0:\n        print(\"\u0413\u043e\u0431\u043b\u0438\u043d \u043f\u0430\u043b\")\n        break\n    hero_health -= goblin_damage\n    if hero_health &lt;= 0:\n        print(\"\u0420\u044b\u0446\u0430\u0440\u044c \u043f\u0430\u043b\")\n        break<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"\/library\/wp-content\/uploads\/2023\/03\/4-7-1024x689.png\" alt=\"\" class=\"wp-image-24028\" width=\"512\" height=\"345\" srcset=\"\/library\/wp-content\/uploads\/2023\/03\/4-7-1024x689.png 1024w, \/library\/wp-content\/uploads\/2023\/03\/4-7-300x202.png 300w, \/library\/wp-content\/uploads\/2023\/03\/4-7-768x517.png 768w, \/library\/wp-content\/uploads\/2023\/03\/4-7-1536x1034.png 1536w, \/library\/wp-content\/uploads\/2023\/03\/4-7.png 2000w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure><\/div>\n\n\n\n<p><strong>\u041f\u043e\u0441\u043b\u0435 \u0431\u0438\u0442\u0432\u044b \u0441\u0442\u043e\u0438\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0440\u044b\u0446\u0430\u0440\u044f.<\/strong> \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u2014 \u0443\u0441\u043b\u043e\u0432\u0438\u044f, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u0430 \u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0442\u0435\u043b\u0430 \u0446\u0438\u043a\u043b\u0430. \u0417\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"\/library\/wp-content\/uploads\/2023\/03\/5-11-1005x1024.png\" alt=\"\" class=\"wp-image-24029\" width=\"171\" height=\"174\" srcset=\"\/library\/wp-content\/uploads\/2023\/03\/5-11-1005x1024.png 1005w, \/library\/wp-content\/uploads\/2023\/03\/5-11-295x300.png 295w, \/library\/wp-content\/uploads\/2023\/03\/5-11-768x782.png 768w, \/library\/wp-content\/uploads\/2023\/03\/5-11-1508x1536.png 1508w, \/library\/wp-content\/uploads\/2023\/03\/5-11-2010x2048.png 2010w\" sizes=\"auto, (max-width: 171px) 100vw, 171px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0420\u044b\u0446\u0430\u0440\u044c \u043f\u0435\u0440\u0435\u0436\u0438\u043b \u0441\u0440\u0430\u0436\u0435\u043d\u0438\u0435:<ul><li>\u0435\u0441\u043b\u0438 \u0443 \u0440\u044b\u0446\u0430\u0440\u044f \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043c\u0430\u043b\u043e \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u044b), \u043c\u044b \u0432\u044b\u043f\u044c\u0435\u043c \u0437\u0435\u043b\u044c\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 50 \u043e\u0447\u043a\u043e\u0432 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f;<\/li><li>\u0435\u0441\u043b\u0438 \u0436\u0435 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0437\u0435\u043b\u044c\u0435 \u043f\u0438\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u043c.<\/li><\/ul><\/li><li>\u0420\u044b\u0446\u0430\u0440\u044c \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u043b \u0441\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u0438\u0442\u044c \u0437\u0435\u043b\u044c\u0435 \u043f\u043e\u0437\u0434\u043d\u043e.<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>if hero_health > 0:\n    print(\"\u0413\u0435\u0440\u043e\u0439 \u043f\u0435\u0440\u0435\u0436\u0438\u043b \u0441\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0443 \u043d\u0435\u0433\u043e \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f\", hero_health)\n    if hero_health &lt; 50:\n        print(\"\u0413\u0435\u0440\u043e\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0437\u0435\u043b\u044c\u0435 \u0438\u0441\u0446\u0435\u043b\u0435\u043d\u0438\u044f, \u0434\u0430\u0431\u044b \u0437\u0430\u043b\u0435\u0447\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u0440\u0430\u043d\u044b\")\n        hero_health += 50\n        print(\"\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0441\u0442\u0430\u043b\u043e: \", hero_health)\n        potions -= 1\n        print(\"\u0417\u0435\u043b\u0438\u0439 \u0438\u0441\u0446\u0435\u043b\u0435\u043d\u0438\u044f \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c:\", potions)\n    else:\n        print(\"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0439, \u0438\u0441\u0446\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u043d\u0435 \u043d\u0443\u0436\u043d\u043e\")\nelse:\n    print(\"\u0422\u0440\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0443\u0434\u044c\u0431\u0430 \u043d\u0430\u0441\u0442\u0438\u0433\u043b\u0430 \u0433\u0435\u0440\u043e\u044f, \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043f\u043e\u0437\u0434\u043d\u043e \u043f\u0438\u0442\u044c \u0437\u0435\u043b\u044c\u0435\")<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"\/library\/wp-content\/uploads\/2023\/03\/6-8-882x1024.png\" alt=\"\" class=\"wp-image-24030\" width=\"285\" height=\"330\" srcset=\"\/library\/wp-content\/uploads\/2023\/03\/6-8-882x1024.png 882w, \/library\/wp-content\/uploads\/2023\/03\/6-8-258x300.png 258w, \/library\/wp-content\/uploads\/2023\/03\/6-8-768x892.png 768w, \/library\/wp-content\/uploads\/2023\/03\/6-8-1323x1536.png 1323w, \/library\/wp-content\/uploads\/2023\/03\/6-8-1764x2048.png 1764w\" sizes=\"auto, (max-width: 285px) 100vw, 285px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"has-text-align-center wp-block-heading\">\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0438\u0433\u0440\u044b<\/h2>\n\n\n\n<p>\u0418\u0442\u0430\u043a, <strong>\u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434<\/strong> \u043d\u0430\u0448\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b:<\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>hero_name = input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043c\u044f \u0440\u044b\u0446\u0430\u0440\u044f: \")\nhero_health = 100\nsword_damage = 13\npotions = 2\nprint(\"\u0413\u0435\u0440\u043e\u0439 \u043f\u043e \u0438\u043c\u0435\u043d\u0438\", hero_name, \"\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\")\n\ngoblin_health = 55\ngoblin_damage = 9\nprint(\"\u041f\u043e \u043f\u0443\u0442\u0438 \u0433\u0435\u0440\u043e\u044e \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0441\u044f \u0433\u043e\u0431\u043b\u0438\u043d. \u0423 \u043d\u0435\u0433\u043e\", goblin_health, \"\u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f, \u0438 \u043e\u043d \u043d\u0430\u043d\u043e\u0441\u0438\u0442 \u0443\u0440\u043e\u043d\", goblin_damage)\n\nprint(\"\u0413\u0435\u0440\u043e\u0439 \u0432\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0432 \u0441\u0445\u0432\u0430\u0442\u043a\u0443 \u0441 \u0433\u043e\u0431\u043b\u0438\u043d\u043e\u043c\")\nwhile True:\n    goblin_health -= sword_damage\n    if goblin_health &lt;= 0:\n        print(\"\u0413\u043e\u0431\u043b\u0438\u043d \u043f\u0430\u043b\")\n        break\n    hero_health -= goblin_damage\n    if hero_health &lt;= 0:\n        print('\u0420\u044b\u0446\u0430\u0440\u044c \u043f\u0430\u043b')\n        break\n\nif hero_health > 0:\n    print(\"\u0413\u0435\u0440\u043e\u0439 \u043f\u0435\u0440\u0435\u0436\u0438\u043b \u0441\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0443 \u043d\u0435\u0433\u043e \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f\", hero_health)\n    if hero_health &lt; 50:\n        print(\"\u0413\u0435\u0440\u043e\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0437\u0435\u043b\u044c\u0435 \u0438\u0441\u0446\u0435\u043b\u0435\u043d\u0438\u044f, \u0434\u0430\u0431\u044b \u0437\u0430\u043b\u0435\u0447\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u0440\u0430\u043d\u044b\")\n        hero_health += 50\n        print('\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0441\u0442\u0430\u043b\u043e: ', hero_health)\n        potions -= 1\n        print(\"\u0417\u0435\u043b\u0438\u0439 \u0438\u0441\u0446\u0435\u043b\u0435\u043d\u0438\u044f \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c:\", potions)\n    else:\n        print(\"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0439, \u0438\u0441\u0446\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u043d\u0435 \u043d\u0443\u0436\u043d\u043e\")\nelse:\n    print('\u0422\u0440\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0443\u0434\u044c\u0431\u0430 \u043d\u0430\u0441\u0442\u0438\u0433\u043b\u0430 \u0433\u0435\u0440\u043e\u044f, \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043f\u043e\u0437\u0434\u043d\u043e \u043f\u0438\u0442\u044c \u0437\u0435\u043b\u044c\u0435')<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<p><strong>\u0412\u044b\u0432\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/strong> \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c:<\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043c\u044f \u0440\u044b\u0446\u0430\u0440\u044f: \u0414\u0436\u043e\u0440\u0434\u0436 \u041f\u0438\u0442\u043e\u043d\u0438\u0441\u0442\n\u0413\u0435\u0440\u043e\u0439 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0414\u0436\u043e\u0440\u0434\u0436 \u041f\u0438\u0442\u043e\u043d\u0438\u0441\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\n\u041f\u043e \u043f\u0443\u0442\u0438 \u0433\u0435\u0440\u043e\u044e \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0441\u044f \u0433\u043e\u0431\u043b\u0438\u043d. \u0423 \u043d\u0435\u0433\u043e 55 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f, \u0438 \u043e\u043d \u043d\u0430\u043d\u043e\u0441\u0438\u0442 \u0443\u0440\u043e\u043d 9\n\u0413\u0435\u0440\u043e\u0439 \u0432\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0432 \u0441\u0445\u0432\u0430\u0442\u043a\u0443 \u0441 \u0433\u043e\u0431\u043b\u0438\u043d\u043e\u043c\n\u0413\u043e\u0431\u043b\u0438\u043d \u043f\u0430\u043b\n\u0413\u0435\u0440\u043e\u0439 \u043f\u0435\u0440\u0435\u0436\u0438\u043b \u0441\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0443 \u043d\u0435\u0433\u043e \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f 64\n\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0439, \u0438\u0441\u0446\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u043d\u0435 \u043d\u0443\u0436\u043d\u043e<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a \u043c\u044b \u0441 \u0432\u0430\u043c\u0438 \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0438\u0434\u0435\u0438 \u0432 \u043a\u043e\u0434 \u0438 \u0434\u0430\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u0438\u0433\u0440\u0443. \u041d\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u044d\u0442\u043e\u043c. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u00ab<a href=\"https:\/\/umschool.net\/library\/informatika\/praktika-analiza-algoritmov\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432<\/a>\u00bb \u043c\u044b \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0432 \u0442\u043e\u043c, \u043a\u0430\u043a\u0430\u044f \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u0434\u0435\u044f \u0431\u044b\u043b\u0430 \u0437\u0430\u043b\u043e\u0436\u0435\u043d\u0430 \u0432 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043a\u043e\u0434. \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043d\u0430\u0432\u044b\u043a. \u0412\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u043a\u043e\u0434, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0434\u043d\u043e\u043a\u043b\u0430\u0441\u0441\u043d\u0438\u043a\u043e\u043c \u0438\u043b\u0438 \u043a\u043e\u043b\u043b\u0435\u0433\u043e\u0439-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u043c \u0438\u0437 \u0441\u043e\u0441\u0435\u0434\u043d\u0435\u0433\u043e \u043e\u0442\u0434\u0435\u043b\u0430.<\/p>\n\n\n\n<h2 class=\"has-text-align-center wp-block-heading\"><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u044c \u0441\u0435\u0431\u044f<\/strong><\/h2>\n\n\n\n<p>\u041f\u043e\u0438\u0433\u0440\u0430\u0439\u0442\u0435\u0441\u044c \u0441 \u043a\u043e\u0434\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u0438 \u043d\u0430\u0439\u0434\u0438\u0442\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0433\u0435\u0440\u043e\u044e \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u043f\u0438\u0442\u044c \u0437\u0435\u043b\u044c\u0435 \u0438\u043b\u0438 \u043e\u043d \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0435\u0442 \u0441\u0445\u0432\u0430\u0442\u043a\u0443.<\/li><li>\u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435\u00a0\u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f \u0440\u044b\u0446\u0430\u0440\u044f, \u0443\u0440\u043e\u043d \u0435\u0433\u043e \u043c\u0435\u0447\u0430 \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0435\u0433\u043e \u0437\u0435\u043b\u0438\u0439 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b.<\/li><\/ol>\n\n\n\n<p><strong>\u041f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430<\/strong>: \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435, \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u0432\u0432\u0435\u0441\u0442\u0438 \u0447\u0438\u0441\u043b\u043e \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 input, \u043e\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u0441\u0442\u0440\u043e\u043a\u0430. \u0414\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0447\u0438\u0441\u043b\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 int.<\/p>\n\n\n\n<p><strong>\u041e\u0442\u0432\u0435\u0442\u044b:<\/strong><strong><br><\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u041c\u043e\u0436\u043d\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0442\u044c \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u0435 \u0438\u043b\u0438 \u0443\u0440\u043e\u043d \u0440\u044b\u0446\u0430\u0440\u044f \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0438 \u043e\u043d \u043e\u0441\u043b\u0430\u0431\u043b\u0435\u043d.<\/li><li>\u041c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 2, 3 \u0438 4 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435:<\/li><\/ol>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>hero_health = int(input(\u201c\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f: \u201d))\r\nsword_damage = int(input(\u201c\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0443\u0440\u043e\u043d \u043c\u0435\u0447\u0430: \u201d))\r\npotions = int(input(\u201c\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0435\u043b\u0438\u0439: \u201d))\r<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u044b \u043b\u044e\u0431\u0438\u0442\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u044b\u0435 \u0438\u0433\u0440\u044b? \u0410 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u043b\u0438 \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439? \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u0432 \u0440\u043e\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438\u0433\u0440, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u043d\u0438\u044f. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 RPG \u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0445 \u043c\u044b \u0441 \u0432\u0430\u043c\u0438 \u0438\u0437\u0443\u0447\u0438\u043b\u0438 \u0442\u0435\u043c\u044b: \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445; \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438; \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438; \u0446\u0438\u043a\u043b\u044b. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6604,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64],"tags":[65,76,75,74],"class_list":["post-3782","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-informatika","tag-informatika","tag-osnovy-programmirovaniya","tag-praktika","tag-programmirovanie"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 - \u0423\u043c\u0441\u043a\u0443\u043b \u0423\u0447\u0435\u0431\u043d\u0438\u043a<\/title>\n<meta name=\"description\" content=\"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430. \u0412\u0441\u0435 \u043e\u0431 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c. \u041b\u0443\u0447\u0448\u0438\u0435 \u0443\u0447\u0435\u0431\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0434\u043b\u044f \u0448\u043a\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u0432 \u0438 \u0432\u0437\u0440\u043e\u0441\u043b\u044b\u0445 \u043e\u0442 \u043e\u043d\u043b\u0430\u0439\u043d-\u0448\u043a\u043e\u043b\u044b \u0423\u043c\u0441\u043a\u0443\u043b.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 - \u0423\u043c\u0441\u043a\u0443\u043b \u0423\u0447\u0435\u0431\u043d\u0438\u043a\" \/>\n<meta property=\"og:description\" content=\"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430. \u0412\u0441\u0435 \u043e\u0431 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c. \u041b\u0443\u0447\u0448\u0438\u0435 \u0443\u0447\u0435\u0431\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0434\u043b\u044f \u0448\u043a\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u0432 \u0438 \u0432\u0437\u0440\u043e\u0441\u043b\u044b\u0445 \u043e\u0442 \u043e\u043d\u043b\u0430\u0439\u043d-\u0448\u043a\u043e\u043b\u044b \u0423\u043c\u0441\u043a\u0443\u043b.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0423\u043c\u0441\u043a\u0443\u043b \u0423\u0447\u0435\u0431\u043d\u0438\u043a\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-01T08:00:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-14T10:07:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/umschool.net\/library\/wp-content\/uploads\/2022\/04\/osnovy-programmirovaniya.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1874\" \/>\n\t<meta property=\"og:image:height\" content=\"1056\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"umschool\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c\" \/>\n\t<meta name=\"twitter:data1\" content=\"umschool\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u043c\u0438\u043d\u0443\u0442\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\\\/\\\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"Article\",\n\t            \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/informatika\\\/osnovy-programmirovaniya-na-yazyke-python-praktika\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/informatika\\\/osnovy-programmirovaniya-na-yazyke-python-praktika\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"umschool\",\n\t                \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/#\\\/schema\\\/person\\\/279fc031eb415325d4fa22462381fbd6\"\n\t            },\n\t            \"headline\": \"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430\",\n\t            \"datePublished\": \"2022-04-01T08:00:35+00:00\",\n\t            \"dateModified\": \"2023-03-14T10:07:19+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/informatika\\\/osnovy-programmirovaniya-na-yazyke-python-praktika\\\/\"\n\t            },\n\t            \"wordCount\": 489,\n\t            \"commentCount\": 0,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/informatika\\\/osnovy-programmirovaniya-na-yazyke-python-praktika\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"\\\/library\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/osnovy-programmirovaniya.png\",\n\t            \"keywords\": [\n\t                \"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0430\",\n\t                \"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\",\n\t                \"\u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430\",\n\t                \"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0430\"\n\t            ],\n\t            \"inLanguage\": \"ru-RU\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"CommentAction\",\n\t                    \"name\": \"Comment\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/umschool.net\\\/library\\\/informatika\\\/osnovy-programmirovaniya-na-yazyke-python-praktika\\\/#respond\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/informatika\\\/osnovy-programmirovaniya-na-yazyke-python-praktika\\\/\",\n\t            \"url\": \"https:\\\/\\\/umschool.net\\\/library\\\/informatika\\\/osnovy-programmirovaniya-na-yazyke-python-praktika\\\/\",\n\t            \"name\": \"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 - \u0423\u043c\u0441\u043a\u0443\u043b \u0423\u0447\u0435\u0431\u043d\u0438\u043a\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/informatika\\\/osnovy-programmirovaniya-na-yazyke-python-praktika\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/informatika\\\/osnovy-programmirovaniya-na-yazyke-python-praktika\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"\\\/library\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/osnovy-programmirovaniya.png\",\n\t            \"datePublished\": \"2022-04-01T08:00:35+00:00\",\n\t            \"dateModified\": \"2023-03-14T10:07:19+00:00\",\n\t            \"description\": \"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430. \u0412\u0441\u0435 \u043e\u0431 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c. \u041b\u0443\u0447\u0448\u0438\u0435 \u0443\u0447\u0435\u0431\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0434\u043b\u044f \u0448\u043a\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u0432 \u0438 \u0432\u0437\u0440\u043e\u0441\u043b\u044b\u0445 \u043e\u0442 \u043e\u043d\u043b\u0430\u0439\u043d-\u0448\u043a\u043e\u043b\u044b \u0423\u043c\u0441\u043a\u0443\u043b.\",\n\t            \"breadcrumb\": {\n\t                \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/informatika\\\/osnovy-programmirovaniya-na-yazyke-python-praktika\\\/#breadcrumb\"\n\t            },\n\t            \"inLanguage\": \"ru-RU\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/umschool.net\\\/library\\\/informatika\\\/osnovy-programmirovaniya-na-yazyke-python-praktika\\\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"ru-RU\",\n\t            \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/informatika\\\/osnovy-programmirovaniya-na-yazyke-python-praktika\\\/#primaryimage\",\n\t            \"url\": \"\\\/library\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/osnovy-programmirovaniya.png\",\n\t            \"contentUrl\": \"\\\/library\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/osnovy-programmirovaniya.png\",\n\t            \"width\": 1874,\n\t            \"height\": 1056\n\t        },\n\t        {\n\t            \"@type\": \"BreadcrumbList\",\n\t            \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/informatika\\\/osnovy-programmirovaniya-na-yazyke-python-praktika\\\/#breadcrumb\",\n\t            \"itemListElement\": [\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 1,\n\t                    \"name\": \"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\n\t                    \"item\": \"https:\\\/\\\/umschool.net\\\/library\\\/\"\n\t                },\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 2,\n\t                    \"name\": \"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430\"\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/#website\",\n\t            \"url\": \"https:\\\/\\\/umschool.net\\\/library\\\/\",\n\t            \"name\": \"\u0423\u043c\u0441\u043a\u0443\u043b \u0423\u0447\u0435\u0431\u043d\u0438\u043a\",\n\t            \"description\": \"\u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043b\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u0440\u043e \u0448\u043a\u043e\u043b\u044c\u043d\u044b\u0435 \u044d\u043a\u0437\u0430\u043c\u0435\u043d\u044b, \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u0432 \u0412\u0423\u0417\u044b \u0438 \u043e\u043b\u0438\u043c\u043f\u0438\u0430\u0434\u044b \u043e\u0442 \u043e\u043d\u043b\u0430\u0439\u043d-\u0448\u043a\u043e\u043b\u044b \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u043a \u0415\u0413\u042d \u0438 \u041e\u0413\u042d\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\\\/\\\/umschool.net\\\/library\\\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"ru-RU\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/#organization\",\n\t            \"name\": \"\u0423\u043c\u0441\u043a\u0443\u043b \u0423\u0447\u0435\u0431\u043d\u0438\u043a\",\n\t            \"url\": \"https:\\\/\\\/umschool.net\\\/library\\\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"ru-RU\",\n\t                \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/#\\\/schema\\\/logo\\\/image\\\/\",\n\t                \"url\": \"\\\/library\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/umlogo.svg\",\n\t                \"contentUrl\": \"\\\/library\\\/wp-content\\\/uploads\\\/2021\\\/06\\\/umlogo.svg\",\n\t                \"width\": 191,\n\t                \"height\": 48,\n\t                \"caption\": \"\u0423\u043c\u0441\u043a\u0443\u043b \u0423\u0447\u0435\u0431\u043d\u0438\u043a\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/#\\\/schema\\\/logo\\\/image\\\/\"\n\t            }\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\\\/\\\/umschool.net\\\/library\\\/#\\\/schema\\\/person\\\/279fc031eb415325d4fa22462381fbd6\",\n\t            \"name\": \"umschool\",\n\t            \"image\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"ru-RU\",\n\t                \"@id\": \"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1e8360de1e5c6968c838aa8f62f7fae7faec4111a33db284b5f8d4ce2022cb11?s=96&d=mm&r=g\",\n\t                \"url\": \"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1e8360de1e5c6968c838aa8f62f7fae7faec4111a33db284b5f8d4ce2022cb11?s=96&d=mm&r=g\",\n\t                \"contentUrl\": \"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1e8360de1e5c6968c838aa8f62f7fae7faec4111a33db284b5f8d4ce2022cb11?s=96&d=mm&r=g\",\n\t                \"caption\": \"umschool\"\n\t            },\n\t            \"sameAs\": [\n\t                \"http:\\\/\\\/umschool.frontendie.ru\"\n\t            ],\n\t            \"url\": \"https:\\\/\\\/umschool.net\\\/library\\\/author\\\/umschool\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 - \u0423\u043c\u0441\u043a\u0443\u043b \u0423\u0447\u0435\u0431\u043d\u0438\u043a","description":"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430. \u0412\u0441\u0435 \u043e\u0431 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c. \u041b\u0443\u0447\u0448\u0438\u0435 \u0443\u0447\u0435\u0431\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0434\u043b\u044f \u0448\u043a\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u0432 \u0438 \u0432\u0437\u0440\u043e\u0441\u043b\u044b\u0445 \u043e\u0442 \u043e\u043d\u043b\u0430\u0439\u043d-\u0448\u043a\u043e\u043b\u044b \u0423\u043c\u0441\u043a\u0443\u043b.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/","og_locale":"ru_RU","og_type":"article","og_title":"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 - \u0423\u043c\u0441\u043a\u0443\u043b \u0423\u0447\u0435\u0431\u043d\u0438\u043a","og_description":"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430. \u0412\u0441\u0435 \u043e\u0431 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c. \u041b\u0443\u0447\u0448\u0438\u0435 \u0443\u0447\u0435\u0431\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0434\u043b\u044f \u0448\u043a\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u0432 \u0438 \u0432\u0437\u0440\u043e\u0441\u043b\u044b\u0445 \u043e\u0442 \u043e\u043d\u043b\u0430\u0439\u043d-\u0448\u043a\u043e\u043b\u044b \u0423\u043c\u0441\u043a\u0443\u043b.","og_url":"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/","og_site_name":"\u0423\u043c\u0441\u043a\u0443\u043b \u0423\u0447\u0435\u0431\u043d\u0438\u043a","article_published_time":"2022-04-01T08:00:35+00:00","article_modified_time":"2023-03-14T10:07:19+00:00","og_image":[{"width":1874,"height":1056,"url":"https:\/\/umschool.net\/library\/wp-content\/uploads\/2022\/04\/osnovy-programmirovaniya.png","type":"image\/png"}],"author":"umschool","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c":"umschool","\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"5 \u043c\u0438\u043d\u0443\u0442"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/#article","isPartOf":{"@id":"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/"},"author":{"name":"umschool","@id":"https:\/\/umschool.net\/library\/#\/schema\/person\/279fc031eb415325d4fa22462381fbd6"},"headline":"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430","datePublished":"2022-04-01T08:00:35+00:00","dateModified":"2023-03-14T10:07:19+00:00","mainEntityOfPage":{"@id":"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/"},"wordCount":489,"commentCount":0,"publisher":{"@id":"https:\/\/umschool.net\/library\/#organization"},"image":{"@id":"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/#primaryimage"},"thumbnailUrl":"\/library\/wp-content\/uploads\/2022\/04\/osnovy-programmirovaniya.png","keywords":["\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0430","\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f","\u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430","\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435"],"articleSection":["\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0430"],"inLanguage":"ru-RU","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/","url":"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/","name":"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 - \u0423\u043c\u0441\u043a\u0443\u043b \u0423\u0447\u0435\u0431\u043d\u0438\u043a","isPartOf":{"@id":"https:\/\/umschool.net\/library\/#website"},"primaryImageOfPage":{"@id":"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/#primaryimage"},"image":{"@id":"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/#primaryimage"},"thumbnailUrl":"\/library\/wp-content\/uploads\/2022\/04\/osnovy-programmirovaniya.png","datePublished":"2022-04-01T08:00:35+00:00","dateModified":"2023-03-14T10:07:19+00:00","description":"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430. \u0412\u0441\u0435 \u043e\u0431 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c. \u041b\u0443\u0447\u0448\u0438\u0435 \u0443\u0447\u0435\u0431\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0434\u043b\u044f \u0448\u043a\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u0432 \u0438 \u0432\u0437\u0440\u043e\u0441\u043b\u044b\u0445 \u043e\u0442 \u043e\u043d\u043b\u0430\u0439\u043d-\u0448\u043a\u043e\u043b\u044b \u0423\u043c\u0441\u043a\u0443\u043b.","breadcrumb":{"@id":"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/"]}]},{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/#primaryimage","url":"\/library\/wp-content\/uploads\/2022\/04\/osnovy-programmirovaniya.png","contentUrl":"\/library\/wp-content\/uploads\/2022\/04\/osnovy-programmirovaniya.png","width":1874,"height":1056},{"@type":"BreadcrumbList","@id":"https:\/\/umschool.net\/library\/informatika\/osnovy-programmirovaniya-na-yazyke-python-praktika\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/umschool.net\/library\/"},{"@type":"ListItem","position":2,"name":"\u041e\u0441\u043d\u043e\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Python. \u041f\u0440\u0430\u043a\u0442\u0438\u043a\u0430"}]},{"@type":"WebSite","@id":"https:\/\/umschool.net\/library\/#website","url":"https:\/\/umschool.net\/library\/","name":"\u0423\u043c\u0441\u043a\u0443\u043b \u0423\u0447\u0435\u0431\u043d\u0438\u043a","description":"\u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043b\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u0440\u043e \u0448\u043a\u043e\u043b\u044c\u043d\u044b\u0435 \u044d\u043a\u0437\u0430\u043c\u0435\u043d\u044b, \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u0432 \u0412\u0423\u0417\u044b \u0438 \u043e\u043b\u0438\u043c\u043f\u0438\u0430\u0434\u044b \u043e\u0442 \u043e\u043d\u043b\u0430\u0439\u043d-\u0448\u043a\u043e\u043b\u044b \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u043a \u0415\u0413\u042d \u0438 \u041e\u0413\u042d","publisher":{"@id":"https:\/\/umschool.net\/library\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/umschool.net\/library\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru-RU"},{"@type":"Organization","@id":"https:\/\/umschool.net\/library\/#organization","name":"\u0423\u043c\u0441\u043a\u0443\u043b \u0423\u0447\u0435\u0431\u043d\u0438\u043a","url":"https:\/\/umschool.net\/library\/","logo":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/umschool.net\/library\/#\/schema\/logo\/image\/","url":"\/library\/wp-content\/uploads\/2021\/06\/umlogo.svg","contentUrl":"\/library\/wp-content\/uploads\/2021\/06\/umlogo.svg","width":191,"height":48,"caption":"\u0423\u043c\u0441\u043a\u0443\u043b \u0423\u0447\u0435\u0431\u043d\u0438\u043a"},"image":{"@id":"https:\/\/umschool.net\/library\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/umschool.net\/library\/#\/schema\/person\/279fc031eb415325d4fa22462381fbd6","name":"umschool","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/secure.gravatar.com\/avatar\/1e8360de1e5c6968c838aa8f62f7fae7faec4111a33db284b5f8d4ce2022cb11?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1e8360de1e5c6968c838aa8f62f7fae7faec4111a33db284b5f8d4ce2022cb11?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1e8360de1e5c6968c838aa8f62f7fae7faec4111a33db284b5f8d4ce2022cb11?s=96&d=mm&r=g","caption":"umschool"},"sameAs":["http:\/\/umschool.frontendie.ru"],"url":"https:\/\/umschool.net\/library\/author\/umschool\/"}]}},"_links":{"self":[{"href":"https:\/\/umschool.net\/library\/wp-json\/wp\/v2\/posts\/3782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/umschool.net\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/umschool.net\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/umschool.net\/library\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/umschool.net\/library\/wp-json\/wp\/v2\/comments?post=3782"}],"version-history":[{"count":30,"href":"https:\/\/umschool.net\/library\/wp-json\/wp\/v2\/posts\/3782\/revisions"}],"predecessor-version":[{"id":24031,"href":"https:\/\/umschool.net\/library\/wp-json\/wp\/v2\/posts\/3782\/revisions\/24031"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/umschool.net\/library\/wp-json\/wp\/v2\/media\/6604"}],"wp:attachment":[{"href":"https:\/\/umschool.net\/library\/wp-json\/wp\/v2\/media?parent=3782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/umschool.net\/library\/wp-json\/wp\/v2\/categories?post=3782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/umschool.net\/library\/wp-json\/wp\/v2\/tags?post=3782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}