{"action":"created","comment":{"url":"https://api.github.com/repos/SpiretEv/gb_algo/pulls/comments/205982290","pull_request_review_id":141355518,"id":205982290,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTk4MjI5MA==","diff_hunk":"@@ -0,0 +1,33 @@\n+#1. Пользователь вводит данные о количестве предприятий, их наименования и прибыль за 4 квартала для каждого\n+#  предприятия. Программа должна определить среднюю прибыль (за год для всех предприятий) и вывести наименования\n+# предприятий, чья прибыль выше среднего и отдельно вывести наименования предприятий, чья прибыль ниже среднего.\n+\n+#Примечание: 4 квартала - это 4 разных прибыли ;-)\n+\n+\n+\n+number_of_enterprise = int(input('введите кол-во предприятий: '))\n+\n+manufacture = dict()\n+mediana = list()\n+\n+\n+for i in range(1, number_of_enterprise + 1):\n+    manufacture[input('введите имя предпрития: ')] = sum(\n+        [int(input(f'введите прибыль за {x} квартал: ')) for x in range(1, 5)])\n+\n+for i in manufacture.values():\n+    mediana.append(i)\n+\n+mediana = sum(mediana)/ number_of_enterprise\n+\n+for man, s in manufacture.items():\n+    if s > mediana:","path":"gb_1_5.py","position":25,"original_position":25,"commit_id":"b234bdbb92ba0a7acb15333a97c41961cbe71b07","original_commit_id":"b234bdbb92ba0a7acb15333a97c41961cbe71b07","user":{"login":"Dzhoker1","id":31956448,"node_id":"MDQ6VXNlcjMxOTU2NDQ4","avatar_url":"https://avatars2.githubusercontent.com/u/31956448?v=4","gravatar_id":"","url":"https://api.github.com/users/Dzhoker1","html_url":"https://github.com/Dzhoker1","followers_url":"https://api.github.com/users/Dzhoker1/followers","following_url":"https://api.github.com/users/Dzhoker1/following{/other_user}","gists_url":"https://api.github.com/users/Dzhoker1/gists{/gist_id}","starred_url":"https://api.github.com/users/Dzhoker1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dzhoker1/subscriptions","organizations_url":"https://api.github.com/users/Dzhoker1/orgs","repos_url":"https://api.github.com/users/Dzhoker1/repos","events_url":"https://api.github.com/users/Dzhoker1/events{/privacy}","received_events_url":"https://api.github.com/users/Dzhoker1/received_events","type":"User","site_admin":false},"body":"При такой проверке во второй вывод попадут те, у кого прибыль равна средней.","created_at":"2018-07-29T17:55:30Z","updated_at":"2018-07-29T17:55:45Z","html_url":"https://github.com/SpiretEv/gb_algo/pull/4#discussion_r205982290","pull_request_url":"https://api.github.com/repos/SpiretEv/gb_algo/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/SpiretEv/gb_algo/pulls/comments/205982290"},"html":{"href":"https://github.com/SpiretEv/gb_algo/pull/4#discussion_r205982290"},"pull_request":{"href":"https://api.github.com/repos/SpiretEv/gb_algo/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/SpiretEv/gb_algo/pulls/4","id":204652091,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NjUyMDkx","html_url":"https://github.com/SpiretEv/gb_algo/pull/4","diff_url":"https://github.com/SpiretEv/gb_algo/pull/4.diff","patch_url":"https://github.com/SpiretEv/gb_algo/pull/4.patch","issue_url":"https://api.github.com/repos/SpiretEv/gb_algo/issues/4","number":4,"state":"open","locked":false,"title":"новое задание","user":{"login":"SpiretEv","id":25823424,"node_id":"MDQ6VXNlcjI1ODIzNDI0","avatar_url":"https://avatars0.githubusercontent.com/u/25823424?v=4","gravatar_id":"","url":"https://api.github.com/users/SpiretEv","html_url":"https://github.com/SpiretEv","followers_url":"https://api.github.com/users/SpiretEv/followers","following_url":"https://api.github.com/users/SpiretEv/following{/other_user}","gists_url":"https://api.github.com/users/SpiretEv/gists{/gist_id}","starred_url":"https://api.github.com/users/SpiretEv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpiretEv/subscriptions","organizations_url":"https://api.github.com/users/SpiretEv/orgs","repos_url":"https://api.github.com/users/SpiretEv/repos","events_url":"https://api.github.com/users/SpiretEv/events{/privacy}","received_events_url":"https://api.github.com/users/SpiretEv/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-29T17:17:15Z","updated_at":"2018-07-29T17:55:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d0114d380a4d517f1f67d41b4439d9219c5a244","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SpiretEv/gb_algo/pulls/4/commits","review_comments_url":"https://api.github.com/repos/SpiretEv/gb_algo/pulls/4/comments","review_comment_url":"https://api.github.com/repos/SpiretEv/gb_algo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SpiretEv/gb_algo/issues/4/comments","statuses_url":"https://api.github.com/repos/SpiretEv/gb_algo/statuses/b234bdbb92ba0a7acb15333a97c41961cbe71b07","head":{"label":"SpiretEv:1","ref":"1","sha":"b234bdbb92ba0a7acb15333a97c41961cbe71b07","user":{"login":"SpiretEv","id":25823424,"node_id":"MDQ6VXNlcjI1ODIzNDI0","avatar_url":"https://avatars0.githubusercontent.com/u/25823424?v=4","gravatar_id":"","url":"https://api.github.com/users/SpiretEv","html_url":"https://github.com/SpiretEv","followers_url":"https://api.github.com/users/SpiretEv/followers","following_url":"https://api.github.com/users/SpiretEv/following{/other_user}","gists_url":"https://api.github.com/users/SpiretEv/gists{/gist_id}","starred_url":"https://api.github.com/users/SpiretEv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpiretEv/subscriptions","organizations_url":"https://api.github.com/users/SpiretEv/orgs","repos_url":"https://api.github.com/users/SpiretEv/repos","events_url":"https://api.github.com/users/SpiretEv/events{/privacy}","received_events_url":"https://api.github.com/users/SpiretEv/received_events","type":"User","site_admin":false},"repo":{"id":141035281,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEwMzUyODE=","name":"gb_algo","full_name":"SpiretEv/gb_algo","owner":{"login":"SpiretEv","id":25823424,"node_id":"MDQ6VXNlcjI1ODIzNDI0","avatar_url":"https://avatars0.githubusercontent.com/u/25823424?v=4","gravatar_id":"","url":"https://api.github.com/users/SpiretEv","html_url":"https://github.com/SpiretEv","followers_url":"https://api.github.com/users/SpiretEv/followers","following_url":"https://api.github.com/users/SpiretEv/following{/other_user}","gists_url":"https://api.github.com/users/SpiretEv/gists{/gist_id}","starred_url":"https://api.github.com/users/SpiretEv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpiretEv/subscriptions","organizations_url":"https://api.github.com/users/SpiretEv/orgs","repos_url":"https://api.github.com/users/SpiretEv/repos","events_url":"https://api.github.com/users/SpiretEv/events{/privacy}","received_events_url":"https://api.github.com/users/SpiretEv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SpiretEv/gb_algo","description":"gb_algo_learn","fork":false,"url":"https://api.github.com/repos/SpiretEv/gb_algo","forks_url":"https://api.github.com/repos/SpiretEv/gb_algo/forks","keys_url":"https://api.github.com/repos/SpiretEv/gb_algo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpiretEv/gb_algo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpiretEv/gb_algo/teams","hooks_url":"https://api.github.com/repos/SpiretEv/gb_algo/hooks","issue_events_url":"https://api.github.com/repos/SpiretEv/gb_algo/issues/events{/number}","events_url":"https://api.github.com/repos/SpiretEv/gb_algo/events","assignees_url":"https://api.github.com/repos/SpiretEv/gb_algo/assignees{/user}","branches_url":"https://api.github.com/repos/SpiretEv/gb_algo/branches{/branch}","tags_url":"https://api.github.com/repos/SpiretEv/gb_algo/tags","blobs_url":"https://api.github.com/repos/SpiretEv/gb_algo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpiretEv/gb_algo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpiretEv/gb_algo/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpiretEv/gb_algo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpiretEv/gb_algo/statuses/{sha}","languages_url":"https://api.github.com/repos/SpiretEv/gb_algo/languages","stargazers_url":"https://api.github.com/repos/SpiretEv/gb_algo/stargazers","contributors_url":"https://api.github.com/repos/SpiretEv/gb_algo/contributors","subscribers_url":"https://api.github.com/repos/SpiretEv/gb_algo/subscribers","subscription_url":"https://api.github.com/repos/SpiretEv/gb_algo/subscription","commits_url":"https://api.github.com/repos/SpiretEv/gb_algo/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpiretEv/gb_algo/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpiretEv/gb_algo/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpiretEv/gb_algo/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpiretEv/gb_algo/contents/{+path}","compare_url":"https://api.github.com/repos/SpiretEv/gb_algo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpiretEv/gb_algo/merges","archive_url":"https://api.github.com/repos/SpiretEv/gb_algo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpiretEv/gb_algo/downloads","issues_url":"https://api.github.com/repos/SpiretEv/gb_algo/issues{/number}","pulls_url":"https://api.github.com/repos/SpiretEv/gb_algo/pulls{/number}","milestones_url":"https://api.github.com/repos/SpiretEv/gb_algo/milestones{/number}","notifications_url":"https://api.github.com/repos/SpiretEv/gb_algo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpiretEv/gb_algo/labels{/name}","releases_url":"https://api.github.com/repos/SpiretEv/gb_algo/releases{/id}","deployments_url":"https://api.github.com/repos/SpiretEv/gb_algo/deployments","created_at":"2018-07-15T14:44:55Z","updated_at":"2018-07-16T02:28:40Z","pushed_at":"2018-07-29T17:17:15Z","git_url":"git://github.com/SpiretEv/gb_algo.git","ssh_url":"git@github.com:SpiretEv/gb_algo.git","clone_url":"https://github.com/SpiretEv/gb_algo.git","svn_url":"https://github.com/SpiretEv/gb_algo","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"SpiretEv:master","ref":"master","sha":"34a4db877f9853c1bb7404b393cccc9611c129a2","user":{"login":"SpiretEv","id":25823424,"node_id":"MDQ6VXNlcjI1ODIzNDI0","avatar_url":"https://avatars0.githubusercontent.com/u/25823424?v=4","gravatar_id":"","url":"https://api.github.com/users/SpiretEv","html_url":"https://github.com/SpiretEv","followers_url":"https://api.github.com/users/SpiretEv/followers","following_url":"https://api.github.com/users/SpiretEv/following{/other_user}","gists_url":"https://api.github.com/users/SpiretEv/gists{/gist_id}","starred_url":"https://api.github.com/users/SpiretEv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpiretEv/subscriptions","organizations_url":"https://api.github.com/users/SpiretEv/orgs","repos_url":"https://api.github.com/users/SpiretEv/repos","events_url":"https://api.github.com/users/SpiretEv/events{/privacy}","received_events_url":"https://api.github.com/users/SpiretEv/received_events","type":"User","site_admin":false},"repo":{"id":141035281,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEwMzUyODE=","name":"gb_algo","full_name":"SpiretEv/gb_algo","owner":{"login":"SpiretEv","id":25823424,"node_id":"MDQ6VXNlcjI1ODIzNDI0","avatar_url":"https://avatars0.githubusercontent.com/u/25823424?v=4","gravatar_id":"","url":"https://api.github.com/users/SpiretEv","html_url":"https://github.com/SpiretEv","followers_url":"https://api.github.com/users/SpiretEv/followers","following_url":"https://api.github.com/users/SpiretEv/following{/other_user}","gists_url":"https://api.github.com/users/SpiretEv/gists{/gist_id}","starred_url":"https://api.github.com/users/SpiretEv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpiretEv/subscriptions","organizations_url":"https://api.github.com/users/SpiretEv/orgs","repos_url":"https://api.github.com/users/SpiretEv/repos","events_url":"https://api.github.com/users/SpiretEv/events{/privacy}","received_events_url":"https://api.github.com/users/SpiretEv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SpiretEv/gb_algo","description":"gb_algo_learn","fork":false,"url":"https://api.github.com/repos/SpiretEv/gb_algo","forks_url":"https://api.github.com/repos/SpiretEv/gb_algo/forks","keys_url":"https://api.github.com/repos/SpiretEv/gb_algo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpiretEv/gb_algo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpiretEv/gb_algo/teams","hooks_url":"https://api.github.com/repos/SpiretEv/gb_algo/hooks","issue_events_url":"https://api.github.com/repos/SpiretEv/gb_algo/issues/events{/number}","events_url":"https://api.github.com/repos/SpiretEv/gb_algo/events","assignees_url":"https://api.github.com/repos/SpiretEv/gb_algo/assignees{/user}","branches_url":"https://api.github.com/repos/SpiretEv/gb_algo/branches{/branch}","tags_url":"https://api.github.com/repos/SpiretEv/gb_algo/tags","blobs_url":"https://api.github.com/repos/SpiretEv/gb_algo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpiretEv/gb_algo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpiretEv/gb_algo/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpiretEv/gb_algo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpiretEv/gb_algo/statuses/{sha}","languages_url":"https://api.github.com/repos/SpiretEv/gb_algo/languages","stargazers_url":"https://api.github.com/repos/SpiretEv/gb_algo/stargazers","contributors_url":"https://api.github.com/repos/SpiretEv/gb_algo/contributors","subscribers_url":"https://api.github.com/repos/SpiretEv/gb_algo/subscribers","subscription_url":"https://api.github.com/repos/SpiretEv/gb_algo/subscription","commits_url":"https://api.github.com/repos/SpiretEv/gb_algo/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpiretEv/gb_algo/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpiretEv/gb_algo/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpiretEv/gb_algo/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpiretEv/gb_algo/contents/{+path}","compare_url":"https://api.github.com/repos/SpiretEv/gb_algo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpiretEv/gb_algo/merges","archive_url":"https://api.github.com/repos/SpiretEv/gb_algo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpiretEv/gb_algo/downloads","issues_url":"https://api.github.com/repos/SpiretEv/gb_algo/issues{/number}","pulls_url":"https://api.github.com/repos/SpiretEv/gb_algo/pulls{/number}","milestones_url":"https://api.github.com/repos/SpiretEv/gb_algo/milestones{/number}","notifications_url":"https://api.github.com/repos/SpiretEv/gb_algo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpiretEv/gb_algo/labels{/name}","releases_url":"https://api.github.com/repos/SpiretEv/gb_algo/releases{/id}","deployments_url":"https://api.github.com/repos/SpiretEv/gb_algo/deployments","created_at":"2018-07-15T14:44:55Z","updated_at":"2018-07-16T02:28:40Z","pushed_at":"2018-07-29T17:17:15Z","git_url":"git://github.com/SpiretEv/gb_algo.git","ssh_url":"git@github.com:SpiretEv/gb_algo.git","clone_url":"https://github.com/SpiretEv/gb_algo.git","svn_url":"https://github.com/SpiretEv/gb_algo","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SpiretEv/gb_algo/pulls/4"},"html":{"href":"https://github.com/SpiretEv/gb_algo/pull/4"},"issue":{"href":"https://api.github.com/repos/SpiretEv/gb_algo/issues/4"},"comments":{"href":"https://api.github.com/repos/SpiretEv/gb_algo/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/SpiretEv/gb_algo/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/SpiretEv/gb_algo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SpiretEv/gb_algo/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/SpiretEv/gb_algo/statuses/b234bdbb92ba0a7acb15333a97c41961cbe71b07"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Dzhoker1"}}