{"id":476475,"date":"2026-04-18T15:45:57","date_gmt":"2026-04-18T15:45:57","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=476475"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=476475","title":{"rendered":"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u0438 \u0444\u043e\u0440\u043c\u0443\u043b, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0440\u0430\u0441\u0447\u0435\u0442 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0437\u0433\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u043d\u0430 Python"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0437\u0431\u0435\u0440\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u201cEINSTATION PLUS\u201d, \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0441\u0447\u0435\u0442\u043e\u0432 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0432\u0435\u043b\u0438\u0447\u0438\u043d \u0438 \u0444\u043e\u0440\u043c\u0443\u043b. \u042f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b \u043f\u043e\u0440\u043e\u0439 \u043e\u0431\u044b\u0447\u043d\u044b\u0435, \u043d\u043e \u0441\u0430\u043c\u044b\u0435 \u0441\u043a\u0443\u0447\u043d\u044b\u0435 \u0440\u0430\u0441\u0447\u0435\u0442\u044b. \u0427\u0442\u043e\u0431\u044b \u043f\u043e 10 \u0447\u0430\u0441\u043e\u0432 \u043d\u0435 \u0433\u043e\u0440\u0431\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0434 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u043c, \u0435\u0441\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0444\u043e\u0440\u043c\u0443\u043b\u044b, \u0438\u043b\u0438 \u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b. \u0422\u0430\u043a \u0436\u0435 \u043e\u043f\u0438\u0448\u0443 \u0441\u0432\u043e\u044e \u0444\u043e\u0440\u043c\u0443\u043b\u0443 Ebr(energy brain result) \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0444\u043e\u0440\u043c\u0443\u043b\u044b F. \u0421\u0438\u043b\u0430. \u0412 \u044d\u0442\u043e\u043c \u043a\u0443\u0441\u043a\u0435 \u043a\u043e\u0434\u0430 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 try &amp; except \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043e\u043a \u043e\u0448\u0438\u0431\u043e\u043a, \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u043d\u0435 \u0437\u0430\u043a\u0440\u044b\u043b\u0430\u0441\u044c \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0436\u0435 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0443\u043c\u0435\u0441\u0442\u0438\u043b \u0432\u0441\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u0434 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043b \u0438\u0437 if elif else.<\/p>\n<h2>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0441\u0438\u043b\u044b<\/h2>\n<pre><code class=\"python\">def sila():    try:        m = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043c\u0430\u0441\u0441\u0443 \u043e\u0431\u044c\u0435\u043a\u0442\u0430(\u043a\u0433): \"))            a = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0430\u043a\u0441\u0435\u043b\u0435\u0440\u0430\u0446\u0438\u044e(\u043c\\\u04412): \"))            f = m * a        print(f\"\u0421\u0438\u043b\u0430: {f} \u041d\u044c\u044e\u0442\u043e\u043d\u043e\u0432.\")    except ValueError:        os.system(\"color 4\") # \u0421\u043c\u0435\u043d\u0430 \u0446\u0432\u0435\u0442\u0430 \u043d\u0430 \u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0435        print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439 \u0432\u0432\u043e\u0434!\")        time.sleep(1)# \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0443\u0441\u043f\u0435\u043b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u0432\u043e\u044e \u043e\u0448\u0438\u0431\u043a\u0443        os.system(\"color 2\") # \u0412\u043e\u0437\u0432\u0440\u0430\u0442 \u043a \u0437\u0435\u043b\u0435\u043d\u043e\u043c\u0443<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a \u0436\u0435 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440 \u0432\u0435\u043b\u0438\u0447\u0438\u043d, \u0442.\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0432 \u043c\u0438\u043d\u0443\u0442\u044b, \u043c\u0438\u043d\u0443\u0442\u044b \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043a\u043c\\\u0447 \u0432 \u043c\u0441\\\u0441 \u0438 \u0442.\u0434. \u0418 \u0442\u0430\u043a \u0436\u0435 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043e\u0448\u0438\u0431\u043e\u043a, \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043d\u0443\u043b\u044f \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0441\u043b\u043e\u043c\u0430\u043b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432\u0432\u0435\u0434\u044f \u043d\u0443\u043b\u044c.<\/p>\n<h2>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440\u0430 \u0432\u0435\u043b\u0438\u0447\u0438\u043d<\/h2>\n<pre><code class=\"python\">def convect():    try:        com = input(\"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438(\u043a\u043c\/\u0447 \u0432 \u043c\/c, \u043c\/\u0441 \u0432 \u043a\u043c\/\u0447, \u043a\u0433 \u0432 \u0433, \u043a\u043c \u0432 \u043c, \u043b\u043e\u0448 \u0432 \u0432\u0442, \u043c \u0432 \u0441, \u0441 \u0432 \u043c, \u0447\u0430\u0441 \u0432 \u0441, \u0447\u0430\u0441 \u0432 \u043c): \")        if com == '\u043a\u043c\u0447 \u0432 \u043c\u0441':            qw = float(input(\"\u0447\u0438\u0441\u043b\u043e(\u043a\u043c\/\u0447): \"))            resu = qw \/ 3.6            print(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resu:.3f} \u043c\/c\")            comm = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if comm == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041cC.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resu:.3f} \u043c\/c\\n\")                print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!\")        elif com == '\u043c\u0441 \u0432 \u043a\u043c\u0447':            gh = float(input(\"\u0427\u0438\u0441\u043b\u043e(\u043c\/\u0441): \"))            resuv = gh * 3.6            print(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resuv} \u043a\u043c\/\u0447\")            cvx = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b?(Y\/N): \").upper()            if cvx == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041c\u0421 \u0412 \u041a\u041c\u0427.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resuv} \u043a\u043c\/\u0447\\n\")                print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!\")            elif com == '\u043a\u043c \u0432 \u043c':            er = float(input(\"\u0427\u0438\u0441\u043b\u043e(\u043a\u043c): \"))            resut = er * 1000            print(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resut} \u043c.\")            chois = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if chois == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041c.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resut} \u043c.\\n\")                print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!\")        elif com == '\u043c \u0432 \u043a\u043c':            eri = float(input(\"\u0427\u0438\u0441\u043b\u043e(\u043c): \"))            resuti = eri \/ 1000            print(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resuti} \u043a\u043c.\")            choisi = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if choisi == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041a\u041c.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resuti} \u043a\u043c.\\n\")                print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!\")                elif com == '\u043c \u0432 \u0441':            m = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043c\u0438\u043d\u0443\u0442\u044b: \"))            rv = m * 60            print(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {rv} \u0441\")            cvb = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b?(Y\/N): \").upper()            if cvb == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041c \u0412 \u0421.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {rv} \u0441\")                print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!\")            else:            os.system(\"color 4\")            print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0430\")            time.sleep(1)            os.system(\"color 2\")    except ValueError:        print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u0412\u0432\u043e\u0434\u0438\u0442\u0435 \u0446\u0438\u0444\u0440\u044b \u0430 \u043d\u0435 \u0431\u0443\u043a\u0432\u044b\")    except ZeroDivisionError:        print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0443\u043b\u0435\u0432\u044b\u043c!\")    except Exception as e:        print(f\"\u041e\u0448\u0438\u0431\u043a\u0430: {e}\")<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0418 \u0442\u0430\u043a, \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u043e\u043b\u0438. \u0415\u0441\u043b\u0438 \u0431\u044b \u044f \u0432\u0441\u0442\u0430\u0432\u0438\u043b \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0432\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u0442\u043e \u0442\u0435\u043a\u0441\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u044b \u043d\u0435 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043b\u0441\u044f. \u041d\u043e \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439? \u041e\u0447\u0435\u043d\u044c \u0434\u0430\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0443, \u0438 \u0441\u0440\u0430\u0437\u0443 \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u043a\u0430\u043a\u0443\u044e \u0438\u043c\u0435\u043d\u043d\u043e, \u0442\u043e \u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u201chelp\u201d. \u041a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u0432 \u0444\u0430\u0439\u043b txt. \u041d\u043e \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u044f \u0435\u0435 \u043d\u0435 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043b, \u0438 \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<h2>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c \u0444\u0430\u0439\u043b\u0435<\/h2>\n<pre><code class=\"python\">elif command == 'help':        with open(\"\u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u0424\u0438\u0437\u0438\u043a\u0430.txt\", \"a\", encoding=\"utf-8\") as file:            file.write(\"a - \u0440\u0430\u0431\u043e\u0442\u0430, ek - \u043a\u0438\u043d\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u044d\u043d\u0435\u0440\u0433\u0438\u044f, n - \u041a\u041f\u0414, l - \u0442\u0430\u0431\u043b\u0438\u0446\u0430 L, q - \u0442\u0435\u043f\u043b\u043e\u0442\u0430, m - \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u044c, f - \u0441\u0438\u043b\u0430, \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440, \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0446\u0438\u044f, c\u043a\u043e\u0440\u043e\u0441\u0442\u044c - \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438.\\n\")        print(\"\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0430 \u0432 \u0444\u0430\u0439\u043b.\")<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u0443 \u0438 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u043b\u0435\u0437 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440(\u044f \u0431\u0435\u0437 \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u043e\u043d \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u0442), \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0444\u0443\u043d\u043a\u0446\u0438\u044e calc. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0447\u0442\u043e \u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0447\u0438\u0441\u0435\u043b, \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0432 float(\u043d\u0443 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u043b\u044e\u0431\u043e\u0439, \u0447\u0435\u0433\u043e \u044d\u0442\u043e \u044f)<\/p>\n<h2>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u201ccalc\u201d<\/h2>\n<pre><code class=\"python\">def calc():    try:        char1 = float(input(\": \"))                sim = input(\": \")                char2 = float(input(\": \"))        if sim == '+':            res = char1 + char2                        print(f\"{char1:.3f} + {char2:.3f} = {res:.3f}\")            var4 = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if var4 == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041f\u0420\u0418\u0411\u0410\u0412\u041b\u0415\u041d\u0418\u042f.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"{char1:.3f} + {char2:.3f} = {res:.3f}\\n\")        elif sim == '*':            res2 = char1 * char2                      print(f\"{char1:.3f} * {char2:.3f} = {res2:.3f}\")            var3 = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if var3 == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u0423\u041c\u041d\u041e\u0416\u0415\u041d\u0418\u042f.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"{char1:.3f} * {char2:.3f} = {res2:.3f}\\n\")        elif sim == '\/':            res3 = char1 \/ char2                        print(f\"{char1:.3f} \/ {char2:.3f} = {res3:.3f}\")            var2 = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if var2 == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u0414\u0415\u041b\u0415\u041d\u0418\u042f.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"{char1:.3f} \/ {char2:.3f} = {res3:.3f}\\n\")                print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e\")        elif sim == '%':            res4 = char1 * 100                       print(f\"{char1:.2f} = {res4:.2f}%\")            var1 = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if var1 == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041f\u0420\u041e\u0426\u0415\u041d\u0422\u041e\u0412.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"{char1:.2f} = {res4:.2f}%\\n\")                print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!\")        elif sim == '-':            res5 = char1 - char2            print(f\"{char1:.3f} - {char2:.3f} = {res5:.3f}\")            var6 = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if var6 == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u0412\u042b\u0427\u0418\u0422\u0410\u041d\u0418\u042f.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"{char1:.3f} - {char2:.3f} = {res5:.3f}\\n\")    except Exception as e:        print(f\"\u041e\u0428\u0418\u0411\u041a\u0410 - {e}\")<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0418\u0442\u0430\u043a, \u043a\u043e\u0433\u0434\u0430 \u044f \u0443\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0432\u0430\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043c\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430, \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u0432\u0430\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443\u043b\u0443 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430. \u0422\u043e \u0435\u0441\u0442\u044c, \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b, \u0441\u043e\u043d, \u0435\u0433\u043e \u043c\u0430\u0441\u0441\u0430 \u0438 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442. \u0412\u044b \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u0435 \u043a\u0430\u043a \u043c\u0430\u0441\u0441\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u043c\u043e\u0437\u0433\u043e\u043c? \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u044f \u043c\u043e\u0433\u0443 \u0431\u044b\u0442\u044c 120 \u043a\u0433, \u043d\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f. \u0422\u043e\u0436\u0435 \u0432\u0435\u0440\u043d\u043e! \u041d\u043e \u043c\u044b \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0442\u043e\u043c \u0447\u0442\u043e \u0432\u0435\u0441 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442, \u043c\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043b\u0438\u0448\u044c \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432. \u0414\u0430\u043b\u0435\u0435 \u0432 \u044d\u0442\u043e\u0439 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0435\u0441\u0442\u044c iq. \u041d\u0443 \u0434\u0430, \u043f\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0432 \u0441\u0432\u043e\u0439 iq \u0438 \u0431\u044b\u0442\u044c \u0433\u0435\u043d\u0438\u0435\u043c, \u043d\u043e \u0431\u0435\u0437 \u0441\u043d\u0430, \u0443\u0447\u0435\u0431\u044b \u0438 \u0440\u0430\u0431\u043e\u0442\u044b iq \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0439\u0434\u0435\u0442 \u043a\u043e\u0442\u0443 \u043f\u043e\u0434 \u0445\u0432\u043e\u0441\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u044d\u0442\u0443 \u0444\u043e\u0440\u043c\u0443\u043b\u0443. \u0417\u0432\u0443\u0447\u0438\u0442 \u043a\u0430\u043a \u0431\u0440\u0435\u0434 \u043d\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0441\u0430\u043c\u0438!<\/p>\n<h2>\u0424\u043e\u0440\u043c\u0443\u043b\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0437\u0433\u0430 (Ebr)<\/h2>\n<p><img decoding=\"async\" class=\"formula\" source=\"Ebr = \\frac{m \\cdot c \\cdot i \\cdot W}{100,000,000 \\cdot (S\/2)}\" alt=\"Ebr = \\frac{m \\cdot c \\cdot i \\cdot W}{100,000,000 \\cdot (S\/2)}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/a\/a5\/a52\/a52875ba177890a5ab1b048c73eaf9b7.svg\" width=\"216\" height=\"40\" data-width=\"27.041\" data-height=\"5.247\" data-vertical-align=\"-2.058\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/getpro\/habr\/formulas\/a\/a5\/a52\/a52875ba177890a5ab1b048c73eaf9b7.svg 780w,&#10;       https:\/\/habrastorage.org\/getpro\/habr\/formulas\/a\/a5\/a52\/a52875ba177890a5ab1b048c73eaf9b7.svg 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<p>\u0414\u043b\u044f \u0447\u0435\u0433\u043e (S\/2)? \u0414\u043b\u044f \u0442\u0430\u043a \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0448\u0442\u0440\u0430\u0444\u0430 \u0437\u0430 \u0441\u043e\u043d, \u043b\u0438\u0431\u043e \u0436\u0435 \u0435\u0441\u043b\u0438 \u043c\u044b \u043d\u0435 \u043f\u043e\u0441\u043f\u0430\u043b\u0438 8 \u0447\u0430\u0441\u043e\u0432, \u0438\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u0442\u043e \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0438\u043c \u043d\u0430 2. \u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043f\u0430\u043b\u0438 6 \u0447\u0430\u0441\u043e\u0432 \u043d\u0430 4, \u043f\u043e\u0441\u043f\u0430\u043b\u0438 4 \u0434\u0435\u043b\u0438\u043c \u043d\u0430 6. \u0418\u0442\u043e\u0433\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0434\u0432\u0443\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0435, \u0438\u043b\u0438 \u0442\u0440\u0435\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e. \u041d\u043e \u043a\u0430\u043a \u043f\u043e\u0442\u043e\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u0430\u043a\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u043c\u043e\u0439 \u043c\u043e\u0437\u0433? \u041b\u0435\u0433\u043a\u043e. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432\u044b\u0448\u043b\u043e \u043c\u0435\u043d\u044c\u0448\u0435 100, \u0442\u043e \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0432\u044b \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u0437\u0438\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044c. \u0414\u0430, \u0433\u043e\u0440\u044c\u043a\u0430\u044f \u043f\u0440\u0430\u0432\u0434\u0430. \u0415\u0441\u043b\u0438 100, \u0442\u043e \u0432\u044b \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a, \u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0438 \u0443\u0447\u0435\u0431\u0443 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044f\u0441\u044c \u0447\u0435\u043c \u0442\u043e \u043b\u0438\u0448\u043d\u0438\u043c \u0432 \u0432\u0430\u0448\u0435\u0439 \u0436\u0438\u0437\u043d\u0438. \u0415\u0441\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 100 \u0438\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 200 \u043f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u044f\u044e! \u0412\u044b \u0440\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u0433\u0435\u043d\u0438\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u044f\u0433\u043e\u0439, \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0448\u0430\u043d\u0441\u044b \u043d\u0430 \u0442\u043e \u0447\u0442\u043e \u0431\u044b \u0441\u0442\u0430\u0442\u044c \u0437\u043d\u0430\u043c\u0435\u043d\u0438\u0442\u044b\u043c, \u0438\u043b\u0438 \u0431\u043e\u0433\u0430\u0442\u044b\u043c. \u0418 \u043a\u0441\u0442\u0430\u0442\u0438 \u0434\u0430\u043d\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443\u043b\u0443 \u044f \u0442\u043e\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c.<\/p>\n<h2>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u0440\u043e\u0432\u043d\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/h2>\n<pre><code class=\"python\">def Pm():    try:        m = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043c\u0430\u0441\u0441\u0443: \"))            i = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0430\u0439\u043a\u044c\u044e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430(\u0435\u0441\u043b\u0438 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 50 \u0435\u0434 \u0442\u0443\u043f\u043e\u0439 - 100 \u0435\u0434 \u0443\u043c\u043d\u044b\u0439.): \"))                workh = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430(\u0443\u0447\u0435\u0431\u0430, \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430): \"))                sleph = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432 \u0441\u043f\u0438\u0442 \u0447\u0435\u043b\u043e\u0432\u0435\u043a: \"))            io = input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043c\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430: \")                sleep_penalty = 2**(sleph \/ 8) \/ 2                c = 300000            base_pm = (m * c * i) \/ 100000000                final_score = (base_pm * workh) * sleep_penalty                                    print(f\"\u041e\u0442\u0447\u0435\u0442 \u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0437\u0433\u0430 {io.upper():&lt;27}\")                print(f\"\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f {base_pm:&lt;28}%\")                print(f\"\u041a\u043e\u044d\u0444\u0438\u0446\u0435\u043d\u0442 \u0411\u043e\u0434\u0440\u043e\u0441\u0442\u0438 - {sleep_penalty:&lt;32}%\")                print(f\"\u0418\u0422\u041e\u0413\u041e\u0412\u0410\u042f \u041f\u0420\u041e\u0414\u0423\u041a\u0422\u0418\u0412\u041d\u041e\u0421\u0422\u042c: {final_score:&lt;28}%\")                kml = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432 \u0431\u043b\u043e\u043a\u043d\u043e\u0442\u0435?(Y\/N): \").upper()        if kml == 'Y':            with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041f\u0420\u041e\u0414\u0423\u041a\u0422\u0418\u0412\u041d\u041e\u0421\u0422\u0418 \u0427\u0415\u041b\u041e\u0412\u0415\u041a\u0410.txt\", \"a\", encoding=\"utf-8\") as file:                file.write(f\"\u041e\u0442\u0447\u0435\u0442 \u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0437\u0433\u0430 {io.upper()}\")                file.write(f\"\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f {base_pm}%\")                file.write(f\"\u041a\u043e\u044d\u0444\u0438\u0446\u0435\u043d\u0442 \u0411\u043e\u0434\u0440\u043e\u0441\u0442\u0438 - {sleep_penalty}%\")                file.write(f\"\u0418\u0422\u041e\u0413\u041e\u0412\u0410\u042f \u041f\u0420\u041e\u0414\u0423\u041a\u0422\u0418\u0412\u041d\u041e\u0421\u0422\u042c: {final_score}%\")                file.write(\"-\" * 30 + \"\\n\")            print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u043d\u0435\u0441\u0435\u043d\u043e \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043b\u043e\u0433.\")    except ZeroDivisionError:        os.system(\"color 4\")        print(\"\u041e\u0428\u0418\u0411\u041a\u0410: \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0443\u043b\u0435\u0432\u044b\u043c!\")                    time.sleep(1)                    os.system(\"color 2\")     except ValueError:        os.system(\"color 4\")                   print(\"\u041e\u0428\u0418\u0411\u041a\u0410: \u0412\u0432\u043e\u0434\u0438\u0442\u0435 \u0446\u0438\u0444\u0440\u044b \u0430 \u043d\u0435 \u0431\u0443\u043a\u0432\u044b!\")                 time.sleep(1)                os.system(\"color 2\")<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0441\u0442\u0430\u0442\u044c\u044f \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u042d\u0442\u043e \u0431\u044b\u043b \u043f\u0435\u0440\u0432\u044b\u0439 \u0448\u0430\u0433 \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c \u0447\u0442\u043e \u0442\u043e \u043d\u0430 habr. \u0414\u0430 \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043a\u0430\u043a\u043e\u0439 \u0442\u043e 13 \u043b\u0435\u0442\u043d\u0438\u0439 \u0448\u043a\u043e\u043b\u044c\u043d\u0438\u043a \u043f\u0440\u0435\u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0441\u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0444\u043e\u0440\u043c\u0443\u043b\u0443. \u0414\u0430 \u0432 \u0447\u0435\u043c \u0442\u043e \u0432\u044b \u043f\u0440\u0430\u0432\u044b. \u0418 \u044f \u043d\u0435 \u0441\u043f\u043e\u0440\u044e \u0422\u0430\u043a \u0436\u0435 \u044f \u0433\u043e\u0442\u043e\u0432 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043a\u0440\u0438\u0442\u0438\u043a\u0443, \u043f\u0440\u043e\u0448\u0443 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043c\u043d\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u043a\u043e\u0434\u0435. \u042f \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0433\u043e\u0442\u043e\u0432 \u043a \u0434\u0438\u0441\u043a\u0443\u0441\u0441\u0438\u0438. \u041d\u0443 \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0435\u0433\u043e \u043f\u043e\u0434\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u043b\u0438 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0448\u0443 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043c\u043e\u0439 \u043d\u0438\u043a\u043d\u0435\u0439\u043c \u0438\u043b\u0438 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043c\u043e\u044e \u0441\u0442\u0430\u0442\u044c\u044e. \u041d\u0443 \u0438 \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u043c\u043d\u0435 \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0438\u0434\u0435\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u043d\u0435\u0442 \u0441 \u043a\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u043a\u043e\u0434\u0430 \u0438\u043b\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<h2>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/h2>\n<pre><code class=\"python\"># -*- coding: utf-8 -*-import osimport timeos.system(\"color 2\")def sped():    try:        s = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043d\u043e\u0435 \u0440\u0430\u0441\u0442\u043e\u044f\u043d\u0438\u0435(\u043c): \"))        t = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u0440\u0435\u043c\u044f(\u0441\u0435\u043a): \"))        v = s \/ t        print(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {v} \u043c\/c\")        comisat = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b?(Y\/N): \").upper()        if comisat == 'Y':            with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u0421\u041a\u041e\u0420\u041e\u0421\u0422\u0418.txt\", \"a\", encoding=\"utf-8\") as file:                file.write(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {v} \u043c\/c\\n\")            print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!\")              except ZeroDivisionError:        os.system(\"color 4\")        print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0443\u043b\u0435\u0432\u044b\u043c!\")        time.sleep(1)        os.system(\"color 2\")    except ValueError:        os.system(\"color 4\")        print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u041f\u0438\u0448\u0438\u0442\u0435 \u0446\u0438\u0444\u0440\u044b \u0430 \u043d\u0435 \u0431\u0443\u043a\u0432\u044b!\")        time.sleep(1)        os.system(\"color 2\")    def convect():    try:        com = input(\"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438(\u043a\u043c\/\u0447 \u0432 \u043c\/c, \u043c\/\u0441 \u0432 \u043a\u043c\/\u0447, \u043a\u0433 \u0432 \u0433, \u043a\u043c \u0432 \u043c, \u043b\u043e\u0448 \u0432 \u0432\u0442, \u043c \u0432 \u0441, \u0441 \u0432 \u043c, \u0447\u0430\u0441 \u0432 \u0441, \u0447\u0430\u0441 \u0432 \u043c): \")        if com == '\u043a\u043c\u0447 \u0432 \u043c\u0441':            qw = float(input(\"\u0447\u0438\u0441\u043b\u043e(\u043a\u043c\/\u0447): \"))            resu = qw \/ 3.6            print(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resu:.3f} \u043c\/c\")            comm = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if comm == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041cC.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resu:.3f} \u043c\/c\\n\")                print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!\")        elif com == '\u043c\u0441 \u0432 \u043a\u043c\u0447':            gh = float(input(\"\u0427\u0438\u0441\u043b\u043e(\u043c\/\u0441): \"))            resuv = gh * 3.6            print(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resuv} \u043a\u043c\/\u0447\")            cvx = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b?(Y\/N): \").upper()            if cvx == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041c\u0421 \u0412 \u041a\u041c\u0427.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resuv} \u043a\u043c\/\u0447\\n\")                print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!\")            elif com == '\u043a\u043c \u0432 \u043c':            er = float(input(\"\u0427\u0438\u0441\u043b\u043e(\u043a\u043c): \"))            resut = er * 1000            print(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resut} \u043c.\")            chois = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if chois == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041c.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resut} \u043c.\\n\")                print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!\")        elif com == '\u043c \u0432 \u043a\u043c':            eri = float(input(\"\u0427\u0438\u0441\u043b\u043e(\u043c): \"))            resuti = eri \/ 1000            print(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resuti} \u043a\u043c.\")            choisi = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if choisi == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041a\u041c.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resuti} \u043a\u043c.\\n\")                print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!\")                elif com == '\u043c \u0432 \u0441':            m = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043c\u0438\u043d\u0443\u0442\u044b: \"))            rv = m * 60            print(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {rv} \u0441\")            cvb = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b?(Y\/N): \").upper()            if cvb == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041c \u0412 \u0421.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {rv} \u0441\")                print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!\")            else:            os.system(\"color 4\")            print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0430\")            time.sleep(1)            os.system(\"color 2\")    except ValueError:        print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u0412\u0432\u043e\u0434\u0438\u0442\u0435 \u0446\u0438\u0444\u0440\u044b \u0430 \u043d\u0435 \u0431\u0443\u043a\u0432\u044b\")    except ZeroDivisionError:        print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0443\u043b\u0435\u0432\u044b\u043c!\")    except Exception as e:        print(f\"\u041e\u0448\u0438\u0431\u043a\u0430: {e}\")def calc():    try:        char1 = float(input(\": \"))                sim = input(\": \")                char2 = float(input(\": \"))        if sim == '+':            res = char1 + char2                        print(f\"{char1:.3f} + {char2:.3f} = {res:.3f}\")            var4 = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if var4 == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041f\u0420\u0418\u0411\u0410\u0412\u041b\u0415\u041d\u0418\u042f.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"{char1:.3f} + {char2:.3f} = {res:.3f}\\n\")        elif sim == '*':            res2 = char1 * char2                      print(f\"{char1:.3f} * {char2:.3f} = {res2:.3f}\")            var3 = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if var3 == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u0423\u041c\u041d\u041e\u0416\u0415\u041d\u0418\u042f.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"{char1:.3f} * {char2:.3f} = {res2:.3f}\\n\")        elif sim == '\/':            res3 = char1 \/ char2                        print(f\"{char1:.3f} \/ {char2:.3f} = {res3:.3f}\")            var2 = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if var2 == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u0414\u0415\u041b\u0415\u041d\u0418\u042f.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"{char1:.3f} \/ {char2:.3f} = {res3:.3f}\\n\")                print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e\")        elif sim == '%':            res4 = char1 * 100                       print(f\"{char1:.2f} = {res4:.2f}%\")            var1 = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if var1 == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041f\u0420\u041e\u0426\u0415\u041d\u0422\u041e\u0412.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"{char1:.2f} = {res4:.2f}%\\n\")                print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!\")        elif sim == '-':            res5 = char1 - char2            print(f\"{char1:.3f} - {char2:.3f} = {res5:.3f}\")            var6 = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): \").upper()            if var6 == 'Y':                with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u0412\u042b\u0427\u0418\u0422\u0410\u041d\u0418\u042f.txt\", \"a\", encoding=\"utf-8\") as file:                    file.write(f\"{char1:.3f} - {char2:.3f} = {res5:.3f}\\n\")    except Exception as e:        print(f\"\u041e\u0428\u0418\u0411\u041a\u0410 - {e}\")def Pm():    try:        m = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043c\u0430\u0441\u0441\u0443: \"))            i = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0430\u0439\u043a\u044c\u044e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430(\u0435\u0441\u043b\u0438 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 50 \u0435\u0434 \u0442\u0443\u043f\u043e\u0439 - 100 \u0435\u0434 \u0443\u043c\u043d\u044b\u0439.): \"))                workh = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430(\u0443\u0447\u0435\u0431\u0430, \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430): \"))                sleph = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432 \u0441\u043f\u0438\u0442 \u0447\u0435\u043b\u043e\u0432\u0435\u043a: \"))            io = input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043c\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430: \")                sleep_penalty = 2**(sleph \/ 8) \/ 2                c = 300000            base_pm = (m * c * i) \/ 100000000                final_score = (base_pm * workh) * sleep_penalty                                    print(f\"\u041e\u0442\u0447\u0435\u0442 \u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0437\u0433\u0430 {io.upper():&lt;27}\")                print(f\"\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f {base_pm:&lt;28}%\")                print(f\"\u041a\u043e\u044d\u0444\u0438\u0446\u0435\u043d\u0442 \u0411\u043e\u0434\u0440\u043e\u0441\u0442\u0438 - {sleep_penalty:&lt;32}%\")                print(f\"\u0418\u0422\u041e\u0413\u041e\u0412\u0410\u042f \u041f\u0420\u041e\u0414\u0423\u041a\u0422\u0418\u0412\u041d\u041e\u0421\u0422\u042c: {final_score:&lt;28}%\")                kml = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432 \u0431\u043b\u043e\u043a\u043d\u043e\u0442\u0435?(Y\/N): \").upper()        if kml == 'Y':            with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041f\u0420\u041e\u0414\u0423\u041a\u0422\u0418\u0412\u041d\u041e\u0421\u0422\u0418 \u0427\u0415\u041b\u041e\u0412\u0415\u041a\u0410.txt\", \"a\", encoding=\"utf-8\") as file:                file.write(f\"\u041e\u0442\u0447\u0435\u0442 \u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0437\u0433\u0430 {io.upper()}\")                file.write(f\"\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f {base_pm}%\")                file.write(f\"\u041a\u043e\u044d\u0444\u0438\u0446\u0435\u043d\u0442 \u0411\u043e\u0434\u0440\u043e\u0441\u0442\u0438 - {sleep_penalty}%\")                file.write(f\"\u0418\u0422\u041e\u0413\u041e\u0412\u0410\u042f \u041f\u0420\u041e\u0414\u0423\u041a\u0422\u0418\u0412\u041d\u041e\u0421\u0422\u042c: {final_score}%\")                file.write(\"-\" * 30 + \"\\n\")            print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u043d\u0435\u0441\u0435\u043d\u043e \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043b\u043e\u0433.\")    except ZeroDivisionError:        os.system(\"color 4\")        print(\"\u041e\u0428\u0418\u0411\u041a\u0410: \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0443\u043b\u0435\u0432\u044b\u043c!\")                    time.sleep(1)                    os.system(\"color 2\")     except ValueError:        os.system(\"color 4\")                   print(\"\u041e\u0428\u0418\u0411\u041a\u0410: \u0412\u0432\u043e\u0434\u0438\u0442\u0435 \u0446\u0438\u0444\u0440\u044b \u0430 \u043d\u0435 \u0431\u0443\u043a\u0432\u044b!\")                 time.sleep(1)                os.system(\"color 2\")def n_kpd():    try:        ap = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443(\u0414\u0416): \"))            az = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0430\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443(\u0414\u0416): \"))            n = (ap \/ az) * 100            print(f\"\u041a\u043e\u044d\u0444\u0438\u0446\u0435\u043d\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f: {n:.2f} %\\n\")        nm = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b?(Y - \u0434\u0430, N - \u043d\u0435\u0442): \").upper()        if nm == 'Y':            with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422 \u041a\u041f\u0414.txt\", \"a\", encoding=\"utf-8\") as file:                         file.write(f\"\u041a\u043e\u044d\u0444\u0438\u0446\u0435\u043d\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f: {n:.2f} %\\n\")            print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u043d\u0435\u0441\u0435\u043d\u043e \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b.\")    except ZeroDivisionError:        os.system(\"color 4\")        print(\"\u041e\u0428\u0418\u0411\u041a\u0410! \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u0430 \u043d\u0443\u043b\u044e!\")                time.sleep(1)                os.system(\"color 2\")    except ValueError:        os.system(\"color 4\")        print(\"\u041e\u0428\u0418\u0411\u041a\u0410! \u0412\u0432\u043e\u0434\u0438\u0442\u0435 \u0446\u0438\u0444\u0440\u044b \u0430 \u043d\u0435 \u0431\u0443\u043a\u0432\u044b!\")            time.sleep(1)                os.system(\"color 2\")def Epor():    try:        C = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0435\u043c\u043a\u043e\u0441\u0442\u044c: \"))           m = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043c\u0430\u0441\u0441\u0443: \"))            Ep = C * m * 300000 \/ 2            print(f\"\u0417\u0430\u0440\u044f\u0434 \u043f\u043e\u0440\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u044d\u043d\u0435\u0440\u0433\u0438\u0438: {Ep} \u0440\u0443\u043d\u043a\u043e\u0432.\")    except ValueError:        os.system(\"color 4\")            print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u0412\u0432\u043e\u0434\u0438\u0442\u0435 \u0446\u0438\u0444\u0440\u0443 \u0430 \u043d\u0435 \u0431\u0443\u043a\u0432\u0443!\")                time.sleep(1)                os.system(\"color 2\")    except ZeroDivisionError:        os.system(\"color 4\")        print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u0427\u0438\u0441\u043b\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0443\u043b\u0435\u0432\u044b\u043c!\")                time.sleep(1)                os.system(\"color 2\")def eot():    try:        ebr = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0437\u0433\u0430(Ebr): \"))        eot = float(input(\"\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432 \u0432 \u0434\u0435\u043d\u044c \u0432\u044b \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u0435 \u0437\u0430 \u0441\u043e\u0446\u0441\u0435\u0442\u044f\u043c\u0438?: \"))                resbi = ebr \/ eot        print(f\" \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 - {resbi} %\")        xi = input(\"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442?(Y\/N): \").upper        if xi == 'Y':            with open(\"\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422 EBRot.txt\", \"a\", encoding=\"utf-8\") as file:                file.write(f\" \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 - {resbi} %\\n\")            print(\"\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!\")    except ValueError:        os.system(\"color 4\")        print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u041f\u0438\u0448\u0438\u0442\u0435 \u0446\u0438\u0444\u0440\u044b \u0430 \u043d\u0435 \u0431\u0443\u043a\u0432\u044b!\")        time.sleep(1)        os.system(\"color 2\")    except ZeroDivisionError:        os.system(\"color 4\")        print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0443\u043b\u0435\u0432\u044b\u043c!\")        time.sleep(1)        os.system(\"color 2\")    def ek():    try:        m = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043c\u0430\u0441\u0441\u0443: \"))            v = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c: \"))            v2 = v * v            ek_res = m * v2 \/ 2            print(f\"\u041e\u0442\u0432\u0435\u0442 \u044d\u043d\u0435\u0440\u0433\u0438\u044f \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f {ek_res} \u0434\u0436\u043e\u0443\u043b\u0435\u0439.\")    except ValueError:        os.system(\"color 4\")                print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u041f\u0438\u0448\u0438\u0442\u0435 \u0446\u0438\u0444\u0440\u044b \u0430 \u043d\u0435 \u0431\u0443\u043a\u0432\u044b!\")               time.sleep(1)                os.system(\"color 2\")    except ZeroDivisionError:        os.system(\"color 4\")                print(\"\u041e\u0449\u0438\u0431\u043a\u0430: \u0447\u0438\u0441\u043b\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u044b\u043c \u043d\u0443\u043b\u044e?\")                time.sleep(1)               os.system(\"color 2\")def utep():    try:        l = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0443\u0434 \u0442\u0435\u043f \u043f\u0430\u0440\u043e\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f(\u0434\u0436\/\u043a\u0433): \"))            m = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043c\u0430\u0441\u0441\u0443(\u043a\u0433): \"))            q = l * m            print(f\"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u043f\u043b\u043e\u0442\u044b: {q} \u0414\u0436\")    except ZeroDivisionError:        os.system(\"color 4\")               print(\"\u041e\u0448\u0438\u0431\u043a\u0430! \u0444\u0430\u0439\u043b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u044b\u043c \u043d\u0443\u043b\u044e!\")                time.sleep(1)                os.system(\"color 2\")    except ValueError:        os.system(\"color 4\")                print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u041f\u0438\u0448\u0438\u0442\u0435 \u0446\u0438\u0444\u0440\u044b \u0430 \u043d\u0435 \u0431\u0443\u043a\u0432\u044b!\")                time.sleep(1)                os.system(\"color 2\")def mosh():    try:        a = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043c\u0435\u0445.\u0440\u0430\u0431\u043e\u0442\u0443: \"))            t = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b: \"))           n = a \/ t        print(f\"\u0421\u043e\u0441\u0442\u0430\u0432\u043d\u0430\u044f \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u044c: {n} \u0432\u0442\")    except ZeroDivisionError:        os.system(\"color 4\")                print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u0427\u0438\u0441\u043b\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u044b\u043c \u043d\u0443\u043b\u044e!\")                time.sleep(1)                os.system(\"color 2\")    except ValueError:        os.system(\"color 4\")               print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u041f\u0438\u0448\u0438\u0442\u0435 \u0446\u0438\u0444\u0440\u044b \u0430 \u043d\u0435 \u0431\u0443\u043a\u0432\u044b!\")                time.sleep(1)                os.system(\"color 2\")def sila():    try:        m = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043c\u0430\u0441\u0441\u0443 \u043e\u0431\u044c\u0435\u043a\u0442\u0430(\u043a\u0433): \"))            a = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0430\u043a\u0441\u0435\u043b\u0435\u0440\u0430\u0446\u0438\u044e(\u043c\\\u04412): \"))            f = m * a             print(f\"\u0421\u0438\u043b\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c: {f} \u041d\u044c\u044e\u0442\u043e\u043d\u043e\u0432.\")    except ZeroDivisionError:        os.system(\"color 4\")            print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u0427\u0438\u0441\u043b\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u044b\u043c \u043d\u0443\u043b\u044e!\")                time.sleep(1)               os.system(\"color 2\")    except ValueError:        os.system(\"color 4\")                print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u041f\u0438\u0448\u0438\u0442\u0435 \u0446\u0438\u0444\u0440\u044b \u0430 \u043d\u0435 \u0431\u0443\u043a\u0432\u044b!\")                time.sleep(1)               os.system(\"color 2\")def rabota():    try:        f = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0438\u043b\u0443(\u041d): \"))            s = float(input(\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u044b\u0439 \u043f\u0443\u0442\u044c: \"))            a = f * s            print(f\"\u041c\u0435\u0445\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430: {a} \u0414\u0436.\")    except ZeroDivisionError:            os.system(\"color 4\")                print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u0427\u0438\u0441\u043b\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u044b\u043c \u043d\u0443\u043b\u044e!\")                time.sleep(1)                os.system(\"color 2\")    except ValueError:        os.system(\"color 4\")                print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u041f\u0438\u0448\u0438\u0442\u0435 \u0446\u0438\u0444\u0440\u044b \u0430 \u043d\u0435 \u0431\u0443\u043a\u0432\u044b!\")                time.sleep(1)                os.system(\"color 2\")def baza():    materials = {    \"\u0432\u043e\u0434\u0430\": 2300000,    \"\u0441\u043f\u0438\u0440\u0442\": 900000,    \"\u0440\u0442\u0443\u0442\u044c\": 1400000,    }    material = input(\"\u0427\u0442\u043e \u043d\u0430\u0434\u043e \u0438\u0441\u043f\u0430\u0440\u0438\u0442\u044c: \")    if material in materials:        L = materials[material]              print(f\"L \u0434\u043b\u044f {material} \u0440\u0430\u0432\u0435\u043d: {L} \u0434\u0436\/\u043a\u0433\")    else:        print(\"\u0422\u0430\u043a\u043e\u0433\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u043d\u0435\u0442 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445!\")def main():        print(\"\\n\" + \"#\"*60)    print(\"\"\"  ______ _____ _   _  _____ _______    _______ _____ ____  _   _  |  ____|_   _| \\ | |\/ ____|__   __|\/\\|__   __|_   _\/ __ \\| \\ | | | |__    | | |  \\| | (___    | |  \/  \\  | |    | || |  | |  \\| | |  __|   | | | . ` |\\___ \\   | | \/ \/\\ \\ | |    | || |  | | . ` | | |____ _| |_| |\\  |____) |  | |\/ ____ \\| |   _| || |__| | |\\  | |______|_____|_| \\_|_____\/_  |_\/_\/    \\_\\_|  |_____\\____\/|_| \\_|    \"\"\")    print(\"\"\" ______  _     _    _  _____ |  __ \\| |   | |  | |\/ ____|   _                                   | |__) | |   | |  | | (___   _| |_                                 |  ___\/| |   | |  | |\\___ \\ |_   _|                               | |    | |___| |__| |____) |  |_|                                  |_|    |______\\____\/|_____\/        \"\"\")    print(\"    [ --- EINSTATION PLUS + PROTUPE DK --- ]\")    print(\"    \u041b\u0443\u0447\u0448\u0438\u0439 \u043f\u043e\u043c\u043e\u0448\u043d\u0438\u043a \u0444\u0438\u0437\u0438\u043a\u0430.\")    print(\"    \u041f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u0430\u0436\u0435 \u0441\u0430\u043c \u042d\u0439\u043d\u0448\u0442\u0435\u0439\u043d :)\")    print(\"#\"*60)                print(\"[ | help - \u0434\u043b\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 | ]\")        command = input(\"\\n&gt;&gt; \")        if command == 'f':        sila()    elif command == 'a':        rabota()    elif command == 'm':        mosh()    elif command == 'q':        utep()    elif command == 'l':            baza()    elif command == 'ek':            ek()    elif command == 'epor':        Epor()    elif command == 'help':        with open(\"\u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u0424\u0438\u0437\u0438\u043a\u0430.txt\", \"a\", encoding=\"utf-8\") as file:            file.write(\"a - \u0440\u0430\u0431\u043e\u0442\u0430, ek - \u043a\u0438\u043d\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u044d\u043d\u0435\u0440\u0433\u0438\u044f, n - \u041a\u041f\u0414, l - \u0442\u0430\u0431\u043b\u0438\u0446\u0430 L, q - \u0442\u0435\u043f\u043b\u043e\u0442\u0430, m - \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u044c, f - \u0441\u0438\u043b\u0430, \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440, \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0446\u0438\u044f, c\u043a\u043e\u0440\u043e\u0441\u0442\u044c - \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438.\\n\")        print(\"\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0430 \u0432 \u0444\u0430\u0439\u043b.\")    elif command == 'n':           n_kpd()    elif command == 'pm':            Pm()    elif command == '\u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0446\u0438\u044f':        calc()    elif command == '\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440':        convect()    elif command == '\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c':        sped()       elif command == 'ebrot':        eot()    elif command == '\u0432\u044b\u0445\u043e\u0434':        print(\"\u041d\u0430\u0436\u043c\u0438\u0442\u0435 Ctrl+C\")    else:        os.system(\"color 4\")                print(\"\u041e\u0448\u0438\u0431\u043a\u0430: \u0422\u0430\u043a\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043d\u0435\u0442!\")                time.sleep(1)                os.system(\"color 2\")while True:    try:        main()    except KeyboardInterrupt:        print(\"\\n\\n\" + \"\u2592\"*40)        print(\"      S Y S T E M   C L O S E D\")        print(\"\u2592\"*40 + \"\\n\")                time.sleep(1)                break<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1025052\/\">https:\/\/habr.com\/ru\/articles\/1025052\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0437\u0431\u0435\u0440\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u201cEINSTATION PLUS\u201d, \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0441\u0447\u0435\u0442\u043e\u0432 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0432\u0435\u043b\u0438\u0447\u0438\u043d \u0438 \u0444\u043e\u0440\u043c\u0443\u043b. \u042f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b \u043f\u043e\u0440\u043e\u0439 \u043e\u0431\u044b\u0447\u043d\u044b\u0435, \u043d\u043e \u0441\u0430\u043c\u044b\u0435 \u0441\u043a\u0443\u0447\u043d\u044b\u0435 \u0440\u0430\u0441\u0447\u0435\u0442\u044b. \u0427\u0442\u043e\u0431\u044b \u043f\u043e 10 \u0447\u0430\u0441\u043e\u0432 \u043d\u0435 \u0433\u043e\u0440\u0431\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0434 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u043c, \u0435\u0441\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0444\u043e\u0440\u043c\u0443\u043b\u044b, \u0438\u043b\u0438 \u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b. \u0422\u0430\u043a \u0436\u0435 \u043e\u043f\u0438\u0448\u0443 \u0441\u0432\u043e\u044e \u0444\u043e\u0440\u043c\u0443\u043b\u0443 Ebr(energy brain result) \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0444\u043e\u0440\u043c\u0443\u043b\u044b F. \u0421\u0438\u043b\u0430. \u0412 \u044d\u0442\u043e\u043c \u043a\u0443\u0441\u043a\u0435 \u043a\u043e\u0434\u0430 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 try &amp; except \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043e\u043a \u043e\u0448\u0438\u0431\u043e\u043a, \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u043d\u0435 \u0437\u0430\u043a\u0440\u044b\u043b\u0430\u0441\u044c \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0436\u0435 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0443\u043c\u0435\u0441\u0442\u0438\u043b \u0432\u0441\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u0434 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043b \u0438\u0437 if elif else.\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0441\u0438\u043b\u044bdef sila():    try:        m = float(input(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043c\u0430\u0441\u0441\u0443 \u043e\u0431\u044c\u0435\u043a\u0442\u0430(\u043a\u0433): &#171;))            a = float(input(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0430\u043a\u0441\u0435\u043b\u0435\u0440\u0430\u0446\u0438\u044e(\u043c\\\u04412): &#171;))            f = m * a        print(f&#187;\u0421\u0438\u043b\u0430: {f} \u041d\u044c\u044e\u0442\u043e\u043d\u043e\u0432.&#187;)    except ValueError:        os.system(&#171;color 4&#187;) # \u0421\u043c\u0435\u043d\u0430 \u0446\u0432\u0435\u0442\u0430 \u043d\u0430 \u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0435        print(&#171;\u041e\u0448\u0438\u0431\u043a\u0430: \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439 \u0432\u0432\u043e\u0434!&#187;)        time.sleep(1)# \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0443\u0441\u043f\u0435\u043b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u0432\u043e\u044e \u043e\u0448\u0438\u0431\u043a\u0443        os.system(&#171;color 2&#187;) # \u0412\u043e\u0437\u0432\u0440\u0430\u0442 \u043a \u0437\u0435\u043b\u0435\u043d\u043e\u043c\u0443\u0422\u0430\u043a \u0436\u0435 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440 \u0432\u0435\u043b\u0438\u0447\u0438\u043d, \u0442.\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0432 \u043c\u0438\u043d\u0443\u0442\u044b, \u043c\u0438\u043d\u0443\u0442\u044b \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043a\u043c\\\u0447 \u0432 \u043c\u0441\\\u0441 \u0438 \u0442.\u0434. \u0418 \u0442\u0430\u043a \u0436\u0435 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043e\u0448\u0438\u0431\u043e\u043a, \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043d\u0443\u043b\u044f \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0441\u043b\u043e\u043c\u0430\u043b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432\u0432\u0435\u0434\u044f \u043d\u0443\u043b\u044c.\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440\u0430 \u0432\u0435\u043b\u0438\u0447\u0438\u043ddef convect():    try:        com = input(&#171;\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438(\u043a\u043c\/\u0447 \u0432 \u043c\/c, \u043c\/\u0441 \u0432 \u043a\u043c\/\u0447, \u043a\u0433 \u0432 \u0433, \u043a\u043c \u0432 \u043c, \u043b\u043e\u0448 \u0432 \u0432\u0442, \u043c \u0432 \u0441, \u0441 \u0432 \u043c, \u0447\u0430\u0441 \u0432 \u0441, \u0447\u0430\u0441 \u0432 \u043c): &#171;)        if com == &#8216;\u043a\u043c\u0447 \u0432 \u043c\u0441&#8217;:            qw = float(input(&#171;\u0447\u0438\u0441\u043b\u043e(\u043a\u043c\/\u0447): &#171;))            resu = qw \/ 3.6            print(f&#187;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resu:.3f} \u043c\/c&#187;)            comm = input(&#171;\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): &#171;).upper()            if comm == &#8216;Y&#8217;:                with open(&#171;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041cC.txt&#187;, &#171;a&#187;, encoding=&#187;utf-8&#8243;) as file:                    file.write(f&#187;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resu:.3f} \u043c\/c\\n&#187;)                print(&#171;\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!&#187;)        elif com == &#8216;\u043c\u0441 \u0432 \u043a\u043c\u0447&#8217;:            gh = float(input(&#171;\u0427\u0438\u0441\u043b\u043e(\u043c\/\u0441): &#171;))            resuv = gh * 3.6            print(f&#187;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resuv} \u043a\u043c\/\u0447&#187;)            cvx = input(&#171;\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b?(Y\/N): &#171;).upper()            if cvx == &#8216;Y&#8217;:                with open(&#171;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041c\u0421 \u0412 \u041a\u041c\u0427.txt&#187;, &#171;a&#187;, encoding=&#187;utf-8&#8243;) as file:                    file.write(f&#187;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resuv} \u043a\u043c\/\u0447\\n&#187;)                print(&#171;\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!&#187;)            elif com == &#8216;\u043a\u043c \u0432 \u043c&#8217;:            er = float(input(&#171;\u0427\u0438\u0441\u043b\u043e(\u043a\u043c): &#171;))            resut = er * 1000            print(f&#187;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resut} \u043c.&#187;)            chois = input(&#171;\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): &#171;).upper()            if chois == &#8216;Y&#8217;:                with open(&#171;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041c.txt&#187;, &#171;a&#187;, encoding=&#187;utf-8&#8243;) as file:                    file.write(f&#187;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resut} \u043c.\\n&#187;)                print(&#171;\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!&#187;)        elif com == &#8216;\u043c \u0432 \u043a\u043c&#8217;:            eri = float(input(&#171;\u0427\u0438\u0441\u043b\u043e(\u043c): &#171;))            resuti = eri \/ 1000            print(f&#187;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resuti} \u043a\u043c.&#187;)            choisi = input(&#171;\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): &#171;).upper()            if choisi == &#8216;Y&#8217;:                with open(&#171;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041a\u041c.txt&#187;, &#171;a&#187;, encoding=&#187;utf-8&#8243;) as file:                    file.write(f&#187;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {resuti} \u043a\u043c.\\n&#187;)                print(&#171;\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!&#187;)                elif com == &#8216;\u043c \u0432 \u0441&#8217;:            m = float(input(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043c\u0438\u043d\u0443\u0442\u044b: &#171;))            rv = m * 60            print(f&#187;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {rv} \u0441&#187;)            cvb = input(&#171;\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b?(Y\/N): &#171;).upper()            if cvb == &#8216;Y&#8217;:                with open(&#171;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041c \u0412 \u0421.txt&#187;, &#171;a&#187;, encoding=&#187;utf-8&#8243;) as file:                    file.write(f&#187;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422: {rv} \u0441&#187;)                print(&#171;\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!&#187;)            else:            os.system(&#171;color 4&#187;)            print(&#171;\u041e\u0448\u0438\u0431\u043a\u0430: \u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0430&#187;)            time.sleep(1)            os.system(&#171;color 2&#187;)    except ValueError:        print(&#171;\u041e\u0448\u0438\u0431\u043a\u0430: \u0412\u0432\u043e\u0434\u0438\u0442\u0435 \u0446\u0438\u0444\u0440\u044b \u0430 \u043d\u0435 \u0431\u0443\u043a\u0432\u044b&#187;)    except ZeroDivisionError:        print(&#171;\u041e\u0448\u0438\u0431\u043a\u0430: \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0443\u043b\u0435\u0432\u044b\u043c!&#187;)    except Exception as e:        print(f&#187;\u041e\u0448\u0438\u0431\u043a\u0430: {e}&#187;)\u0418 \u0442\u0430\u043a, \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u043e\u043b\u0438. \u0415\u0441\u043b\u0438 \u0431\u044b \u044f \u0432\u0441\u0442\u0430\u0432\u0438\u043b \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0432\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u0442\u043e \u0442\u0435\u043a\u0441\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u044b \u043d\u0435 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043b\u0441\u044f. \u041d\u043e \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439? \u041e\u0447\u0435\u043d\u044c \u0434\u0430\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u0432\u0435\u0441\u0442\u0438 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0443, \u0438 \u0441\u0440\u0430\u0437\u0443 \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u043a\u0430\u043a\u0443\u044e \u0438\u043c\u0435\u043d\u043d\u043e, \u0442\u043e \u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u201chelp\u201d. \u041a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u0432 \u0444\u0430\u0439\u043b txt. \u041d\u043e \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u044f \u0435\u0435 \u043d\u0435 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043b, \u0438 \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c \u0444\u0430\u0439\u043b\u0435elif command == &#8216;help&#8217;:        with open(&#171;\u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u0424\u0438\u0437\u0438\u043a\u0430.txt&#187;, &#171;a&#187;, encoding=&#187;utf-8&#8243;) as file:            file.write(&#171;a &#8212; \u0440\u0430\u0431\u043e\u0442\u0430, ek &#8212; \u043a\u0438\u043d\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u044d\u043d\u0435\u0440\u0433\u0438\u044f, n &#8212; \u041a\u041f\u0414, l &#8212; \u0442\u0430\u0431\u043b\u0438\u0446\u0430 L, q &#8212; \u0442\u0435\u043f\u043b\u043e\u0442\u0430, m &#8212; \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u044c, f &#8212; \u0441\u0438\u043b\u0430, \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440, \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0446\u0438\u044f, c\u043a\u043e\u0440\u043e\u0441\u0442\u044c &#8212; \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438.\\n&#187;)        print(&#171;\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0430 \u0432 \u0444\u0430\u0439\u043b.&#187;)\u041d\u0443 \u0438 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u043b\u0435\u0437 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440(\u044f \u0431\u0435\u0437 \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u043e\u043d \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u0442), \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0444\u0443\u043d\u043a\u0446\u0438\u044e calc. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0447\u0442\u043e \u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0447\u0438\u0441\u0435\u043b, \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0432 float(\u043d\u0443 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u043b\u044e\u0431\u043e\u0439, \u0447\u0435\u0433\u043e \u044d\u0442\u043e \u044f)\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u201ccalc\u201ddef calc():    try:        char1 = float(input(&#171;: &#171;))                sim = input(&#171;: &#171;)                char2 = float(input(&#171;: &#171;))        if sim == &#8216;+&#8217;:            res = char1 + char2                        print(f&#187;{char1:.3f} + {char2:.3f} = {res:.3f}&#187;)            var4 = input(&#171;\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): &#171;).upper()            if var4 == &#8216;Y&#8217;:                with open(&#171;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041f\u0420\u0418\u0411\u0410\u0412\u041b\u0415\u041d\u0418\u042f.txt&#187;, &#171;a&#187;, encoding=&#187;utf-8&#8243;) as file:                    file.write(f&#187;{char1:.3f} + {char2:.3f} = {res:.3f}\\n&#187;)        elif sim == &#8216;*&#8217;:            res2 = char1 * char2                      print(f&#187;{char1:.3f} * {char2:.3f} = {res2:.3f}&#187;)            var3 = input(&#171;\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): &#171;).upper()            if var3 == &#8216;Y&#8217;:                with open(&#171;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u0423\u041c\u041d\u041e\u0416\u0415\u041d\u0418\u042f.txt&#187;, &#171;a&#187;, encoding=&#187;utf-8&#8243;) as file:                    file.write(f&#187;{char1:.3f} * {char2:.3f} = {res2:.3f}\\n&#187;)        elif sim == &#8216;\/&#8217;:            res3 = char1 \/ char2                        print(f&#187;{char1:.3f} \/ {char2:.3f} = {res3:.3f}&#187;)            var2 = input(&#171;\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): &#171;).upper()            if var2 == &#8216;Y&#8217;:                with open(&#171;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u0414\u0415\u041b\u0415\u041d\u0418\u042f.txt&#187;, &#171;a&#187;, encoding=&#187;utf-8&#8243;) as file:                    file.write(f&#187;{char1:.3f} \/ {char2:.3f} = {res3:.3f}\\n&#187;)                print(&#171;\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e&#187;)        elif sim == &#8216;%&#8217;:            res4 = char1 * 100                       print(f&#187;{char1:.2f} = {res4:.2f}%&#187;)            var1 = input(&#171;\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): &#171;).upper()            if var1 == &#8216;Y&#8217;:                with open(&#171;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041f\u0420\u041e\u0426\u0415\u041d\u0422\u041e\u0412.txt&#187;, &#171;a&#187;, encoding=&#187;utf-8&#8243;) as file:                    file.write(f&#187;{char1:.2f} = {res4:.2f}%\\n&#187;)                print(&#171;\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e!&#187;)        elif sim == &#8216;-&#8216;:            res5 = char1 &#8212; char2            print(f&#187;{char1:.3f} &#8212; {char2:.3f} = {res5:.3f}&#187;)            var6 = input(&#171;\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435?(Y\/N): &#171;).upper()            if var6 == &#8216;Y&#8217;:                with open(&#171;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u0412\u042b\u0427\u0418\u0422\u0410\u041d\u0418\u042f.txt&#187;, &#171;a&#187;, encoding=&#187;utf-8&#8243;) as file:                    file.write(f&#187;{char1:.3f} &#8212; {char2:.3f} = {res5:.3f}\\n&#187;)    except Exception as e:        print(f&#187;\u041e\u0428\u0418\u0411\u041a\u0410 &#8212; {e}&#187;)\u0418\u0442\u0430\u043a, \u043a\u043e\u0433\u0434\u0430 \u044f \u0443\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0432\u0430\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043c\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430, \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u0432\u0430\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443\u043b\u0443 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430. \u0422\u043e \u0435\u0441\u0442\u044c, \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b, \u0441\u043e\u043d, \u0435\u0433\u043e \u043c\u0430\u0441\u0441\u0430 \u0438 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442. \u0412\u044b \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u0435 \u043a\u0430\u043a \u043c\u0430\u0441\u0441\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u043c\u043e\u0437\u0433\u043e\u043c? \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u044f \u043c\u043e\u0433\u0443 \u0431\u044b\u0442\u044c 120 \u043a\u0433, \u043d\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f. \u0422\u043e\u0436\u0435 \u0432\u0435\u0440\u043d\u043e! \u041d\u043e \u043c\u044b \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0442\u043e\u043c \u0447\u0442\u043e \u0432\u0435\u0441 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442, \u043c\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043b\u0438\u0448\u044c \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432. \u0414\u0430\u043b\u0435\u0435 \u0432 \u044d\u0442\u043e\u0439 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u0435\u0441\u0442\u044c iq. \u041d\u0443 \u0434\u0430, \u043f\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0432 \u0441\u0432\u043e\u0439 iq \u0438 \u0431\u044b\u0442\u044c \u0433\u0435\u043d\u0438\u0435\u043c, \u043d\u043e \u0431\u0435\u0437 \u0441\u043d\u0430, \u0443\u0447\u0435\u0431\u044b \u0438 \u0440\u0430\u0431\u043e\u0442\u044b iq \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0439\u0434\u0435\u0442 \u043a\u043e\u0442\u0443 \u043f\u043e\u0434 \u0445\u0432\u043e\u0441\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u044d\u0442\u0443 \u0444\u043e\u0440\u043c\u0443\u043b\u0443. \u0417\u0432\u0443\u0447\u0438\u0442 \u043a\u0430\u043a \u0431\u0440\u0435\u0434 \u043d\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0441\u0430\u043c\u0438!\u0424\u043e\u0440\u043c\u0443\u043b\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0437\u0433\u0430 (Ebr)\u0414\u043b\u044f \u0447\u0435\u0433\u043e (S\/2)? \u0414\u043b\u044f \u0442\u0430\u043a \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0448\u0442\u0440\u0430\u0444\u0430 \u0437\u0430 \u0441\u043e\u043d, \u043b\u0438\u0431\u043e \u0436\u0435 \u0435\u0441\u043b\u0438 \u043c\u044b \u043d\u0435 \u043f\u043e\u0441\u043f\u0430\u043b\u0438 8 \u0447\u0430\u0441\u043e\u0432, \u0438\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u0442\u043e \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0438\u043c \u043d\u0430 2. \u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043f\u0430\u043b\u0438 6 \u0447\u0430\u0441\u043e\u0432 \u043d\u0430 4, \u043f\u043e\u0441\u043f\u0430\u043b\u0438 4 \u0434\u0435\u043b\u0438\u043c \u043d\u0430 6. \u0418\u0442\u043e\u0433\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0434\u0432\u0443\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0435, \u0438\u043b\u0438 \u0442\u0440\u0435\u0445\u0437\u043d\u0430\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e. \u041d\u043e \u043a\u0430\u043a \u043f\u043e\u0442\u043e\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u0430\u043a\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u043c\u043e\u0439 \u043c\u043e\u0437\u0433? \u041b\u0435\u0433\u043a\u043e. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432\u044b\u0448\u043b\u043e \u043c\u0435\u043d\u044c\u0448\u0435 100, \u0442\u043e \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0432\u044b \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u0437\u0438\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044c. \u0414\u0430, \u0433\u043e\u0440\u044c\u043a\u0430\u044f \u043f\u0440\u0430\u0432\u0434\u0430. \u0415\u0441\u043b\u0438 100, \u0442\u043e \u0432\u044b \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a, \u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0438 \u0443\u0447\u0435\u0431\u0443 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044f\u0441\u044c \u0447\u0435\u043c \u0442\u043e \u043b\u0438\u0448\u043d\u0438\u043c \u0432 \u0432\u0430\u0448\u0435\u0439 \u0436\u0438\u0437\u043d\u0438. \u0415\u0441\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 100 \u0438\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 200 \u043f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u044f\u044e! \u0412\u044b \u0440\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u0433\u0435\u043d\u0438\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u044f\u0433\u043e\u0439, \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0448\u0430\u043d\u0441\u044b \u043d\u0430 \u0442\u043e \u0447\u0442\u043e \u0431\u044b \u0441\u0442\u0430\u0442\u044c \u0437\u043d\u0430\u043c\u0435\u043d\u0438\u0442\u044b\u043c, \u0438\u043b\u0438 \u0431\u043e\u0433\u0430\u0442\u044b\u043c. \u0418 \u043a\u0441\u0442\u0430\u0442\u0438 \u0434\u0430\u043d\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443\u043b\u0443 \u044f \u0442\u043e\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c.\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u0440\u043e\u0432\u043d\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438def Pm():    try:        m = float(input(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043c\u0430\u0441\u0441\u0443: &#171;))            i = float(input(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0430\u0439\u043a\u044c\u044e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430(\u0435\u0441\u043b\u0438 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 50 \u0435\u0434 \u0442\u0443\u043f\u043e\u0439 &#8212; 100 \u0435\u0434 \u0443\u043c\u043d\u044b\u0439.): &#171;))                workh = float(input(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430(\u0443\u0447\u0435\u0431\u0430, \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430): &#171;))                sleph = float(input(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432 \u0441\u043f\u0438\u0442 \u0447\u0435\u043b\u043e\u0432\u0435\u043a: &#171;))            io = input(&#171;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043c\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430: &#171;)                sleep_penalty = 2**(sleph \/ 8) \/ 2                c = 300000            base_pm = (m * c * i) \/ 100000000                final_score = (base_pm * workh) * sleep_penalty                                    print(f&#187;\u041e\u0442\u0447\u0435\u0442 \u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0437\u0433\u0430 {io.upper():&lt;27}&#187;)                print(f&#187;\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f {base_pm:&lt;28}%&#187;)                print(f&#187;\u041a\u043e\u044d\u0444\u0438\u0446\u0435\u043d\u0442 \u0411\u043e\u0434\u0440\u043e\u0441\u0442\u0438 &#8212; {sleep_penalty:&lt;32}%&#187;)                print(f&#187;\u0418\u0422\u041e\u0413\u041e\u0412\u0410\u042f \u041f\u0420\u041e\u0414\u0423\u041a\u0422\u0418\u0412\u041d\u041e\u0421\u0422\u042c: {final_score:&lt;28}%&#187;)                kml = input(&#171;\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432 \u0431\u043b\u043e\u043a\u043d\u043e\u0442\u0435?(Y\/N): &#171;).upper()        if kml == &#8216;Y&#8217;:            with open(&#171;\u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u042b \u041f\u0420\u041e\u0414\u0423\u041a\u0422\u0418\u0412\u041d\u041e\u0421\u0422\u0418 \u0427\u0415\u041b\u041e\u0412\u0415\u041a\u0410.txt&#187;, &#171;a&#187;, encoding=&#187;utf-8&#8243;) as file:                file.write(f&#187;\u041e\u0442\u0447\u0435\u0442 \u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0437\u0433\u0430 {io.upper()}&#187;)                file.write(f&#187;\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f {base_pm}%&#187;)                file.write(f&#187;\u041a\u043e\u044d\u0444\u0438\u0446\u0435\u043d\u0442 \u0411\u043e\u0434\u0440\u043e\u0441\u0442\u0438 &#8212; {sleep_penalty}%&#187;)                file.write(f&#187;\u0418\u0422\u041e\u0413\u041e\u0412\u0410\u042f \u041f\u0420\u041e\u0414\u0423\u041a\u0422\u0418\u0412\u041d\u041e\u0421\u0422\u042c: {final_score}%&#187;)                file.write(&#171;-&#187; * 30 + &#171;\\n&#187;)            print(&#171;\u0423\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u043d\u0435\u0441\u0435\u043d\u043e \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043b\u043e\u0433.&#187;)   &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-476475","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/476475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=476475"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/476475\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=476475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=476475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=476475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}