{"id":665,"date":"2021-07-06T09:31:14","date_gmt":"2021-07-06T09:31:14","guid":{"rendered":"https:\/\/www.bearloga.space\/?page_id=665"},"modified":"2021-07-06T09:31:14","modified_gmt":"2021-07-06T09:31:14","slug":"python-urok-1-arifmeticheskie-dejstviya-i-konstrukczii","status":"publish","type":"page","link":"https:\/\/www.bearloga.space\/uk\/python-urok-1-arifmeticheskie-dejstviya-i-konstrukczii\/","title":{"rendered":"Python \u0423\u0440\u043e\u043a 1. \u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u041d\u0430 \u0443\u0440\u043e\u043a\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u00a0<strong>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f<\/strong>\u00a0\u043d\u0430 \u044f\u0437\u044b\u043a\u0435 python, \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c\u0438 \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. \u0423\u0437\u043d\u0430\u0435\u0442\u0435 \u043e\u0431 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u043e\u0432 (<strong>int<\/strong>). \u0418\u0437\u0443\u0447\u0438\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0443\u00a0<strong>\u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430<\/strong>, \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 python print \u0438 input<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0421\u0440\u0435\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f IDLE python 3.4 GUI (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u0438 \u0434\u0440\u0443\u0433\u0430\u044f \u0441\u0440\u0435\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u043e\u043a\u043d\u043e\u043c IDLE \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u043a\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0430, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u0442.\u0435. \u043f\u043e\u0441\u043b\u0435 \u0432\u0432\u043e\u0434\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043e\u043d\u0430 \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f [Enter]. \u041a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432&nbsp;<code>&gt;&gt;&gt;<\/code>, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430:<br><a href=\"https:\/\/labs-org.ru\/wp-content\/uploads\/1-6.png\" target=\"_blank\" rel=\"noopener\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"caption-attachment-9554\">IDLE python 3.4<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0432 \u0444\u0430\u0439\u043b \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432&nbsp;<em>\u043c\u0435\u043d\u044e File<\/em>&nbsp;\u043f\u0443\u043d\u043a\u0442&nbsp;<em>New File<\/em>. \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432 \u043e\u0442\u043a\u0440\u044b\u0432\u0448\u0435\u043c\u0441\u044f \u043e\u043a\u043d\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0431\u0438\u0440\u0430\u0442\u044c \u043a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0434\u0432\u0443\u0445 \u044f\u0437\u044b\u043a\u043e\u0432<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0440\u0430\u0432\u043d\u0438\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u043a\u043e\u0434\u0430 \u043e\u0434\u043d\u043e\u0439 \u0438 \u0442\u043e\u0439 \u0436\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u043d\u0430 Python \u0438 \u043d\u0430 C++. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u043a\u043e\u0434, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 Python:<br>&nbsp;&nbsp;<br><strong>\u041d\u0430 PYTHON<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<\/td><td><strong>print<\/strong>(&#8220;Hello, World!&#8221;)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041d\u0430 \u0421++<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>1<br>2 <br>3 <br>4 <br>5<\/td><td>#include&lt;iostream><br> void main()<br> {<br> cout &lt;&lt; &#8220;Hello, World!&#8221; &lt;&lt; endl; <br>}<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0438\u043c\u0432\u043e\u043b&nbsp;<code>=<\/code>. \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441\u043f\u0440\u0430\u0432\u0430 \u043e\u0442 \u0437\u043d\u0430\u043a\u0430 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0430, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u0437\u043d\u0430\u043a\u0430 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0430.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1 <br>2<br>3<br>4 <br>5 <br>6 <br>7 <br>8 <br>9<br>10<\/td><td>A = 3.14 <br><strong>print<\/strong>(type(A)) <em># float<\/em><br> A = &#8216;Hello&#8217; <br><strong>print<\/strong>(type(A)) <em># str<\/em> <br>a = b = c = 0<br> a += 1 <em># a = a + 1<\/em><br> \u0441 = 5\/\/2 <em># int<\/em><br> d = 5\/2 <em># float<\/em> <br>b = c**2 <em># b = c^2 (\u0441\u0442\u0435\u043f\u0435\u043d\u044c)<\/em> a, <br>b = b, a <em># \u043e\u0431\u043c\u0435\u043d \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 a=b, b=a<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u0412\u0432\u043e\u0434 \u0438 \u0432\u044b\u0432\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0412\u044b\u0432\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430&nbsp;<strong>print<\/strong>:<\/li><li>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u0432 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443, \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u044f \u0438\u0445 \u0447\u0435\u0440\u0435\u0437&nbsp;<code>;<\/code>. \u041e\u0434\u043d\u0430\u043a\u043e \u043d\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431, \u044d\u0442\u043e \u0441\u043d\u0438\u0436\u0430\u0435\u0442 \u0443\u0434\u043e\u0431\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u044c:<\/li><li>\u0414\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438&nbsp;<strong>print&nbsp;<\/strong>\u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 \u0441\u0435\u043f\u0430\u0440\u0430\u0442\u043e\u0440 \u2014 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043c\u0435\u0436\u0434\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0432\u044b\u0432\u043e\u0434\u0430:<\/li><li>\u0414\u043b\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f format:<\/li><li>\u0418\u043b\u0438 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438:<\/li><li>\u0412\u0432\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430&nbsp;<code>input<\/code>:<\/li><li>\u0412 \u0441\u043a\u043e\u0431\u043a\u0430\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435-\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u043a \u0432\u0432\u043e\u0434\u0438\u043c\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u043c:<\/li><li>\u0424\u0443\u043d\u043a\u0446\u0438\u044f&nbsp;<strong>input&nbsp;<\/strong>\u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u0430\u043a \u043f\u043e\u0442\u043e\u043a \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439&nbsp;<strong>int()<\/strong>:<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 1_1:<\/strong><br>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b&nbsp;<strong>input<\/strong>&nbsp;\u0438&nbsp;<strong>print<\/strong>, \u0432\u044b\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0446\u0435\u043b\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445&nbsp;<strong>x=5<\/strong>&nbsp;\u0438&nbsp;<strong>y=3<\/strong>&nbsp;\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u0445:3+5=?3 | 5 | 8Z(5)=F(3)x=5; y=3;\u041e\u0442\u0432\u0435\u0442: (5;3)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>x + y<\/strong> \u0421\u043b\u043e\u0436\u0435\u043d\u0438\u0435\n<strong>x - y<\/strong> \u0412\u044b\u0447\u0438\u0442\u0430\u043d\u0438\u0435\n<strong>x * y<\/strong> \u041f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435\n<strong>x \/ y<\/strong> \u0414\u0435\u043b\u0435\u043d\u0438\u0435\n<strong>x \/\/ y<\/strong> \u0426\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0434\u0435\u043b\u0435\u043d\u0438\u0435\n<strong>x % y<\/strong> \u041e\u0441\u0442\u0430\u0442\u043e\u043a \u043e\u0442 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u0435\u043b\u0435\u043d\u0438\u044f\n<strong>x**y<\/strong> \u0412\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c\n<strong>-x<\/strong> \u0421\u043c\u0435\u043d\u0430 \u0437\u043d\u0430\u043a\u0430 \u0447\u0438\u0441\u043b\u0430\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>abs(x)<\/strong>&nbsp;\u043c\u043e\u0434\u0443\u043b\u044c \u0447\u0438\u0441\u043b\u0430;<\/li><li><strong>round(x)<\/strong>&nbsp;\u2013 \u0432 Python \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 x \u043a \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c\u0443 \u0446\u0435\u043b\u043e\u043c\u0443;<\/li><li><strong>sqrt(x)<\/strong>&nbsp;\u2013 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0439 \u043a\u043e\u0440\u0435\u043d\u044c \u0447\u0438\u0441\u043b\u0430;<\/li><li><strong>exp(x)<\/strong>&nbsp;\u2013 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0430 x;<\/li><li><strong>log(x)<\/strong>&nbsp;\u2013 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c x.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0432 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>import<\/strong> math <em># \u0434\u0430\u043b\u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u0430\u043a\u0443\u044e-\u043b\u0438\u0431\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/em> <strong>print<\/strong> (math.sqrt(64)) <em># 8.0<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u0422\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0438\u043f\u043e\u0432<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0438\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Python, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u043d\u0430 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0445 \u0443\u0440\u043e\u043a\u0430\u0445:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>int<\/strong>\u00a0\u2013 \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f;<\/li><li><strong>float<\/strong>\u00a0\u2013 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 (\u0434\u0440\u043e\u0431\u043d\u044b\u0435) \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f;<\/li><li><strong>bool<\/strong>\u00a0\u2013 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u2014 \u0438\u0441\u0442\u0438\u043d\u0430 (True) \u0438\u043b\u0438 \u043b\u043e\u0436\u044c (False);<\/li><li><strong>str<\/strong>\u00a0\u2013 \u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0438\u043b\u0438 \u0435\u0434\u0438\u043d\u0438\u0447\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b.<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u0432 Python:<br>\u0426\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 (int):<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>num = 13 <strong>print<\/strong>(num) <em># 13<\/em> &nbsp; num = 0 <strong>print<\/strong>(num) <em># 0<\/em> &nbsp; num = -10 <strong>print<\/strong>(num) <em># -10<\/em> &nbsp; num = 500_000_000 <em># \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0447\u0442\u0435\u043d\u0438\u044f<\/em> <strong>print<\/strong>(num) <em># 500000000<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 (float):<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>num = 13.4 <strong>print<\/strong>(num) <em># 13.4<\/em> &nbsp; num = 0.0 <strong>print<\/strong>(num) <em># 0.0<\/em> &nbsp; num = -15.2 <strong>print<\/strong>(num) <em># -15.2<\/em> &nbsp; num = 100_000.000_002 <em># \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0447\u0442\u0435\u043d\u0438\u044f<\/em> <strong>print<\/strong>(num) <em># 100000.000002<\/em> &nbsp; num = 1.7e2 <em># 1.7 \u0443\u043c\u043d\u043e\u0436\u0438\u0442\u044c \u043d\u0430 10 \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 2<\/em> <strong>print<\/strong>(num) <em># 170<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0438\u043f (bool):<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>print<\/strong>(15 == 15) <em># True<\/em> &nbsp; <strong>print<\/strong>(1 != 3) <em># True<\/em> &nbsp; <strong>print<\/strong>(3 &gt; 4) <em># False<\/em> &nbsp; <strong>print<\/strong>(3 &lt;= 3) <em># True<\/em> &nbsp; <strong>print<\/strong>(6 &gt;= 6) <em># True<\/em> &nbsp; <strong>print<\/strong>(6 &lt; 5) <em># False<\/em> &nbsp; x = 2 <strong>print<\/strong>(1 &lt; x &lt; 3) <em># True<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u0442\u0440\u043e\u043a\u0438 (str):<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>example_string = &#8220;\u041e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e&#8221; <strong>print<\/strong>(example_string) <em># \u041e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e<\/em> &nbsp; example_string = &#8216;\u041f\u044c\u0435\u0441\u0430 &#8220;\u041d\u0430 \u0434\u043d\u0435&#8221;&#8216; <strong>print<\/strong>(example_string) <em># \u041f\u044c\u0435\u0441\u0430 &#8220;\u041d\u0430 \u0434\u043d\u0435&#8221;<\/em> &nbsp; example_string = &#8220;\u041f\u044c\u0435\u0441\u0430 <strong>\\&#8221;<\/strong>\u041d\u0430 \u0434\u043d\u0435<strong>\\&#8221;<\/strong> print(example_string) # \u041f\u044c\u0435\u0441\u0430 &#8220;\u041d\u0430 \u0434\u043d\u0435&#8221; &nbsp; example_string = &#8220;\u041a\u0430\u043a &#8221; <strong>\\<\/strong> &#8220;\u0440\u0430\u0437\u0431\u0438\u0442\u044c &#8221; <strong>\\<\/strong> &#8220;\u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u043b\u0438\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438&#8221; print(example_string) # \u041a\u0430\u043a \u0440\u0430\u0437\u0431\u0438\u0442\u044c \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u043b\u0438\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 &nbsp; example_string = &#8220;&#8221;&#8221; \u041a\u0430\u043a \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0440\u043e\u043a\u0443 \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a &#8220;&#8221;&#8221; print(example_string) # \u041a\u0430\u043a # \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0440\u043e\u043a\u0443 # \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><em># \u041a\u0430\u043a \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u043e\u0434\u043d\u0443<\/em> <strong>print<\/strong>(&#8220;\u041c\u043e\u0436\u043d\u043e \u0438\u0445&#8221; + &#8221; \u0441\u043b\u043e\u0436\u0438\u0442\u044c&#8221;) <em># \u041c\u043e\u0436\u043d\u043e \u0438\u0445 \u0441\u043b\u043e\u0436\u0438\u0442\u044c<\/em> &nbsp; <strong>print<\/strong>(&#8220;\u041c\u043e\u0436\u043d\u043e \u0438 \u0442\u0430\u043a!&#8221; * 3) <em># \u041c\u043e\u0436\u043d\u043e \u0438 \u0442\u0430\u043a!\u041c\u043e\u0436\u043d\u043e \u0438 \u0442\u0430\u043a!\u041c\u043e\u0436\u043d\u043e \u0438 \u0442\u0430\u043a!<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0438\u043f\u043e\u0432 \u0432 \u041f\u0438\u0442\u043e\u043d:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/li><li>\u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0446\u0435\u043b\u043e\u0435:<\/li><li>\u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435:<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Python \u0434\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>bin(y)<\/strong>&nbsp;\u2014 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.<\/li><li><strong>hex(y)<\/strong>&nbsp;\u2014 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.<\/li><li><strong>oct(y)<\/strong>&nbsp;\u2014 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0432\u043e\u0441\u044c\u043c\u0435\u0440\u0438\u0447\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>bin(17) <em># &#8216;0b10001&#8217;<\/em> oct(17) <em># &#8216;0o21&#8217;<\/em> hex(17) <em># &#8216;0x11&#8217;<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 1_2:<\/strong>&nbsp;\u0414\u0430\u043d\u044b \u0434\u0432\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435. \u0417\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438, \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0434\u0435\u043b\u0435\u043d\u0438\u0435, \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u043a\u0432\u0430\u0434\u0440\u0430\u0442. \u041e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f (\u0432 8-\u044e \u0438 16-\u044e). \u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.<strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 1_3:<\/strong>&nbsp;\u041d\u0430\u0439\u0442\u0438 \u0434\u043b\u0438\u043d\u0443 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438&nbsp;<em>L<\/em>&nbsp;\u0438 \u043f\u043b\u043e\u0449\u0430\u0434\u044c \u043a\u0440\u0443\u0433\u0430&nbsp;<em>S<\/em>&nbsp;\u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0434\u0438\u0443\u0441\u0430&nbsp;<em>R<\/em>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">L=2*pi*R, S=pi*R<sup>2<\/sup>.\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&nbsp;<strong>3.14<\/strong>.* \u0418\u0437 \u0437\u0430\u0434\u0430\u0447\u043d\u0438\u043a\u0430 \u041c. \u042d. \u0410\u0431\u0440\u0430\u043c\u044f\u043d<strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 1_4:<\/strong>&nbsp;\u0414\u0430\u043d\u044b \u0442\u0440\u0438 \u0442\u043e\u0447\u043a\u0438&nbsp;<em>A, B, C<\/em>&nbsp;\u043d\u0430 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439 \u043e\u0441\u0438. \u041d\u0430\u0439\u0442\u0438 \u0434\u043b\u0438\u043d\u044b \u043e\u0442\u0440\u0435\u0437\u043a\u043e\u0432&nbsp;<em>AC<\/em>&nbsp;\u0438&nbsp;<em>BC<\/em>&nbsp;\u0438 \u0438\u0445 \u0441\u0443\u043c\u043c\u0443.* \u0418\u0437 \u0437\u0430\u0434\u0430\u0447\u043d\u0438\u043a\u0430 \u041c. \u042d. \u0410\u0431\u0440\u0430\u043c\u044f\u043d<strong>\u041f\u0440\u0438\u043c\u0435\u0440:<\/strong>&nbsp;\u0414\u0430\u043d\u043e \u0434\u0432\u0443\u0437\u043d\u0430\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e. \u041d\u0430\u0439\u0442\u0438 \u0441\u0443\u043c\u043c\u0443 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0435\u0433\u043e \u0446\u0438\u0444\u0440.* \u0418\u0437 \u0437\u0430\u0434\u0430\u0447\u043d\u0438\u043a\u0430 \u041c. \u042d. \u0410\u0431\u0440\u0430\u043c\u044f\u043d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#x270d; \u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>import<\/strong> math <strong>print<\/strong>(&#8216;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0432\u0443\u0437\u043d\u0430\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e: &#8216;) A = int(input()) Res = (A \/\/ 10) + math.fmod(A, 10) <strong>print<\/strong>(&#8216;\u0421\u0443\u043c\u043c\u0430 \u0435\u0433\u043e \u0446\u0438\u0444\u0440 \u0440\u0430\u0432\u043d\u0430: &#8216;, int(Res)) Res = (A \/\/ 10) * math.fmod(A, 10) <strong>print<\/strong>(&#8216;\u041f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0435\u0433\u043e \u0446\u0438\u0444\u0440 \u0440\u0430\u0432\u043d\u043e: &#8216;, int(Res))<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 1_5:<\/strong>&nbsp;\u0414\u0430\u043d\u043e \u0434\u0432\u0443\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0435 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e. \u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0435\u0433\u043e \u043f\u0440\u0430\u0432\u0443\u044e \u0446\u0438\u0444\u0440\u0443, \u0430 \u0437\u0430\u0442\u0435\u043c \u043b\u0435\u0432\u0443\u044e.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">** \u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u043e\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438: \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0446\u0438\u0444\u0440\u044b \u0447\u0438\u0441\u043b\u0430 \u0438 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0435\u0435 \u0447\u0438\u0441\u043b\u043e (\u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043d\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0446\u0438\u0444\u0440\u044b, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0447\u0438\u0441\u043b\u043e). \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0438\u0441\u043b\u043e&nbsp;<code>25<\/code>, \u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u2014 \u0447\u0438\u0441\u043b\u043e&nbsp;<code>52<\/code>.* \u0418\u0437 \u0437\u0430\u0434\u0430\u0447\u043d\u0438\u043a\u0430 \u041c. \u042d. \u0410\u0431\u0440\u0430\u043c\u044f\u043d<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0423\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412 \u044f\u0437\u044b\u043a\u0435 python \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e: \u0434\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u043a\u043e\u0434\u0435 \u043d\u0435\u0442 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a (<code>begin..end<\/code>&nbsp;\u0438\u043b\u0438&nbsp;<code>{...}<\/code>); \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0438\u0445&nbsp;<strong>\u043e\u0442\u0441\u0442\u0443\u043f\u044b<\/strong>&nbsp;\u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442, \u043a\u0430\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u043e\u0439 \u0438\u043b\u0438 \u0438\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438.\u0417\u0430\u0447\u0435\u043c \u043e\u0442\u0441\u0442\u0443\u043f\u044b \u0438 \u0433\u0434\u0435 \u0438\u0445 \u0441\u0442\u0430\u0432\u0438\u0442\u044c?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 Python&nbsp;<code>if else<\/code>&nbsp;\u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>if<\/strong> \u0443\u0441\u043b\u043e\u0432\u0438\u04351: <br>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u04401 <br><strong>elif<\/strong> \u0443\u0441\u043b\u043e\u0432\u0438\u04352: <br>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u04402 <br><strong>else<\/strong>:<br> \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u04403<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1 <br>2<br>3<br>4<\/td><td><strong>if<\/strong> x > 0: <br><strong>if<\/strong> x &lt; 2: <br><strong>else<\/strong>: <br>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u0447\u0442\u043e \u0437\u043d\u0430\u043a \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0432 \u041f\u0438\u0442\u043e\u043d\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u0430\u043a \u0434\u0432\u0430 \u0437\u043d\u0430\u043a\u0430&nbsp;<code>=<\/code>:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1 <br>2 <br>3 <br>4 <br>5 <br>6<\/td><td><strong>if<\/strong> x &lt; 0:<br> \u0431\u043b\u043e\u043a1 <br><strong>elif<\/strong> <br>x == 0: <em># \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435!<\/em> \u0431\u043b\u043e\u043a2 <br><strong>else<\/strong>: <br>\u0431\u043b\u043e\u043a3<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u044f:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<br>2<br>3 <br>4 <br>5<br>6<\/td><td><strong>if<\/strong> x &lt; 0: <br> <strong>print<\/strong>(&#8216;\u043c\u0430\u043b\u043e&#8217;)<br><strong>elif<\/strong> x == 0:<br> <strong>print<\/strong>(&#8216;\u0441\u0440\u0435\u0434\u043d\u0435&#8217;)<br><strong>else<\/strong>:<br> <strong>print<\/strong>(&#8216;\u043c\u043d\u043e\u0433\u043e&#8217;)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u0421\u041b\u041e\u0416\u041d\u042b\u0415 \u0423\u0421\u041b\u041e\u0412\u0418\u042f<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0432\u043e\u0439\u043d\u044b\u0445 \u043d\u0435\u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1 <br>2 <br>3 <br>4<\/td><td><strong>if<\/strong> 0 &lt; x &lt; 2: <br>  <strong>if<\/strong> 0 &lt; y &lt; 2: <br><strong>else<\/strong>: <br>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u044f c\u00a0<code>elif<\/code>:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<br>2<br>3<br>4<br>5<br>6<\/td><td><strong>if<\/strong> x &lt; 0: <br> <strong>print<\/strong>(&#8216;\u043c\u0430\u043b\u043e&#8217;) <br><strong>elif<\/strong> -0 &lt;= x &lt;= 0:<br>  <strong>print<\/strong>(&#8216;\u0441\u0440\u0435\u0434\u043d\u0435&#8217;) <br><strong>else<\/strong>: <br> <strong>print<\/strong>(&#8216;\u043c\u043d\u043e\u0433\u043e&#8217;)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u00a0<code>AND<\/code>\u00a0(\u0418):<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\"> <strong> if x >= 30 and x &lt;= 40:<\/strong><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c\u00a0<code>in<\/code>:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>site = &#8220;my.ru&#8221; <br>\u00a0 <strong>if<\/strong> &#8220;ru&#8221; <strong>in<\/strong> site:<br> <strong>print<\/strong>(&#8220;\u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e!&#8221;) <em># \u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e!<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u00a0<code>OR<\/code>\u00a0(\u0418\u041b\u0418):<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>site = &#8220;my.ru&#8221; <br>\u00a0 <strong>if<\/strong> &#8220;my&#8221; <strong>in<\/strong> site <strong>or<\/strong> site.endswith(&#8220;.ru&#8221;): <em># \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 &#8230;<\/em> <br><strong>print<\/strong>(&#8220;\u0423\u0441\u043b\u043e\u0432\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e!&#8221;)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0410\u043d\u0430\u043b\u043e\u0433 \u0442\u0435\u0440\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">uchenik_1 = 5\nuchenik_2 = 2\n\u00a0\notlichnik = \"\u043f\u0435\u0440\u0432\u044b\u0439 \u0443\u0447\u0435\u043d\u0438\u043a\" \n<strong>if<\/strong> uchenik_1 > uchenik_1  \n<strong>else<\/strong> \"\u0432\u0442\u043e\u0440\u043e\u0439 \u0443\u0447\u0435\u043d\u0438\u043a\"\n\u00a0\n<strong>print<\/strong>(otlichnik) <em># \u043f\u0435\u0440\u0432\u044b\u0439 \u0443\u0447\u0435\u043d\u0438\u043a<\/em><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 1_6:<\/strong>\u00a0\u0417\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0447\u0430\u0441\u043e\u0432 \u0438 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u043e\u043a \u0432 \u0447\u0430\u0441. \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u0430\u0440\u043f\u043b\u0430\u0442\u0443. \u0415\u0441\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u043d\u0438\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0431\u043e\u043b\u0435\u0435\u00a0<em>40<\/em>\u00a0\u0447\u0430\u0441\u043e\u0432, \u2014 \u0442\u043e \u0437\u0430\u0440\u043f\u043b\u0430\u0442\u0430 \u0443\u043c\u043d\u043e\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u00a0<em>1,5<\/em>. \u041e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0434\u0440\u0443\u0436\u0435\u043b\u044e\u0431\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u041f\u0440\u0438\u043c\u0435\u0440:<\/strong>\u00a0\u0414\u0430\u043d \u0433\u043e\u0434. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u0438\u0441\u043e\u043a\u043e\u0441\u043d\u044b\u0439 \u043b\u0438 \u0433\u043e\u0434 \u0438\u043b\u0438 \u043d\u0435\u0442? \u0412\u044b\u0432\u0435\u0441\u0442\u0438\u00a0<code>true\u00a0<\/code>\u0438\u043b\u0438\u00a0<code>false\u00a0<\/code>(\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435).<br>\u0423\u043a\u0430\u0437\u0430\u043d\u0438\u044f:\u00a0\u0413\u043e\u0434 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0438\u0441\u043e\u043a\u043e\u0441\u043d\u044b\u043c \u0435\u0441\u043b\u0438 \u043e\u043d \u043a\u0440\u0430\u0442\u0435\u043d\u00a0<strong>4<\/strong>, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u043a\u0440\u0430\u0442\u0435\u043d\u00a0<strong>100<\/strong>, \u043b\u0438\u0431\u043e \u043a\u0440\u0430\u0442\u0435\u043d\u00a0<strong>400<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#x270d; \u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>year = 2017 <br>is_true = year % 4 == 0 <strong>and<\/strong> (year % 100 != 0 <strong>or<\/strong> year % 400 == 0) <br><strong>print<\/strong>(is_true)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 1_7:<\/strong>&nbsp;\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0432\u0435\u0440\u043d\u043e \u043b\u0438, \u0447\u0442\u043e \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u2013 \u0447\u0435\u0442\u044b\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0435. \u0412\u044b\u0432\u0435\u0441\u0442\u0438&nbsp;<code>true&nbsp;<\/code>\u0438\u043b\u0438&nbsp;<code>false&nbsp;<\/code>(\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435).<strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 Python 1_8:<\/strong>&nbsp;\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0432\u043e\u0434\u0438\u0442 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u043d\u043e\u043c\u0435\u0440 \u043c\u0435\u0441\u044f\u0446\u0430 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u0432 \u044d\u0442\u043e\u043c \u043c\u0435\u0441\u044f\u0446\u0435. \u041f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0432\u043e\u0434\u0430 \u043d\u0435\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430 \u0443\u0440\u043e\u043a\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\u00a0\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f\u00a0\u043d\u0430 \u044f\u0437\u044b\u043a\u0435 python, \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c\u0438 \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. \u0423\u0437\u043d\u0430\u0435\u0442\u0435 \u043e\u0431 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[66],"tags":[],"class_list":["post-665","page","type-page","status-publish","hentry","category-python"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages\/665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/comments?post=665"}],"version-history":[{"count":0,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/pages\/665\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/media?parent=665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/categories?post=665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bearloga.space\/uk\/wp-json\/wp\/v2\/tags?post=665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}