{"id":2502,"date":"2026-07-09T12:53:07","date_gmt":"2026-07-09T09:53:07","guid":{"rendered":"https:\/\/school.edu-sigma.ru\/blog\/?p=2502"},"modified":"2026-07-13T19:40:21","modified_gmt":"2026-07-13T16:40:21","slug":"pervaya-programma-na-python","status":"publish","type":"post","link":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/","title":{"rendered":"\u041a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python: \u043e\u0442 Hello World \u0434\u043e \u0438\u0433\u0440\u044b \u2014 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434"},"content":{"rendered":"<p>\u0412 \u044d\u0442\u043e\u043c \u0433\u0430\u0439\u0434\u0435 \u2014 10 \u0448\u0430\u0433\u043e\u0432 \u043e\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0434\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0439 \u0438\u0433\u0440\u044b, \u0434\u0432\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441 \u043f\u043e\u043b\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c (\u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440 \u0438 \u0438\u0433\u0440\u0430 \u00ab\u0423\u0433\u0430\u0434\u0430\u0439 \u0447\u0438\u0441\u043b\u043e\u00bb) \u0438 \u0440\u0430\u0437\u0431\u043e\u0440 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043d\u0430 Tkinter. \u0417\u043d\u0430\u0442\u044c \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0443 \u00ab\u0432\u044b\u0448\u0435 \u0448\u043a\u043e\u043b\u044c\u043d\u043e\u0439\u00bb \u0438 \u0443\u043c\u0435\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u043e\u0433\u043e \u0441\u0442\u0438\u043b\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0434\u043b\u044f 80% \u0437\u0430\u0434\u0430\u0447 \u2014 \u041e\u041e\u041f (\u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435) \u043f\u043e\u0434\u043e\u0436\u0434\u0451\u0442.<\/p>\n<p>\u0425\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0439\u0442\u0438 \u043f\u0443\u0442\u044c \u043e\u0442 print(&#171;Hello, World!&#187;) \u0434\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441 \u043d\u0430\u0441\u0442\u0430\u0432\u043d\u0438\u043a\u043e\u043c? \u041d\u0430 \u043a\u0443\u0440\u0441\u0435 \u00ab\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435: \u0423\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u0441\u0442\u0430\u0440\u0442\u00bb \u0437\u0430 36 \u0447\u0430\u0441\u043e\u0432 \u0448\u043a\u043e\u043b\u044c\u043d\u0438\u043a\u0438 \u043e\u0441\u0432\u0430\u0438\u0432\u0430\u044e\u0442 Python, HTML\/CSS\/JS, Flask \u0438 Arduino \u2014 \u0438 \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u0447\u0435\u0442\u044b\u0440\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u043f\u043e\u0440\u0442\u0444\u043e\u043b\u0438\u043e. \u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u2014 0 \u20bd. \u0423\u0437\u043d\u0430\u0439\u0442\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043d\u0430 <a style=\"color: #2c6fad; text-decoration: none;\" href=\"https:\/\/school.edu-sigma.ru\/\">\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043a\u0443\u0440\u0441\u0430<\/a>.<\/p>\n<h2>\u0427\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u043f\u0435\u0440\u0432\u044b\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c<\/h2>\n<p>\u0422\u0440\u0438 \u0432\u0435\u0449\u0438: \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 Python 3.x, \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0441\u0440\u0435\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0444\u0430\u0439\u043b \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c .py. \u0412\u0441\u0451 \u044d\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e, \u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0437\u0430\u0439\u043c\u0451\u0442 5\u201310 \u043c\u0438\u043d\u0443\u0442. \u0414\u0430\u043b\u044c\u0448\u0435 \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0434.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1408\" height=\"768\" class=\"aligncenter size-full wp-image-2500\" src=\"https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/07\/10-shagov-pervaya-programma-python-infografika.jpg\" alt=\"\u0418\u043d\u0444\u043e\u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u2014 10 \u0448\u0430\u0433\u043e\u0432 \u043a \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043d\u0430 Python \u0434\u043b\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445\" srcset=\"https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/07\/10-shagov-pervaya-programma-python-infografika.jpg 1408w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/07\/10-shagov-pervaya-programma-python-infografika-300x164.jpg 300w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/07\/10-shagov-pervaya-programma-python-infografika-1024x559.jpg 1024w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/07\/10-shagov-pervaya-programma-python-infografika-768x419.jpg 768w\" sizes=\"auto, (max-width: 1408px) 100vw, 1408px\" \/><\/p>\n<h3>\u0428\u0430\u0433 1. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Python \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430<\/h3>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435 <a style=\"color: #2c6fad; text-decoration: none;\" href=\"https:\/\/python.org\">python.org<\/a> \u2192 \u0440\u0430\u0437\u0434\u0435\u043b Downloads \u2192 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435 \u0441\u0432\u0435\u0436\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e Python 3.x. \u041d\u0430 Windows \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0433\u0430\u043b\u043e\u0447\u043a\u0443 \u00ab<strong>Add Python to PATH<\/strong>\u00bb \u2014 \u0431\u0435\u0437 \u043d\u0435\u0451 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u043d\u0435 \u043d\u0430\u0439\u0434\u0451\u0442 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440, \u0438 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435:<\/p>\n<p># Windows<\/p>\n<p>python &#8212;version<\/p>\n<p># macOS \u0438 Linux<\/p>\n<p>python3 &#8212;version<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432 \u043e\u0442\u0432\u0435\u0442 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u0435\u0440\u0441\u0438\u044f \u2014 \u0432\u0441\u0451 \u0433\u043e\u0442\u043e\u0432\u043e. \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b, \u043d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, hello.py (\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 .py \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e) \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b:<\/p>\n<p>python hello.py<\/p>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043b\u044e\u0431\u043e\u0439 Python-\u0441\u043a\u0440\u0438\u043f\u0442: \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u0447\u0438\u0442\u0430\u0435\u0442 \u0444\u0430\u0439\u043b \u0441\u0432\u0435\u0440\u0445\u0443 \u0432\u043d\u0438\u0437, \u0441\u0442\u0440\u043e\u043a\u0430 \u0437\u0430 \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u0438 \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u2014 \u0431\u0435\u0437 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438, \u043a\u0430\u043a \u0432 C++ \u0438\u043b\u0438 Java.<\/p>\n<h3>\u0428\u0430\u0433 2. \u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0441\u0440\u0435\u0434\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438: Thonny, VS Code \u0438\u043b\u0438 PyCharm<\/h3>\n<p>\u041f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0438 \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u043c \u0431\u043b\u043e\u043a\u043d\u043e\u0442\u0435, \u043d\u043e \u0441\u0440\u0435\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u2014 IDE (Integrated Development Environment, \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0441\u0440\u0435\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438) \u2014 \u043f\u043e\u0434\u0441\u0432\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441, \u043b\u043e\u0432\u0438\u0442 \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0438 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0432 \u043e\u0434\u0438\u043d \u043a\u043b\u0438\u043a.<\/p>\n<table style=\"width: 100%; border-collapse: collapse; font-size: 14px;\">\n<thead>\n<tr>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u0421\u0440\u0435\u0434\u0430<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u0414\u043b\u044f \u043a\u043e\u0433\u043e<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u0421\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c setup<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438<br \/>\n<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\"><strong>Thonny<\/strong><\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0435 \u043d\u043e\u0432\u0438\u0447\u043a\u0438<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a, \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435, \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 Python<\/td>\n<\/tr>\n<tr style=\"background: #f9f9f9;\">\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\"><strong>VS Code<\/strong><\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044b<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0421\u0440\u0435\u0434\u043d\u044f\u044f<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 Pylance, \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b, \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\"><strong>PyCharm Community<\/strong><\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0435<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0412\u044b\u0448\u0435 \u0441\u0440\u0435\u0434\u043d\u0435\u0439<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0423\u043c\u043d\u043e\u0435 \u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435, \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433, \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0441 Git<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0421\u043e\u0432\u0435\u0442 \u0434\u043b\u044f \u0441\u0442\u0430\u0440\u0442\u0430: \u0432\u043e\u0437\u044c\u043c\u0438\u0442\u0435 <strong>Thonny<\/strong>. \u041e\u043d \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443, \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 \u2014 \u044d\u0442\u043e \u043d\u0435\u0437\u0430\u043c\u0435\u043d\u0438\u043c\u043e, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u0434 \u0432\u0435\u0434\u0451\u0442 \u0441\u0435\u0431\u044f \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e.<\/p>\n<p>\u041d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043e\u043d\u043b\u0430\u0439\u043d-\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 (replit.com \u0438\u043b\u0438 programiz.com). Python \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u043e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435: \u0443\u0434\u043e\u0431\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043e\u043c, \u043d\u043e \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0443\u0436\u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430.<\/p>\n<h2>\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f: 10 \u0448\u0430\u0433\u043e\u0432 \u043a \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435<\/h2>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0434\u043d\u0443 \u043d\u043e\u0432\u0443\u044e \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e. \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0435 \u2014 \u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0439\u0442\u0435, \u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u043f\u043e\u0434 \u0441\u0435\u0431\u044f.<\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430: \u0432 Python \u0432\u043c\u0435\u0441\u0442\u043e \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a {} \u2014 <strong>\u043e\u0442\u0441\u0442\u0443\u043f\u044b<\/strong>. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442 PEP 8 (\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u0441\u0430\u043c\u0438\u043c \u0413\u0432\u0438\u0434\u043e \u0432\u0430\u043d \u0420\u043e\u0441\u0441\u0443\u043c\u043e\u043c) \u0442\u0440\u0435\u0431\u0443\u0435\u0442 4 \u043f\u0440\u043e\u0431\u0435\u043b\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438. \u041f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043e\u0442\u0441\u0442\u0443\u043f \u2014 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 IndentationError.<\/p>\n<h3>\u0428\u0430\u0433 3. \u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Hello, World!<\/h3>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b hello.py \u0438 \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<p>print(&#171;Hello, World!&#187;)<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435: python hello.py. \u0412 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f:<\/p>\n<p>Hello, World!<\/p>\n<p>\u0412\u043e\u0442 \u0438 \u0432\u0441\u044f \u043f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 Python. \u0414\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f: \u0432 Java \u0442\u0430 \u0436\u0435 \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 4 \u0441\u0442\u0440\u043e\u043a\u0438, \u0432 C++ \u2014 5 \u0441\u0442\u0440\u043e\u043a \u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u0418\u043c\u0435\u043d\u043d\u043e \u043d\u0438\u0437\u043a\u0438\u0439 \u043f\u043e\u0440\u043e\u0433 \u0432\u0445\u043e\u0434\u0430 \u0434\u0435\u043b\u0430\u0435\u0442 Python \u043b\u0443\u0447\u0448\u0438\u043c \u043f\u0435\u0440\u0432\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c.<\/p>\n<p>print() \u2014 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f. \u041e\u043d\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043b\u044e\u0431\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0438\u0445 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c. \u0414\u0432\u0430 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430:<\/p>\n<ul>\n<li>sep \u2014 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043c\u0435\u0436\u0434\u0443 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0440\u043e\u0431\u0435\u043b);<\/li>\n<li>end \u2014 \u0447\u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0446\u0435 (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438).<\/li>\n<\/ul>\n<p>print(&#171;Python&#187;, &#171;3.12&#187;, sep=&#187;-&#171;) # Python-3.12<\/p>\n<p>print(&#171;\u0428\u0430\u0433 1&#8243;, end=&#187; \u2192 &#171;)<\/p>\n<p>print(&#171;\u0428\u0430\u0433 2&#187;) # \u0428\u0430\u0433 1 \u2192 \u0428\u0430\u0433 2<\/p>\n<p>\u0421\u0430\u043c\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 None \u2014 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442, \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442.<\/p>\n<h3>\u0428\u0430\u0433 4. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u0432\u0432\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 f-\u0441\u0442\u0440\u043e\u043a\u0438<\/h3>\n<p>Python \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <strong>\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044e<\/strong>: \u0442\u0438\u043f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043d\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u044f\u0432\u043d\u043e, \u043e\u043d \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>name = &#171;\u0410\u043b\u0451\u0448\u0430&#187; # str<\/p>\n<p>age = 16 # int<\/p>\n<p>height = 1.75 # float<\/p>\n<p>\u0414\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u2014 \u0444\u0443\u043d\u043a\u0446\u0438\u044f input(). \u0417\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e: <strong>input()<\/strong><strong> \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 <\/strong><strong>str<\/strong>, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0432\u0451\u043b \u0446\u0438\u0444\u0440\u0443. \u0427\u0430\u0441\u0442\u0430\u044f \u043b\u043e\u0432\u0443\u0448\u043a\u0430:<\/p>\n<p>age = input(&#171;\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442? &#171;)<\/p>\n<p>print(age + 5) # TypeError: can only concatenate str (not &#171;int&#187;) to str<\/p>\n<p>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u043d\u0443\u0436\u043d\u043e \u044f\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435:<\/p>\n<p>age = int(input(&#171;\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442? &#171;))<\/p>\n<p>print(age + 5) # \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/p>\n<p>\u0414\u043b\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <strong>f-\u0441\u0442\u0440\u043e\u043a\u0438<\/strong> (\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0441 Python 3.6+):<\/p>\n<p>name = &#171;\u0410\u043b\u0451\u0448\u0430&#187;<\/p>\n<p>age = 16<\/p>\n<p>print(f&#187;\u041f\u0440\u0438\u0432\u0435\u0442, {name}! \u0422\u0435\u0431\u0435 {age} \u043b\u0435\u0442.&#187;)<\/p>\n<p>F-\u0441\u0442\u0440\u043e\u043a\u0438 \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0435\u0435 \u043a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 + \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u044f\u043c\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a: f&#187;{2 * age}&#187;.<\/p>\n<h3>\u0428\u0430\u0433 5. \u0423\u0441\u043b\u043e\u0432\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b if\/elif\/else<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u2014 \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435, \u0437\u0430\u0442\u0435\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043e\u0442\u0441\u0442\u0443\u043f 4 \u043f\u0440\u043e\u0431\u0435\u043b\u0430. \u0421\u043a\u043e\u0431\u043a\u0438 \u0432\u043e\u043a\u0440\u0443\u0433 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043d\u0435 \u043d\u0443\u0436\u043d\u044b:<\/p>\n<p>age = int(input(&#171;\u0412\u043e\u0437\u0440\u0430\u0441\u0442: &#171;))<\/p>\n<p>if age &lt; 12:<\/p>\n<p>print(&#171;\u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0448\u043a\u043e\u043b\u0430&#187;)<\/p>\n<p>elif age &lt; 18:<\/p>\n<p>print(&#171;\u0421\u0442\u0430\u0440\u0448\u0430\u044f \u0448\u043a\u043e\u043b\u0430&#187;)<\/p>\n<p>else:<\/p>\n<p>print(&#171;\u0412\u0437\u0440\u043e\u0441\u043b\u044b\u0439&#187;)<\/p>\n<p>\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0441\u043b\u043e\u0432\u0430\u043c\u0438: and, or, not \u2014 \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 &amp;&amp; \u0438 || \u0432 Java \u0438\u043b\u0438 C++.<\/p>\n<p>\u041f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0430\u044f \u043b\u043e\u0432\u0443\u0448\u043a\u0430 \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u043d\u0430 Python:<\/p>\n<p># \u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u2014 \u0432\u0441\u0435\u0433\u0434\u0430 True, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e 2 \u2014 \u043d\u0435\u043f\u0443\u0441\u0442\u043e\u0439 \u043e\u0431\u044a\u0435\u043a\u0442<\/p>\n<p>if code == 1 or 2:<\/p>\n<p>&#8230;<\/p>\n<p># \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e<\/p>\n<p>if code in [1, 2, 3]:<\/p>\n<p>&#8230;<\/p>\n<p>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 in \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435, \u0441\u0442\u0440\u043e\u043a\u0435 \u0438\u043b\u0438 \u0441\u043b\u043e\u0432\u0430\u0440\u0435 \u2014 \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u043a\u043e\u0434 \u043a\u0443\u0434\u0430 \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0435\u0435 \u0446\u0435\u043f\u043e\u0447\u043a\u0438 or.<\/p>\n<h3>\u0428\u0430\u0433 6. \u0426\u0438\u043a\u043b\u044b for \u0438 while \u2014 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u044f<\/h3>\n<p><strong>\u0426\u0438\u043a\u043b for<\/strong> \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 range():<\/p>\n<p>for i in range(1, 6): # \u043e\u0442 1 \u0434\u043e 5, \u043f\u0440\u0430\u0432\u0430\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u041d\u0415 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f<\/p>\n<p>print(i)<\/p>\n<p>\u0427\u0430\u0441\u0442\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430: range(1, 6) \u0432\u044b\u0434\u0430\u0451\u0442 1, 2, 3, 4, 5 \u2014 \u043d\u043e \u043d\u0435 6. \u0418\u0442\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0443 \u2014 \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb:<\/p>\n<p>fruits = [&#171;\u044f\u0431\u043b\u043e\u043a\u043e&#187;, &#171;\u0433\u0440\u0443\u0448\u0430&#187;, &#171;\u0441\u043b\u0438\u0432\u0430&#187;]<\/p>\n<p>for fruit in fruits:<\/p>\n<p>print(fruit)<\/p>\n<p><strong>\u0426\u0438\u043a\u043b while<\/strong> \u2014 \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e. \u041f\u0430\u0442\u0442\u0435\u0440\u043d while True: + break \u043d\u0435\u0437\u0430\u043c\u0435\u043d\u0438\u043c \u0434\u043b\u044f \u043c\u0435\u043d\u044e \u0438 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u0441\u0435\u0441\u0441\u0438\u0439:<\/p>\n<p>while True:<\/p>\n<p>answer = input(&#171;\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c? (\u0434\u0430\/\u043d\u0435\u0442): &#171;)<\/p>\n<p>if answer == &#171;\u043d\u0435\u0442&#187;:<\/p>\n<p>break<\/p>\n<p>print(&#171;\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c!&#187;)<\/p>\n<p>break \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u0446\u0438\u043a\u043b \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e. continue \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044e \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439. \u0415\u0441\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u00ab\u0437\u0430\u0432\u0438\u0441\u00bb \u0432 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0446\u0438\u043a\u043b\u0435 \u2014 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 <strong>Ctrl+C<\/strong>: \u044d\u0442\u043e \u0432\u044b\u0437\u043e\u0432\u0435\u0442 KeyboardInterrupt \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435.<\/p>\n<h3>\u0428\u0430\u0433 7. \u0421\u043f\u0438\u0441\u043a\u0438 \u0438 \u0441\u043b\u043e\u0432\u0430\u0440\u0438 \u2014 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043d\u0430\u0431\u043e\u0440\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445<\/h3>\n<p><strong>\u0421\u043f\u0438\u0441\u043e\u043a<\/strong> [] \u2014 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0435\u0439:<\/p>\n<p>scores = [85, 92, 78, 91]<\/p>\n<p>scores.append(100) # \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0435\u0446<\/p>\n<p>scores.pop() # \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439<\/p>\n<p>scores.sort() # \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435<\/p>\n<p>print(scores[0]) # \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442<\/p>\n<p><strong>\u0421\u043b\u043e\u0432\u0430\u0440\u044c<\/strong> {} \u2014 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u00ab\u043a\u043b\u044e\u0447: \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00bb, \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0447\u0435\u0440\u0435\u0437 \u0445\u0435\u0448-\u0442\u0430\u0431\u043b\u0438\u0446\u0443:<\/p>\n<p>student = {&#171;name&#187;: &#171;\u0410\u043b\u0451\u0448\u0430&#187;, &#171;age&#187;: 16, &#171;grade&#187;: &#171;10\u0410&#187;}<\/p>\n<p>print(student[&#171;name&#187;]) # \u0410\u043b\u0451\u0448\u0430<\/p>\n<p>print(student.get(&#171;email&#187;, &#171;\u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d&#187;)) # \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d<\/p>\n<p>\u041c\u0435\u0442\u043e\u0434 .get(key, default) \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0435\u0435 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 []: \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u043a\u043b\u044e\u0447\u0430 \u0432\u0435\u0440\u043d\u0451\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0430 \u043d\u0435 KeyError.<\/p>\n<table style=\"width: 100%; border-collapse: collapse; font-size: 14px;\">\n<thead>\n<tr>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u041a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u0418\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439<br \/>\n<\/strong><\/th>\n<th style=\"padding: 12px 16px; text-align: left; border: 1px solid #ddd; background: #2c2c2c; font-weight: 500; font-size: 13px; color: #ffffff;\"><strong>\u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435<br \/>\n<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">\u0421\u043f\u0438\u0441\u043e\u043a<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">[1, 2, 3]<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0423\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0431\u043e\u0440\u044b, \u043e\u0447\u0435\u0440\u0435\u0434\u0438<\/td>\n<\/tr>\n<tr style=\"background: #f9f9f9;\">\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">\u0421\u043b\u043e\u0432\u0430\u0440\u044c<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">{&#171;k&#187;: &#171;v&#187;}<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041a\u043b\u044e\u0447 \u2192 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">\u041a\u043e\u0440\u0442\u0435\u0436<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">(1, 2, 3)<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041d\u0435\u0442<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b, \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<\/td>\n<\/tr>\n<tr style=\"background: #f9f9f9;\">\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5; font-weight: 500;\">\u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">{1, 2, 3}<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0414\u0430<\/td>\n<td style=\"padding: 12px 16px; border: 1px solid #ddd; line-height: 1.5;\">\u0423\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u0428\u0430\u0433 8. \u0424\u0443\u043d\u043a\u0446\u0438\u0438 def \u2014 \u0438\u0437\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043e\u0442 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430<\/h3>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 def, \u0442\u0435\u043b\u043e \u2014 \u0441 \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u043c:<\/p>\n<p>def greet(name: str, formal: bool = False) -&gt; str:<\/p>\n<p>if formal:<\/p>\n<p>return f&#187;\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c, {name}!&#187;<\/p>\n<p>return f&#187;\u041f\u0440\u0438\u0432\u0435\u0442, {name}!&#187;<\/p>\n<p>print(greet(&#171;\u0410\u043b\u0451\u0448\u0430&#187;))<\/p>\n<p>print(greet(&#171;\u0410\u043d\u0434\u0440\u0435\u0439 \u0418\u0432\u0430\u043d\u043e\u0432\u0438\u0447&#187;, formal=True))<\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 <strong>Type Hinting<\/strong> (\u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u0442\u0438\u043f\u043e\u0432, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0441 Python 3.5+): name: str \u0438 -&gt; str \u0433\u043e\u0432\u043e\u0440\u044f\u0442 IDE, \u043a\u0430\u043a\u043e\u0439 \u0442\u0438\u043f \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 \u0438 \u0432\u044b\u0445\u043e\u0434\u0435. \u041a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u0431\u0435\u0437 \u043d\u0438\u0445, \u043d\u043e \u0441 \u043d\u0438\u043c\u0438 IDE \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u0438\u0442 \u043d\u0435\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0435\u0449\u0451 \u0434\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430.<\/p>\n<p>\u0422\u0440\u0438 \u0432\u0435\u0449\u0438 \u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0431\u0438\u0432\u0430\u044e\u0442 \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432:<\/p>\n<ol>\n<li>return \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u043c\u0443 \u043a\u043e\u0434\u0443.<\/li>\n<li>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0435\u0437 return \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 None. \u041b\u043e\u0432\u0443\u0448\u043a\u0430: x = func_with_print() \u2014 \u0442\u0435\u043f\u0435\u0440\u044c x \u044d\u0442\u043e None, \u0430 \u043d\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439.<\/li>\n<li>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <strong>\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435<\/strong> \u2014 \u0441\u043d\u0430\u0440\u0443\u0436\u0438 \u0438\u0445 \u043d\u0435 \u0432\u0438\u0434\u043d\u043e. \u0412\u043c\u0435\u0441\u0442\u043e global \u043b\u0443\u0447\u0448\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 return.<\/li>\n<\/ol>\n<p>PEP 8 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 \u0441\u0442\u0438\u043b\u0435 snake_case: calculate_average, \u0430 \u043d\u0435 calculateAverage.<\/p>\n<h3>\u0428\u0430\u0433 9. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438: random, math, time<\/h3>\n<p>Python \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u0431\u043e\u0433\u0430\u0442\u043e\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 \u2014 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044f \u00abBatteries Included\u00bb (\u00ab\u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0438 \u0432 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0435\u00bb). \u0414\u043b\u044f \u0441\u0442\u0430\u0440\u0442\u0430 pip install \u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u2014 \u0432\u0441\u0451 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c:<\/p>\n<p>import random<\/p>\n<p>import math<\/p>\n<p>import time<\/p>\n<p># random<\/p>\n<p>secret = random.randint(1, 100) # \u043e\u0431\u0435 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u2014 \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 range()!<\/p>\n<p>card = random.choice([&#171;\u2660&#187;, &#171;\u2665&#187;, &#171;\u2666&#187;, &#171;\u2663&#187;])<\/p>\n<p># math<\/p>\n<p>print(math.sqrt(144)) # 12.0<\/p>\n<p>print(math.pi) # 3.141592&#8230;<\/p>\n<p>print(math.ceil(4.2)) # 5<\/p>\n<p># time<\/p>\n<p>time.sleep(1) # \u043f\u0430\u0443\u0437\u0430 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0430 \u2014 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0432 \u043f\u0430\u0440\u0441\u0435\u0440\u0430\u0445, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043d\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440<\/p>\n<p>\u0422\u0440\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0438\u043c\u043f\u043e\u0440\u0442\u0430:<\/p>\n<p>import math # math.sqrt() \u2014 \u044f\u0432\u043d\u043e, \u043e\u0442\u043a\u0443\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f<\/p>\n<p>from math import sqrt # sqrt() \u2014 \u043a\u043e\u0440\u043e\u0447\u0435, \u043d\u043e \u043c\u0435\u043d\u0435\u0435 \u044f\u0432\u043d\u043e<\/p>\n<p>import random as rnd # rnd.randint() \u2014 \u043f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c \u0434\u043b\u044f \u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u0438\u043c\u0451\u043d<\/p>\n<h3>\u0428\u0430\u0433 10. \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0448\u0438\u0431\u043e\u043a: try\/except \u0431\u0435\u0437 \u043f\u0430\u043d\u0438\u043a\u0438<\/h3>\n<p>\u0411\u0435\u0437 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u00ab\u043f\u0430\u0434\u0430\u0435\u0442\u00bb \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u0436\u0435 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u2014 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0438\u0434\u0438\u0442 \u0442\u0440\u0435\u0439\u0441\u0431\u044d\u043a (\u0441\u0442\u0435\u043a \u0432\u044b\u0437\u043e\u0432\u043e\u0432), \u0430 \u043d\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0435\u0440\u044f\u044e\u0442\u0441\u044f.<\/p>\n<p>while True:<\/p>\n<p>try:<\/p>\n<p>number = int(input(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043b\u043e: &#171;))<\/p>\n<p>print(f&#187;\u0412\u044b \u0432\u0432\u0435\u043b\u0438: {number}&#187;)<\/p>\n<p>break<\/p>\n<p>except ValueError:<\/p>\n<p>print(&#171;\u042d\u0442\u043e \u043d\u0435 \u0447\u0438\u0441\u043b\u043e, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043d\u043e\u0432\u0430&#187;)<\/p>\n<p>\u0412\u0441\u0435\u0433\u0434\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0439\u0442\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0442\u0438\u043f \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f: ValueError, ZeroDivisionError, KeyError, IndexError. \u0410\u043d\u0442\u0438\u043f\u0430\u0442\u0442\u0435\u0440\u043d \u2014 <strong>bare except<\/strong> \u0431\u0435\u0437 \u0442\u0438\u043f\u0430:<\/p>\n<p># \u041f\u043b\u043e\u0445\u043e \u2014 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u0442\u0430\u043a \u043d\u0435 \u0434\u0435\u043b\u0430\u0439\u0442\u0435<\/p>\n<p>try:<\/p>\n<p>result = 10 \/ 0<\/p>\n<p>except:<\/p>\n<p>pass # \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0412\u0421\u0401, \u0432\u043a\u043b\u044e\u0447\u0430\u044f Ctrl+C \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b<\/p>\n<p>bare except \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0431\u0430\u0433\u0438 \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u00ab\u043d\u0435\u0443\u0431\u0438\u0432\u0430\u0435\u043c\u043e\u0439\u00bb \u0434\u0430\u0436\u0435 \u043a\u043e\u0433\u0434\u0430 \u0435\u0451 \u043d\u0443\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c. \u041f\u0440\u0430\u0432\u0438\u043b\u043e: except ValueError: \u0438\u043b\u0438 except (KeyError, IndexError): \u2014 \u0432\u0441\u0435\u0433\u0434\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e.<\/p>\n<h2>\u041f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u2014 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440<\/h2>\n<p>\u0421\u043e\u0431\u0435\u0440\u0451\u043c \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python: \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440 \u0441 \u0447\u0435\u0442\u044b\u0440\u044c\u043c\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c\u0438, \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u0432\u0432\u043e\u0434\u0430 \u0438 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c.<\/p>\n<p><strong>\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f<\/strong> (\u0448\u0430\u0433\u0438 3\u20135):<\/p>\n<p>a = float(input(&#171;\u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e: &#171;))<\/p>\n<p>b = float(input(&#171;\u0412\u0442\u043e\u0440\u043e\u0435 \u0447\u0438\u0441\u043b\u043e: &#171;))<\/p>\n<p>op = input(&#171;\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u044f (+, -, *, \/): &#171;)<\/p>\n<p>if op == &#171;+&#187;:<\/p>\n<p>print(a + b)<\/p>\n<p>elif op == &#171;-&#171;:<\/p>\n<p>print(a &#8212; b)<\/p>\n<p>elif op == &#171;*&#187;:<\/p>\n<p>print(a * b)<\/p>\n<p>elif op == &#171;\/&#187;:<\/p>\n<p>print(a \/ b)<\/p>\n<p>else:<\/p>\n<p>print(&#171;\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f&#187;)<\/p>\n<p><strong>\u041f\u043e\u043b\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0441 \u0446\u0438\u043a\u043b\u043e\u043c \u0438 \u0437\u0430\u0449\u0438\u0442\u043e\u0439<\/strong> (\u0448\u0430\u0433\u0438 6, 8, 10):<\/p>\n<p>def calculate(a: float, b: float, op: str) -&gt; str:<\/p>\n<p>if op == &#171;+&#187;:<\/p>\n<p>return str(a + b)<\/p>\n<p>elif op == &#171;-&#171;:<\/p>\n<p>return str(a &#8212; b)<\/p>\n<p>elif op == &#171;*&#187;:<\/p>\n<p>return str(a * b)<\/p>\n<p>elif op == &#171;\/&#187;:<\/p>\n<p>if b == 0:<\/p>\n<p>return &#171;\u041e\u0448\u0438\u0431\u043a\u0430: \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u043d\u043e\u043b\u044c&#187;<\/p>\n<p>return str(a \/ b)<\/p>\n<p>elif op == &#171;**&#187;:<\/p>\n<p>return str(a ** b) # ** \u2014 \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c<\/p>\n<p>return &#171;\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f&#187;<\/p>\n<p>while True:<\/p>\n<p>try:<\/p>\n<p>a = float(input(&#171;\u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e: &#171;))<\/p>\n<p>b = float(input(&#171;\u0412\u0442\u043e\u0440\u043e\u0435 \u0447\u0438\u0441\u043b\u043e: &#171;))<\/p>\n<p>op = input(&#171;\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u044f (+, -, *, \/, **): &#171;)<\/p>\n<p>print(&#171;\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:&#187;, calculate(a, b, op))<\/p>\n<p>except ValueError:<\/p>\n<p>print(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043b\u0430, \u0430 \u043d\u0435 \u0442\u0435\u043a\u0441\u0442&#187;)<\/p>\n<p>again = input(&#171;\u0415\u0449\u0451 \u0440\u0430\u0437? (\u0434\u0430\/\u043d\u0435\u0442): &#171;)<\/p>\n<p>if again.lower() != &#171;\u0434\u0430&#187;:<\/p>\n<p>break<\/p>\n<p>\u0427\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e: float() \u0434\u043b\u044f \u0434\u0440\u043e\u0431\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b (\u0448\u0430\u0433 4), if\/elif\/else \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 (\u0448\u0430\u0433 5), while True + break \u0434\u043b\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u0430 (\u0448\u0430\u0433 6), def + return \u0434\u043b\u044f \u0432\u044b\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u043b\u043e\u0433\u0438\u043a\u0438 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e (\u0448\u0430\u0433 8), try\/except ValueError \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0442\u044b \u0432\u0432\u043e\u0434\u0430 (\u0448\u0430\u0433 10). \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 ** \u0432\u043e\u0437\u0432\u043e\u0434\u0438\u0442 \u043f\u0435\u0440\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0432\u0442\u043e\u0440\u043e\u0433\u043e.<\/p>\n<h2>\u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u2014 \u0438\u0433\u0440\u0430 \u00ab\u0423\u0433\u0430\u0434\u0430\u0439 \u0447\u0438\u0441\u043b\u043e\u00bb<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1408\" height=\"768\" class=\"aligncenter size-full wp-image-2499\" src=\"https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/07\/blok-skhema-igry-ugaday-chislo-python.jpg\" alt=\"\u0411\u043b\u043e\u043a-\u0441\u0445\u0435\u043c\u0430 \u0438\u0433\u0440\u044b \u00ab\u0423\u0433\u0430\u0434\u0430\u0439 \u0447\u0438\u0441\u043b\u043e\u00bb \u043d\u0430 Python \u2014 \u0446\u0438\u043a\u043b while \u0438 \u0432\u0435\u0442\u043a\u0438 if\" srcset=\"https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/07\/blok-skhema-igry-ugaday-chislo-python.jpg 1408w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/07\/blok-skhema-igry-ugaday-chislo-python-300x164.jpg 300w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/07\/blok-skhema-igry-ugaday-chislo-python-1024x559.jpg 1024w, https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/07\/blok-skhema-igry-ugaday-chislo-python-768x419.jpg 768w\" sizes=\"auto, (max-width: 1408px) 100vw, 1408px\" \/><\/p>\n<p>\u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0432\u0441\u0435 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 \u0448\u0430\u0433\u043e\u0432 1\u201310: \u043c\u043e\u0434\u0443\u043b\u044c random, \u0446\u0438\u043a\u043b while, \u0431\u043b\u043e\u043a try\/except, \u0432\u0435\u0442\u043a\u0438 if\/elif, \u0444\u0443\u043d\u043a\u0446\u0438\u044e def \u0438 \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u043f\u043e\u043f\u044b\u0442\u043e\u043a. \u0423\u0440\u043e\u0432\u0435\u043d\u044c \u2014 \u0441\u0440\u0435\u0434\u043d\u0438\u0439, \u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0432\u0441\u0451 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u043e.<\/p>\n<h3>\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0441 \u0440\u0430\u0437\u0431\u043e\u0440\u043e\u043c \u2014 \u0447\u0442\u043e \u0438 \u0437\u0430\u0447\u0435\u043c<\/h3>\n<p>import random<\/p>\n<p>def start_game() -&gt; None:<\/p>\n<p>secret = random.randint(1, 100) # \u043e\u0431\u0435 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b<\/p>\n<p>attempts = 0<\/p>\n<p>print(&#171;\u0417\u0430\u0433\u0430\u0434\u0430\u043b \u0447\u0438\u0441\u043b\u043e \u043e\u0442 1 \u0434\u043e 100. \u0423\u0433\u0430\u0434\u0430\u0439!&#187;)<\/p>\n<p>while True:<\/p>\n<p>user_input = input(&#171;\u0422\u0432\u043e\u0451 \u0447\u0438\u0441\u043b\u043e (\u0438\u043b\u0438 &#8216;exit&#8217; \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430): &#171;)<\/p>\n<p>if user_input.lower() == &#171;exit&#187;:<\/p>\n<p>print(f&#187;\u0421\u0434\u0430\u043b\u0441\u044f! \u0417\u0430\u0433\u0430\u0434\u0430\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0431\u044b\u043b\u043e {secret}.&#187;)<\/p>\n<p>break<\/p>\n<p>try:<\/p>\n<p>guess = int(user_input)<\/p>\n<p>except ValueError:<\/p>\n<p>print(&#171;\u0412\u0432\u0435\u0434\u0438 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043d\u0435 \u0442\u0435\u043a\u0441\u0442.&#187;)<\/p>\n<p>continue # \u043d\u0435 \u0437\u0430\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0443\u044e \u043f\u043e\u043f\u044b\u0442\u043a\u0443<\/p>\n<p>attempts += 1<\/p>\n<p>if guess &lt; secret:<\/p>\n<p>print(&#171;\u0411\u043e\u043b\u044c\u0448\u0435!&#187;)<\/p>\n<p>elif guess &gt; secret:<\/p>\n<p>print(&#171;\u041c\u0435\u043d\u044c\u0448\u0435!&#187;)<\/p>\n<p>else:<\/p>\n<p>print(f&#187;\u0412\u0435\u0440\u043d\u043e! \u0422\u044b \u0443\u0433\u0430\u0434\u0430\u043b \u0437\u0430 {attempts} \u043f\u043e\u043f\u044b\u0442\u043e\u043a.&#187;)<\/p>\n<p>break<\/p>\n<p>if __name__ == &#171;__main__&#187;:<\/p>\n<p>start_game()<\/p>\n<p>\u0420\u0430\u0437\u0431\u043e\u0440 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439:<\/p>\n<ul>\n<li>random.randint(1, 100) \u2014 \u043e\u0431\u0435 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 range() (\u0448\u0430\u0433 9).<\/li>\n<li>continue \u043f\u043e\u0441\u043b\u0435 ValueError \u2014 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0432\u0432\u043e\u0434 \u043d\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u043f\u043e\u043f\u044b\u0442\u043e\u043a (\u0448\u0430\u0433 10).<\/li>\n<li>user_input.lower() == &#171;exit&#187; \u2014 \u043f\u0430\u0441\u0445\u0430\u043b\u043a\u0430: \u0438\u0433\u0440\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u0441\u0434\u0430\u0442\u044c\u0441\u044f \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442.<\/li>\n<li>if __name__ == &#171;__main__&#187;: \u2014 \u043f\u0440\u0438 \u043f\u0440\u044f\u043c\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 python game.py \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f __name__ \u0440\u0430\u0432\u043d\u0430 &#171;__main__&#187;, \u043a\u043e\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f. \u041f\u0440\u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0435 import game \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0430\u0439\u043b \u2014 \u0438\u0433\u0440\u0430 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u041f\u0430\u0442\u0442\u0435\u0440\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043a\u0430\u043a \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u043a\u0430\u043a \u043c\u043e\u0434\u0443\u043b\u044c.<\/li>\n<\/ul>\n<h3>\u041a\u0430\u043a \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0438\u0433\u0440\u0443: \u043b\u0438\u043c\u0438\u0442 \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u0438 \u0440\u0435\u043a\u043e\u0440\u0434 \u0432 \u0444\u0430\u0439\u043b<\/h3>\n<p>\u0422\u0440\u0438 \u0438\u0434\u0435\u0438 \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<\/p>\n<p><strong>\u041b\u0438\u043c\u0438\u0442 \u043f\u043e\u043f\u044b\u0442\u043e\u043a.<\/strong> \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 MAX_ATTEMPTS = 7 \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0432\u044b\u0445\u043e\u0434\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u0430 \u2014 \u0435\u0441\u043b\u0438 attempts &gt;= MAX_ATTEMPTS, \u0438\u0433\u0440\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c.<\/p>\n<p><strong>\u0420\u0435\u043a\u043e\u0440\u0434 \u0432 \u0444\u0430\u0439\u043b.<\/strong> \u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 with \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0434\u0430\u0436\u0435 \u043f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0435:<\/p>\n<p>with open(&#171;record.txt&#187;, &#171;w&#187;) as f:<\/p>\n<p>f.write(str(attempts))<\/p>\n<p><strong>\u0423\u0440\u043e\u0432\u043d\u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438.<\/strong> \u0412\u043d\u0435\u0448\u043d\u0438\u0439 while True: \u0441 \u043c\u0435\u043d\u044e \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u0437\u043e\u0432\u043e\u043c start_game(): 1 \u2014 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d 1\u201350, 2 \u2014 1\u2013100, 3 \u2014 1\u20131000. \u041f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e.<\/p>\n<h2>\u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441: \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 Tkinter<\/h2>\n<p>Tkinter \u0432\u0445\u043e\u0434\u0438\u0442 \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 Python \u2014 pip install \u043d\u0435 \u043d\u0443\u0436\u0435\u043d. \u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0430 \u0441 python.org \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0441\u0440\u0430\u0437\u0443.<\/p>\n<p>import tkinter as tk<\/p>\n<p>from tkinter import messagebox<\/p>\n<p>\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043a\u043d\u043e:<\/p>\n<p>window = tk.Tk()<\/p>\n<p>window.title(&#171;\u041c\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 GUI&#187;)<\/p>\n<p>window.geometry(&#171;400&#215;300&#8243;)<\/p>\n<p>label = tk.Label(window, text=&#187;\u041f\u0440\u0438\u0432\u0435\u0442, \u043c\u0438\u0440!&#187;)<\/p>\n<p>label.pack()<\/p>\n<p>window.mainloop() # \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0446\u0438\u043a\u043b \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u2014 \u0431\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u043e\u043a\u043d\u043e \u0437\u0430\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e<\/p>\n<p>\u0426\u0435\u043f\u043e\u0447\u043a\u0430 \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f: tk.Tk() \u2192 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0432\u0438\u0434\u0436\u0435\u0442\u044b (Label, Entry, Button, OptionMenu) \u2192 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0438 .pack() \/ .grid() \/ .place() \u2192 window.mainloop().<\/p>\n<p><strong>\u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u043a\u043b\u0438\u043a\u0435\u0440 \u0441 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u043c:<\/strong><\/p>\n<p>import time<\/p>\n<p>count = 0<\/p>\n<p>start = time.time()<\/p>\n<p>def click():<\/p>\n<p>global count<\/p>\n<p>count += 1<\/p>\n<p>label.config(text=f&#187;\u041a\u043b\u0438\u043a\u043e\u0432: {count}&#187;)<\/p>\n<p>def tick():<\/p>\n<p>label_timer.config(text=f&#187;\u0421\u0435\u043a\u0443\u043d\u0434: {int(time.time() &#8212; start)}&#187;)<\/p>\n<p>window.after(1000, tick) # \u0432\u044b\u0437\u0432\u0430\u0442\u044c tick \u0441\u043d\u043e\u0432\u0430 \u0447\u0435\u0440\u0435\u0437 1000 \u043c\u0441<\/p>\n<p>window = tk.Tk()<\/p>\n<p>label = tk.Label(window, text=&#187;\u041a\u043b\u0438\u043a\u043e\u0432: 0&#8243;, font=(&#171;Arial&#187;, 24))<\/p>\n<p>label.pack(pady=20)<\/p>\n<p>label_timer = tk.Label(window, text=&#187;\u0421\u0435\u043a\u0443\u043d\u0434: 0&#8243;)<\/p>\n<p>label_timer.pack()<\/p>\n<p>btn = tk.Button(window, text=&#187;\u041a\u043b\u0438\u043a\u043d\u0438!&#187;, command=click)<\/p>\n<p>btn.pack(pady=10)<\/p>\n<p>tick()<\/p>\n<p>window.mainloop()<\/p>\n<p>window.after(1000, callback) \u2014 \u043d\u0435\u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0442\u0430\u0439\u043c\u0435\u0440: \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0447\u0435\u0440\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434, \u043d\u0435 \u00ab\u0437\u0430\u043c\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u044f\u00bb \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<\/p>\n<p>Tkinter \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u0435\u043d \u0434\u043b\u044f \u0443\u0447\u0435\u0431\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u0414\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0430 \u2014 PyQt \u0438\u043b\u0438 customtkinter, \u043d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c.<\/p>\n<h2>\u041a\u0443\u0434\u0430 \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/h2>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python \u0438 \u0441\u0440\u0430\u0437\u0443 \u043e\u0441\u0432\u0430\u0438\u0432\u0430\u0442\u044c \u041e\u041e\u041f \u2014 \u043d\u0435 \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435. \u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u043e\u0433\u043e \u0441\u0442\u0438\u043b\u044f \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447: \u043f\u0430\u0440\u0441\u0435\u0440\u044b \u0441\u0430\u0439\u0442\u043e\u0432, Telegram-\u0431\u043e\u0442\u044b, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0430\u0431\u043b\u0438\u0446, \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u043d\u0430 Raspberry Pi \u2014 \u0432\u0441\u0451 \u044d\u0442\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0431\u0435\u0437 \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430.<\/p>\n<p>\u041a \u041e\u041e\u041f \u0441\u0442\u043e\u0438\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c, \u043a\u043e\u0433\u0434\u0430:<\/p>\n<ul>\n<li>\u043f\u0440\u043e\u0435\u043a\u0442 \u0432\u044b\u0440\u043e\u0441 \u0434\u043e 100+ \u0441\u0442\u0440\u043e\u043a \u0441 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445;<\/li>\n<li>\u043d\u0430\u0434 \u043a\u043e\u0434\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u2014 \u043d\u0443\u0436\u043d\u0430 \u0447\u0451\u0442\u043a\u0430\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438;<\/li>\n<li>\u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0438\u043b\u0438 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a.<\/li>\n<\/ul>\n<p>\u041d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c:<\/p>\n<ul>\n<li><strong>\u0412\u0435\u0431<\/strong> \u2014 Flask: \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u0435\u0441\u044c \u0441 HTTP-\u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438, \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u043c\u0438 Jinja2, \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 SQLite.<\/li>\n<li><strong>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f<\/strong> \u2014 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 requests + BeautifulSoup: \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u0441\u0430\u0439\u0442\u043e\u0432; openpyxl: \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 Excel \u0431\u0435\u0437 \u043c\u044b\u0448\u0438.<\/li>\n<li><strong>\u0411\u043e\u0442\u044b<\/strong> \u2014 python-telegram-bot \u0438\u043b\u0438 aiogram: \u0440\u0430\u0431\u043e\u0447\u0438\u0439 Telegram-\u0431\u043e\u0442 \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432.<\/li>\n<li><strong>\u0416\u0435\u043b\u0435\u0437\u043e<\/strong> \u2014 Arduino \u0438 Raspberry Pi: \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u043d\u0430 Python.<\/li>\n<\/ul>\n<h2>\u0427\u0430\u0441\u0442\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b<\/h2>\n<h3>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Python \u2014 \u044d\u0442\u043e \u044f\u0437\u044b\u043a \u0438\u043b\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430?<\/h3>\n<p>Python \u2014 \u0432\u044b\u0441\u043e\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u0449\u0435\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0413\u0432\u0438\u0434\u043e \u0432\u0430\u043d \u0420\u043e\u0441\u0441\u0443\u043c\u043e\u043c. \u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u0434\u0430 \u043d\u0443\u0436\u0435\u043d \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u2014 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0447\u0438\u0442\u0430\u0435\u0442 .py-\u0444\u0430\u0439\u043b \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0435\u0433\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e. \u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 <a style=\"color: #2c6fad; text-decoration: none;\" href=\"https:\/\/python.org\">python.org<\/a>.<\/p>\n<h3>\u0427\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 .py?<\/h3>\n<p>.py \u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u043a\u043e\u0434\u043e\u043c Python. \u0417\u0430\u043f\u0443\u0441\u043a: python filename.py \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435. \u0418\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u0447\u0438\u0442\u0430\u0435\u0442 \u0444\u0430\u0439\u043b \u0441\u0432\u0435\u0440\u0445\u0443 \u0432\u043d\u0438\u0437, \u0431\u0435\u0437 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u2014 \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 C++ \u0438\u043b\u0438 Java.<\/p>\n<h3>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 Python \u0431\u0435\u0437 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438?<\/h3>\n<p>\u0414\u0430 \u2014 \u043e\u043d\u043b\u0430\u0439\u043d-\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u044b (replit.com, programiz.com) \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442 Python \u043f\u0440\u044f\u043c\u043e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435. \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f: \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u0447\u0430\u0441\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430. \u0414\u043b\u044f \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0441 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043e\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0443\u0436\u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430.<\/p>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 input() \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443, \u0430 \u043d\u0435 \u0447\u0438\u0441\u043b\u043e?<\/h3>\n<p>input() \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 str \u2014 \u044d\u0442\u043e \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u044f\u0437\u044b\u043a\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0432\u0451\u043b \u00ab25\u00bb, \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 &#171;25&#187;. \u0414\u043b\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0438 \u2014 \u044f\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435: age = int(input(&#171;\u0412\u043e\u0437\u0440\u0430\u0441\u0442: &#171;)). \u041f\u0440\u0438 \u043d\u0435\u0447\u0438\u0441\u043b\u043e\u0432\u043e\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0435\u0442 ValueError \u2014 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0439\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 try\/except ValueError:.<\/p>\n<h3>\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u043d\u044b f-\u0441\u0442\u0440\u043e\u043a\u0438, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u00ab+\u00bb?<\/h3>\n<p>F-\u0441\u0442\u0440\u043e\u043a\u0438 \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0435\u0435: f&#187;\u041f\u0440\u0438\u0432\u0435\u0442, {name}!&#187; \u043f\u0440\u043e\u0442\u0438\u0432 &#171;\u041f\u0440\u0438\u0432\u0435\u0442, &#187; + name + &#171;!&#187;. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a: f&#187;{2 + 2}&#187; \u2192 &#171;4&#187;, \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b: f&#187;{price:.2f}&#187;. \u041a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 + \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u044f\u0432\u043d\u043e\u0433\u043e str() \u043f\u0440\u0438 \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u0438 \u0442\u0438\u043f\u043e\u0432 \u2014 \u0442\u0438\u043f\u0438\u0447\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432.<\/p>\n<h3>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 PEP 8 \u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0438 \u0435\u0433\u043e \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u0442\u044c?<\/h3>\n<p>PEP 8 \u2014 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 Python, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u0413\u0432\u0438\u0434\u043e \u0432\u0430\u043d \u0420\u043e\u0441\u0441\u0443\u043c\u043e\u043c. \u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430: 4 \u043f\u0440\u043e\u0431\u0435\u043b\u0430 \u0434\u043b\u044f \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u0432, \u0438\u043c\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432 snake_case. \u0424\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d, \u043d\u043e IDE \u0438 \u043b\u0438\u043d\u0442\u0435\u0440\u044b (flake8, pylint) \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u2014 \u0438 \u043a\u043e\u0434 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0447\u0438\u0442\u0430\u0435\u043c\u0435\u0435 \u0434\u043b\u044f \u0432\u0441\u0435\u0445.<\/p>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0438\u0441\u0430\u0442\u044c except: \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u0430 \u043e\u0448\u0438\u0431\u043a\u0438?<\/h3>\n<p>bare except \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0451 \u2014 \u0432\u043a\u043b\u044e\u0447\u0430\u044f KeyboardInterrupt (Ctrl+C) \u0438 SystemExit. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u00ab\u043d\u0435\u0443\u0431\u0438\u0432\u0430\u0435\u043c\u043e\u0439\u00bb, \u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0431\u0430\u0433\u0438 \u0441\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u041f\u0440\u0430\u0432\u0438\u043b\u043e: \u0432\u0441\u0435\u0433\u0434\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0439\u0442\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0442\u0438\u043f \u2014 except ValueError: \u0438\u043b\u0438 except (KeyError, IndexError):.<\/p>\n<h3>\u041a\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u0441 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u043e\u0433\u043e \u0441\u0442\u0438\u043b\u044f \u043d\u0430 \u041e\u041e\u041f?<\/h3>\n<p>\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u043e\u0433\u043e \u0441\u0442\u0438\u043b\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f 80% \u0437\u0430\u0434\u0430\u0447: \u043f\u0430\u0440\u0441\u0435\u0440\u044b, \u0431\u043e\u0442\u044b, \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u041e\u041e\u041f \u0441\u0442\u043e\u0438\u0442, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432\u044b\u0440\u043e\u0441 \u0434\u043e 100+ \u0441\u0442\u0440\u043e\u043a \u0441 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u0432\u0435\u0434\u0451\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0430\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430.<\/p>\n<h3>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f if __name__ == &#171;__main__&#187;:?<\/h3>\n<p>\u041f\u0440\u0438 \u043f\u0440\u044f\u043c\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 python game.py \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f __name__ \u0440\u0430\u0432\u043d\u0430 &#171;__main__&#187; \u2014 \u043a\u043e\u0434 \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f. \u041f\u0440\u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0435 import game \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0430\u0439\u043b \u2014 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u041f\u0430\u0442\u0442\u0435\u0440\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043a\u0430\u043a \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u043a\u0430\u043a \u043c\u043e\u0434\u0443\u043b\u044c.<\/p>\n<h3>\u041a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Python-\u0441\u043a\u0440\u0438\u043f\u0442 \u0432 Windows, \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430?<\/h3>\n<p>\u0422\u0440\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430: (1) \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u2014 cd \u043f\u0430\u043f\u043a\u0430_\u0441_\u0444\u0430\u0439\u043b\u043e\u043c \u2192 python script.py; (2) \u0438\u0437 IDE \u2014 \u043a\u043d\u043e\u043f\u043a\u0430 Run \u0438\u043b\u0438 Shift+F10 \u0432 PyCharm; (3) \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u043a\u043b\u0438\u043a \u043d\u0430 .py-\u0444\u0430\u0439\u043b, \u0435\u0441\u043b\u0438 Python \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0441 \u0433\u0430\u043b\u043e\u0447\u043a\u043e\u0439 \u00abAdd Python to PATH\u00bb. \u0415\u0441\u043b\u0438 python \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u2014 \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 Python \u0441 \u044d\u0442\u043e\u0439 \u0433\u0430\u043b\u043e\u0447\u043a\u043e\u0439.<\/p>\n<p><script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntityOfPage\": {\n    \"@type\": \"WebPage\",\n    \"@id\": \"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/\"\n  },\n  \"mainEntity\": [\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Python \u2014 \u044d\u0442\u043e \u044f\u0437\u044b\u043a \u0438\u043b\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Python \u2014 \u0432\u044b\u0441\u043e\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u0449\u0435\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0413\u0432\u0438\u0434\u043e \u0432\u0430\u043d \u0420\u043e\u0441\u0441\u0443\u043c\u043e\u043c. \u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u0434\u0430 \u043d\u0443\u0436\u0435\u043d \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u2014 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0447\u0438\u0442\u0430\u0435\u0442 .py-\u0444\u0430\u0439\u043b \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0435\u0433\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e. \u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 python.org.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u0427\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 .py?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \".py \u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u043a\u043e\u0434\u043e\u043c Python. \u0417\u0430\u043f\u0443\u0441\u043a: python filename.py \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435. \u0418\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u0447\u0438\u0442\u0430\u0435\u0442 \u0444\u0430\u0439\u043b \u0441\u0432\u0435\u0440\u0445\u0443 \u0432\u043d\u0438\u0437, \u0431\u0435\u0437 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u2014 \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 C++ \u0438\u043b\u0438 Java.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 Python \u0431\u0435\u0437 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u0414\u0430 \u2014 \u043e\u043d\u043b\u0430\u0439\u043d-\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u044b (replit.com, programiz.com) \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442 Python \u043f\u0440\u044f\u043c\u043e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435. \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f: \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u0447\u0430\u0441\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430. \u0414\u043b\u044f \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0441 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043e\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0443\u0436\u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u041f\u043e\u0447\u0435\u043c\u0443 input() \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443, \u0430 \u043d\u0435 \u0447\u0438\u0441\u043b\u043e?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"input() \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 str \u2014 \u044d\u0442\u043e \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u044f\u0437\u044b\u043a\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0432\u0451\u043b \u00ab25\u00bb, \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u00ab25\u00ab. \u0414\u043b\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0438 \u2014 \u044f\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435: age = int(input(\u00ab\u0412\u043e\u0437\u0440\u0430\u0441\u0442: \u00ab)). \u041f\u0440\u0438 \u043d\u0435\u0447\u0438\u0441\u043b\u043e\u0432\u043e\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0435\u0442 ValueError \u2014 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0439\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 try\/except ValueError:.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u043d\u044b f-\u0441\u0442\u0440\u043e\u043a\u0438, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u00ab+\u00bb?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"F-\u0441\u0442\u0440\u043e\u043a\u0438 \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0435\u0435: f\u00ab\u041f\u0440\u0438\u0432\u0435\u0442, {name}!\u00ab \u043f\u0440\u043e\u0442\u0438\u0432 \u00ab\u041f\u0440\u0438\u0432\u0435\u0442, \u00ab + name + \u00ab!\u00ab. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a: f\u00ab{2 + 2}\u00ab \u2192 \u00ab4\u00ab, \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b: f\u00ab{price:.2f}\u00ab. \u041a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 + \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u044f\u0432\u043d\u043e\u0433\u043e str() \u043f\u0440\u0438 \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u043d\u0438\u0438 \u0442\u0438\u043f\u043e\u0432 \u2014 \u0442\u0438\u043f\u0438\u0447\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 PEP 8 \u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0438 \u0435\u0433\u043e \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u0442\u044c?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"PEP 8 \u2014 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 Python, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u0413\u0432\u0438\u0434\u043e \u0432\u0430\u043d \u0420\u043e\u0441\u0441\u0443\u043c\u043e\u043c. \u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430: 4 \u043f\u0440\u043e\u0431\u0435\u043b\u0430 \u0434\u043b\u044f \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u0432, \u0438\u043c\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432 snake_case. \u0424\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d, \u043d\u043e IDE \u0438 \u043b\u0438\u043d\u0442\u0435\u0440\u044b (flake8, pylint) \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u2014 \u0438 \u043a\u043e\u0434 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0447\u0438\u0442\u0430\u0435\u043c\u0435\u0435 \u0434\u043b\u044f \u0432\u0441\u0435\u0445.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0438\u0441\u0430\u0442\u044c except: \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u0430 \u043e\u0448\u0438\u0431\u043a\u0438?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"bare except \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0451 \u2014 \u0432\u043a\u043b\u044e\u0447\u0430\u044f KeyboardInterrupt (Ctrl+C) \u0438 SystemExit. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u00ab\u043d\u0435\u0443\u0431\u0438\u0432\u0430\u0435\u043c\u043e\u0439\u00bb, \u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0431\u0430\u0433\u0438 \u0441\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u041f\u0440\u0430\u0432\u0438\u043b\u043e: \u0432\u0441\u0435\u0433\u0434\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0439\u0442\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0442\u0438\u043f \u2014 except ValueError: \u0438\u043b\u0438 except (KeyError, IndexError):.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u041a\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u0441 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u043e\u0433\u043e \u0441\u0442\u0438\u043b\u044f \u043d\u0430 \u041e\u041e\u041f?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u043e\u0433\u043e \u0441\u0442\u0438\u043b\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f 80% \u0437\u0430\u0434\u0430\u0447: \u043f\u0430\u0440\u0441\u0435\u0440\u044b, \u0431\u043e\u0442\u044b, \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u041e\u041e\u041f \u0441\u0442\u043e\u0438\u0442, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432\u044b\u0440\u043e\u0441 \u0434\u043e 100+ \u0441\u0442\u0440\u043e\u043a \u0441 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u0432\u0435\u0434\u0451\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0430\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f if name == \u00abmain\u00ab:?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u041f\u0440\u0438 \u043f\u0440\u044f\u043c\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 python game.py \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f name \u0440\u0430\u0432\u043d\u0430 \u00abmain\u00ab \u2014 \u043a\u043e\u0434 \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f. \u041f\u0440\u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0435 import game \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0430\u0439\u043b \u2014 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u041f\u0430\u0442\u0442\u0435\u0440\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043a\u0430\u043a \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u043a\u0430\u043a \u043c\u043e\u0434\u0443\u043b\u044c.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"\u041a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Python-\u0441\u043a\u0440\u0438\u043f\u0442 \u0432 Windows, \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u0422\u0440\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430: (1) \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u2014 cd \u043f\u0430\u043f\u043a\u0430_\u0441_\u0444\u0430\u0439\u043b\u043e\u043c \u2192 python script.py; (2) \u0438\u0437 IDE \u2014 \u043a\u043d\u043e\u043f\u043a\u0430 Run \u0438\u043b\u0438 Shift+F10 \u0432 PyCharm; (3) \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u043a\u043b\u0438\u043a \u043d\u0430 .py-\u0444\u0430\u0439\u043b, \u0435\u0441\u043b\u0438 Python \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0441 \u0433\u0430\u043b\u043e\u0447\u043a\u043e\u0439 \u00abAdd Python to PATH\u00bb. \u0415\u0441\u043b\u0438 python \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u2014 \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 Python \u0441 \u044d\u0442\u043e\u0439 \u0433\u0430\u043b\u043e\u0447\u043a\u043e\u0439.\"\n      }\n    }\n  ]\n}\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"singleBlog__desc\">Python \u2014 \u0432\u044b\u0441\u043e\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0413\u0432\u0438\u0434\u043e \u0432\u0430\u043d \u0420\u043e\u0441\u0441\u0443\u043c\u043e\u043c. \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0437\u0434\u0435\u0441\u044c \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442, \u0430 \u043f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 Python \u0443\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443: print(&#171;Hello, World!&#187;). \u0421 \u043d\u0435\u0451 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0438 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u2014 \u0438 \u0432\u044b \u043d\u0430\u0447\u043d\u0451\u0442\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f.<\/p>\n","protected":false},"author":1,"featured_media":2501,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"cta-position":"main","cta-status":false,"cta-priority":50,"cta-tags":"","id-post-1":0,"id-post-2":0,"id-post-3":0,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-2502","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Python, \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441, 2 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 GUI \u043d\u0430 Tkinter. \u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u2014 \u043e\u0442 print() \u0434\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0438\u0433\u0440\u044b.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"admintgu\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"ru_RU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u041f\u0440\u043e\u0435\u043a\u0442 \u041a\u043e\u0434 \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e -\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 Python: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Python, \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441, 2 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 GUI \u043d\u0430 Tkinter. \u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u2014 \u043e\u0442 print() \u0434\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0438\u0433\u0440\u044b.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-07-09T09:53:07+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-07-13T16:40:21+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"\u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 Python: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Python, \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441, 2 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 GUI \u043d\u0430 Tkinter. \u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u2014 \u043e\u0442 print() \u0434\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0438\u0433\u0440\u044b.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/pervaya-programma-na-python\\\/#blogposting\",\"name\":\"\\u041f\\u0435\\u0440\\u0432\\u0430\\u044f \\u043f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u0430 \\u043d\\u0430 Python: \\u043f\\u043e\\u0448\\u0430\\u0433\\u043e\\u0432\\u044b\\u0439 \\u0433\\u0430\\u0439\\u0434 \\u0434\\u043b\\u044f \\u043d\\u043e\\u0432\\u0438\\u0447\\u043a\\u043e\\u0432\",\"headline\":\"\\u041a\\u0430\\u043a \\u043d\\u0430\\u043f\\u0438\\u0441\\u0430\\u0442\\u044c \\u043f\\u0435\\u0440\\u0432\\u0443\\u044e \\u043f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u0443 \\u043d\\u0430 Python: \\u043e\\u0442 Hello World \\u0434\\u043e \\u0438\\u0433\\u0440\\u044b \\u2014 \\u043f\\u043e\\u0448\\u0430\\u0433\\u043e\\u0432\\u044b\\u0439 \\u0433\\u0430\\u0439\\u0434\",\"author\":{\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/author\\\/admintgu\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/school.edu-sigma.ru\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/pervaya-programma-python-nachinayuschiy.jpg\",\"width\":1376,\"height\":768,\"caption\":\"\\u041d\\u0430\\u0447\\u0438\\u043d\\u0430\\u044e\\u0449\\u0438\\u0439 \\u043f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u0438\\u0441\\u0442 \\u043f\\u0438\\u0448\\u0435\\u0442 \\u043f\\u0435\\u0440\\u0432\\u0443\\u044e \\u043f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u0443 \\u043d\\u0430 Python \\u0437\\u0430 \\u043d\\u043e\\u0443\\u0442\\u0431\\u0443\\u043a\\u043e\\u043c\"},\"datePublished\":\"2026-07-09T12:53:07+03:00\",\"dateModified\":\"2026-07-13T19:40:21+03:00\",\"inLanguage\":\"ru-RU\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/pervaya-programma-na-python\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/pervaya-programma-na-python\\\/#webpage\"},\"articleSection\":\"Python\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/pervaya-programma-na-python\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/category\\\/python\\\/#listItem\",\"name\":\"Python\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/category\\\/python\\\/#listItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/category\\\/python\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/pervaya-programma-na-python\\\/#listItem\",\"name\":\"\\u041a\\u0430\\u043a \\u043d\\u0430\\u043f\\u0438\\u0441\\u0430\\u0442\\u044c \\u043f\\u0435\\u0440\\u0432\\u0443\\u044e \\u043f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u0443 \\u043d\\u0430 Python: \\u043e\\u0442 Hello World \\u0434\\u043e \\u0438\\u0433\\u0440\\u044b \\u2014 \\u043f\\u043e\\u0448\\u0430\\u0433\\u043e\\u0432\\u044b\\u0439 \\u0433\\u0430\\u0439\\u0434\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/pervaya-programma-na-python\\\/#listItem\",\"position\":3,\"name\":\"\\u041a\\u0430\\u043a \\u043d\\u0430\\u043f\\u0438\\u0441\\u0430\\u0442\\u044c \\u043f\\u0435\\u0440\\u0432\\u0443\\u044e \\u043f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u0443 \\u043d\\u0430 Python: \\u043e\\u0442 Hello World \\u0434\\u043e \\u0438\\u0433\\u0440\\u044b \\u2014 \\u043f\\u043e\\u0448\\u0430\\u0433\\u043e\\u0432\\u044b\\u0439 \\u0433\\u0430\\u0439\\u0434\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/category\\\/python\\\/#listItem\",\"name\":\"Python\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/#organization\",\"name\":\"\\u041f\\u0440\\u043e\\u0435\\u043a\\u0442 \\u041a\\u043e\\u0434 \\u0431\\u0443\\u0434\\u0443\\u0449\\u0435\\u0433\\u043e\",\"url\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/author\\\/admintgu\\\/#author\",\"url\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/author\\\/admintgu\\\/\",\"name\":\"admintgu\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/pervaya-programma-na-python\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4af8eb1436e15a42550f5f114850884ef54c4368cd86e96a01976abc221195fe?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"admintgu\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/pervaya-programma-na-python\\\/#webpage\",\"url\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/pervaya-programma-na-python\\\/\",\"name\":\"\\u041f\\u0435\\u0440\\u0432\\u0430\\u044f \\u043f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u0430 \\u043d\\u0430 Python: \\u043f\\u043e\\u0448\\u0430\\u0433\\u043e\\u0432\\u044b\\u0439 \\u0433\\u0430\\u0439\\u0434 \\u0434\\u043b\\u044f \\u043d\\u043e\\u0432\\u0438\\u0447\\u043a\\u043e\\u0432\",\"description\":\"\\u041f\\u043e\\u0448\\u0430\\u0433\\u043e\\u0432\\u044b\\u0439 \\u0433\\u0430\\u0439\\u0434: \\u0443\\u0441\\u0442\\u0430\\u043d\\u043e\\u0432\\u043a\\u0430 Python, \\u0441\\u0438\\u043d\\u0442\\u0430\\u043a\\u0441\\u0438\\u0441, 2 \\u043f\\u0440\\u043e\\u0435\\u043a\\u0442\\u0430 \\u0438 GUI \\u043d\\u0430 Tkinter. \\u041d\\u0430\\u043f\\u0438\\u0448\\u0438\\u0442\\u0435 \\u043f\\u0435\\u0440\\u0432\\u0443\\u044e \\u043f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u0443 \\u043d\\u0430 Python \\u0441\\u0435\\u0433\\u043e\\u0434\\u043d\\u044f \\u2014 \\u043e\\u0442 print() \\u0434\\u043e \\u0440\\u0430\\u0431\\u043e\\u0447\\u0435\\u0439 \\u0438\\u0433\\u0440\\u044b.\",\"inLanguage\":\"ru-RU\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/pervaya-programma-na-python\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/author\\\/admintgu\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/author\\\/admintgu\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/school.edu-sigma.ru\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/pervaya-programma-python-nachinayuschiy.jpg\",\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/pervaya-programma-na-python\\\/#mainImage\",\"width\":1376,\"height\":768,\"caption\":\"\\u041d\\u0430\\u0447\\u0438\\u043d\\u0430\\u044e\\u0449\\u0438\\u0439 \\u043f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u0438\\u0441\\u0442 \\u043f\\u0438\\u0448\\u0435\\u0442 \\u043f\\u0435\\u0440\\u0432\\u0443\\u044e \\u043f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u0443 \\u043d\\u0430 Python \\u0437\\u0430 \\u043d\\u043e\\u0443\\u0442\\u0431\\u0443\\u043a\\u043e\\u043c\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/pervaya-programma-na-python\\\/#mainImage\"},\"datePublished\":\"2026-07-09T12:53:07+03:00\",\"dateModified\":\"2026-07-13T19:40:21+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/\",\"name\":\"\\u041f\\u0440\\u043e\\u0435\\u043a\\u0442 \\u041a\\u043e\\u0434 \\u0431\\u0443\\u0434\\u0443\\u0449\\u0435\\u0433\\u043e\",\"inLanguage\":\"ru-RU\",\"publisher\":{\"@id\":\"https:\\\/\\\/school.edu-sigma.ru\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 Python: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432","description":"\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Python, \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441, 2 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 GUI \u043d\u0430 Tkinter. \u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u2014 \u043e\u0442 print() \u0434\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0438\u0433\u0440\u044b.","canonical_url":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/#blogposting","name":"\u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 Python: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432","headline":"\u041a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python: \u043e\u0442 Hello World \u0434\u043e \u0438\u0433\u0440\u044b \u2014 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434","author":{"@id":"https:\/\/school.edu-sigma.ru\/blog\/author\/admintgu\/#author"},"publisher":{"@id":"https:\/\/school.edu-sigma.ru\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/07\/pervaya-programma-python-nachinayuschiy.jpg","width":1376,"height":768,"caption":"\u041d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u043f\u0438\u0448\u0435\u0442 \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python \u0437\u0430 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u043e\u043c"},"datePublished":"2026-07-09T12:53:07+03:00","dateModified":"2026-07-13T19:40:21+03:00","inLanguage":"ru-RU","mainEntityOfPage":{"@id":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/#webpage"},"isPartOf":{"@id":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/#webpage"},"articleSection":"Python"},{"@type":"BreadcrumbList","@id":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/school.edu-sigma.ru\/blog#listItem","position":1,"name":"Home","item":"https:\/\/school.edu-sigma.ru\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/school.edu-sigma.ru\/blog\/category\/python\/#listItem","name":"Python"}},{"@type":"ListItem","@id":"https:\/\/school.edu-sigma.ru\/blog\/category\/python\/#listItem","position":2,"name":"Python","item":"https:\/\/school.edu-sigma.ru\/blog\/category\/python\/","nextItem":{"@type":"ListItem","@id":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/#listItem","name":"\u041a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python: \u043e\u0442 Hello World \u0434\u043e \u0438\u0433\u0440\u044b \u2014 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434"},"previousItem":{"@type":"ListItem","@id":"https:\/\/school.edu-sigma.ru\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/#listItem","position":3,"name":"\u041a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python: \u043e\u0442 Hello World \u0434\u043e \u0438\u0433\u0440\u044b \u2014 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434","previousItem":{"@type":"ListItem","@id":"https:\/\/school.edu-sigma.ru\/blog\/category\/python\/#listItem","name":"Python"}}]},{"@type":"Organization","@id":"https:\/\/school.edu-sigma.ru\/blog\/#organization","name":"\u041f\u0440\u043e\u0435\u043a\u0442 \u041a\u043e\u0434 \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e","url":"https:\/\/school.edu-sigma.ru\/blog\/"},{"@type":"Person","@id":"https:\/\/school.edu-sigma.ru\/blog\/author\/admintgu\/#author","url":"https:\/\/school.edu-sigma.ru\/blog\/author\/admintgu\/","name":"admintgu","image":{"@type":"ImageObject","@id":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/4af8eb1436e15a42550f5f114850884ef54c4368cd86e96a01976abc221195fe?s=96&d=mm&r=g","width":96,"height":96,"caption":"admintgu"}},{"@type":"WebPage","@id":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/#webpage","url":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/","name":"\u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 Python: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432","description":"\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Python, \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441, 2 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 GUI \u043d\u0430 Tkinter. \u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u2014 \u043e\u0442 print() \u0434\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0438\u0433\u0440\u044b.","inLanguage":"ru-RU","isPartOf":{"@id":"https:\/\/school.edu-sigma.ru\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/#breadcrumblist"},"author":{"@id":"https:\/\/school.edu-sigma.ru\/blog\/author\/admintgu\/#author"},"creator":{"@id":"https:\/\/school.edu-sigma.ru\/blog\/author\/admintgu\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/school.edu-sigma.ru\/wp-content\/uploads\/2026\/07\/pervaya-programma-python-nachinayuschiy.jpg","@id":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/#mainImage","width":1376,"height":768,"caption":"\u041d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u043f\u0438\u0448\u0435\u0442 \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python \u0437\u0430 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u043e\u043c"},"primaryImageOfPage":{"@id":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/#mainImage"},"datePublished":"2026-07-09T12:53:07+03:00","dateModified":"2026-07-13T19:40:21+03:00"},{"@type":"WebSite","@id":"https:\/\/school.edu-sigma.ru\/blog\/#website","url":"https:\/\/school.edu-sigma.ru\/blog\/","name":"\u041f\u0440\u043e\u0435\u043a\u0442 \u041a\u043e\u0434 \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e","inLanguage":"ru-RU","publisher":{"@id":"https:\/\/school.edu-sigma.ru\/blog\/#organization"}}]},"og:locale":"ru_RU","og:site_name":"\u041f\u0440\u043e\u0435\u043a\u0442 \u041a\u043e\u0434 \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e -","og:type":"article","og:title":"\u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 Python: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432","og:description":"\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Python, \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441, 2 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 GUI \u043d\u0430 Tkinter. \u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u2014 \u043e\u0442 print() \u0434\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0438\u0433\u0440\u044b.","og:url":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/","article:published_time":"2026-07-09T09:53:07+00:00","article:modified_time":"2026-07-13T16:40:21+00:00","twitter:card":"summary_large_image","twitter:title":"\u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 Python: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432","twitter:description":"\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Python, \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441, 2 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 GUI \u043d\u0430 Tkinter. \u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u2014 \u043e\u0442 print() \u0434\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0438\u0433\u0440\u044b."},"aioseo_meta_data":{"post_id":"2502","title":"\u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 Python: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434 \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432","description":"\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Python, \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441, 2 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 GUI \u043d\u0430 Tkinter. \u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u2014 \u043e\u0442 print() \u0434\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0438\u0433\u0440\u044b.","keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2026-07-09 07:17:32","updated":"2026-07-17 15:11:34","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/school.edu-sigma.ru\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/school.edu-sigma.ru\/blog\/category\/python\/\" title=\"Python\">Python<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\u041a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python: \u043e\u0442 Hello World \u0434\u043e \u0438\u0433\u0440\u044b \u2014 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/school.edu-sigma.ru\/blog"},{"label":"Python","link":"https:\/\/school.edu-sigma.ru\/blog\/category\/python\/"},{"label":"\u041a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 Python: \u043e\u0442 Hello World \u0434\u043e \u0438\u0433\u0440\u044b \u2014 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0433\u0430\u0439\u0434","link":"https:\/\/school.edu-sigma.ru\/blog\/pervaya-programma-na-python\/"}],"_links":{"self":[{"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/posts\/2502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/comments?post=2502"}],"version-history":[{"count":1,"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/posts\/2502\/revisions"}],"predecessor-version":[{"id":2513,"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/posts\/2502\/revisions\/2513"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/media\/2501"}],"wp:attachment":[{"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/media?parent=2502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/categories?post=2502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/school.edu-sigma.ru\/blog\/wp-json\/wp\/v2\/tags?post=2502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}