{"action":"created","comment":{"url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/pulls/comments/218512238","pull_request_review_id":156467476,"id":218512238,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODUxMjIzOA==","diff_hunk":"@@ -40,10 +44,62 @@\n 71636269561882670428252483600823257530420752963450\"\"\"\n \n \n+def composition(num):\n+    comp = 1\n+    for i in num:\n+        comp *= int(i)\n+    return comp\n+\n+\n+print('Задание-2:')\n+number = re.sub(r'\\n', '', number)\n+max_comp = 0\n+for i in range(len(number) - 4):\n+    comp = 1\n+    numbers = re.match(r'\\d{5}', number).group()\n+    comp = composition(numbers)\n+    if comp > max_comp:\n+        max_num = numbers\n+        max_comp = comp\n+        max_i = i\n+    max_comp = max(max_comp, comp)","path":"lesson04/home_work/hw04_hard.py","position":45,"original_position":45,"commit_id":"b8d0a53709db7dee54b0e7556b36972b044ccaa7","original_commit_id":"b8d0a53709db7dee54b0e7556b36972b044ccaa7","user":{"login":"Osipchuk","id":27957207,"node_id":"MDQ6VXNlcjI3OTU3MjA3","avatar_url":"https://avatars1.githubusercontent.com/u/27957207?v=4","gravatar_id":"","url":"https://api.github.com/users/Osipchuk","html_url":"https://github.com/Osipchuk","followers_url":"https://api.github.com/users/Osipchuk/followers","following_url":"https://api.github.com/users/Osipchuk/following{/other_user}","gists_url":"https://api.github.com/users/Osipchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Osipchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osipchuk/subscriptions","organizations_url":"https://api.github.com/users/Osipchuk/orgs","repos_url":"https://api.github.com/users/Osipchuk/repos","events_url":"https://api.github.com/users/Osipchuk/events{/privacy}","received_events_url":"https://api.github.com/users/Osipchuk/received_events","type":"User","site_admin":false},"body":"Точно, забыл удалить","created_at":"2018-09-18T16:54:35Z","updated_at":"2018-09-18T16:54:35Z","html_url":"https://github.com/Osipchuk/Python-level-1-GeekBrains/pull/5#discussion_r218512238","pull_request_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/pulls/5","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/pulls/comments/218512238"},"html":{"href":"https://github.com/Osipchuk/Python-level-1-GeekBrains/pull/5#discussion_r218512238"},"pull_request":{"href":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/pulls/5"}},"in_reply_to_id":218511608},"pull_request":{"url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/pulls/5","id":216101042,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2MTAxMDQy","html_url":"https://github.com/Osipchuk/Python-level-1-GeekBrains/pull/5","diff_url":"https://github.com/Osipchuk/Python-level-1-GeekBrains/pull/5.diff","patch_url":"https://github.com/Osipchuk/Python-level-1-GeekBrains/pull/5.patch","issue_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/issues/5","number":5,"state":"open","locked":false,"title":"Home work lesson 4","user":{"login":"Osipchuk","id":27957207,"node_id":"MDQ6VXNlcjI3OTU3MjA3","avatar_url":"https://avatars1.githubusercontent.com/u/27957207?v=4","gravatar_id":"","url":"https://api.github.com/users/Osipchuk","html_url":"https://github.com/Osipchuk","followers_url":"https://api.github.com/users/Osipchuk/followers","following_url":"https://api.github.com/users/Osipchuk/following{/other_user}","gists_url":"https://api.github.com/users/Osipchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Osipchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osipchuk/subscriptions","organizations_url":"https://api.github.com/users/Osipchuk/orgs","repos_url":"https://api.github.com/users/Osipchuk/repos","events_url":"https://api.github.com/users/Osipchuk/events{/privacy}","received_events_url":"https://api.github.com/users/Osipchuk/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-17T20:14:14Z","updated_at":"2018-09-18T16:54:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ce1a929b1f81a3e86189f1bc1d96358845be735","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/issues/5/comments","statuses_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/statuses/b8d0a53709db7dee54b0e7556b36972b044ccaa7","head":{"label":"Osipchuk:Home_work_lesson_4","ref":"Home_work_lesson_4","sha":"b8d0a53709db7dee54b0e7556b36972b044ccaa7","user":{"login":"Osipchuk","id":27957207,"node_id":"MDQ6VXNlcjI3OTU3MjA3","avatar_url":"https://avatars1.githubusercontent.com/u/27957207?v=4","gravatar_id":"","url":"https://api.github.com/users/Osipchuk","html_url":"https://github.com/Osipchuk","followers_url":"https://api.github.com/users/Osipchuk/followers","following_url":"https://api.github.com/users/Osipchuk/following{/other_user}","gists_url":"https://api.github.com/users/Osipchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Osipchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osipchuk/subscriptions","organizations_url":"https://api.github.com/users/Osipchuk/orgs","repos_url":"https://api.github.com/users/Osipchuk/repos","events_url":"https://api.github.com/users/Osipchuk/events{/privacy}","received_events_url":"https://api.github.com/users/Osipchuk/received_events","type":"User","site_admin":false},"repo":{"id":147685757,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc2ODU3NTc=","name":"Python-level-1-GeekBrains","full_name":"Osipchuk/Python-level-1-GeekBrains","private":false,"owner":{"login":"Osipchuk","id":27957207,"node_id":"MDQ6VXNlcjI3OTU3MjA3","avatar_url":"https://avatars1.githubusercontent.com/u/27957207?v=4","gravatar_id":"","url":"https://api.github.com/users/Osipchuk","html_url":"https://github.com/Osipchuk","followers_url":"https://api.github.com/users/Osipchuk/followers","following_url":"https://api.github.com/users/Osipchuk/following{/other_user}","gists_url":"https://api.github.com/users/Osipchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Osipchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osipchuk/subscriptions","organizations_url":"https://api.github.com/users/Osipchuk/orgs","repos_url":"https://api.github.com/users/Osipchuk/repos","events_url":"https://api.github.com/users/Osipchuk/events{/privacy}","received_events_url":"https://api.github.com/users/Osipchuk/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Osipchuk/Python-level-1-GeekBrains","description":null,"fork":false,"url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains","forks_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/forks","keys_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/teams","hooks_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/hooks","issue_events_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/issues/events{/number}","events_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/events","assignees_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/assignees{/user}","branches_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/branches{/branch}","tags_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/tags","blobs_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/git/refs{/sha}","trees_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/statuses/{sha}","languages_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/languages","stargazers_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/stargazers","contributors_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/contributors","subscribers_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/subscribers","subscription_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/subscription","commits_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/commits{/sha}","git_commits_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/git/commits{/sha}","comments_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/comments{/number}","issue_comment_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/issues/comments{/number}","contents_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/contents/{+path}","compare_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/merges","archive_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/downloads","issues_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/issues{/number}","pulls_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/pulls{/number}","milestones_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/milestones{/number}","notifications_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/labels{/name}","releases_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/releases{/id}","deployments_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/deployments","created_at":"2018-09-06T14:24:43Z","updated_at":"2018-09-17T20:10:26Z","pushed_at":"2018-09-17T20:14:15Z","git_url":"git://github.com/Osipchuk/Python-level-1-GeekBrains.git","ssh_url":"git@github.com:Osipchuk/Python-level-1-GeekBrains.git","clone_url":"https://github.com/Osipchuk/Python-level-1-GeekBrains.git","svn_url":"https://github.com/Osipchuk/Python-level-1-GeekBrains","homepage":null,"size":109,"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":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Osipchuk:master","ref":"master","sha":"ec023840a9e54b1bcdbec89d723de0daa95ffafb","user":{"login":"Osipchuk","id":27957207,"node_id":"MDQ6VXNlcjI3OTU3MjA3","avatar_url":"https://avatars1.githubusercontent.com/u/27957207?v=4","gravatar_id":"","url":"https://api.github.com/users/Osipchuk","html_url":"https://github.com/Osipchuk","followers_url":"https://api.github.com/users/Osipchuk/followers","following_url":"https://api.github.com/users/Osipchuk/following{/other_user}","gists_url":"https://api.github.com/users/Osipchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Osipchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osipchuk/subscriptions","organizations_url":"https://api.github.com/users/Osipchuk/orgs","repos_url":"https://api.github.com/users/Osipchuk/repos","events_url":"https://api.github.com/users/Osipchuk/events{/privacy}","received_events_url":"https://api.github.com/users/Osipchuk/received_events","type":"User","site_admin":false},"repo":{"id":147685757,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc2ODU3NTc=","name":"Python-level-1-GeekBrains","full_name":"Osipchuk/Python-level-1-GeekBrains","private":false,"owner":{"login":"Osipchuk","id":27957207,"node_id":"MDQ6VXNlcjI3OTU3MjA3","avatar_url":"https://avatars1.githubusercontent.com/u/27957207?v=4","gravatar_id":"","url":"https://api.github.com/users/Osipchuk","html_url":"https://github.com/Osipchuk","followers_url":"https://api.github.com/users/Osipchuk/followers","following_url":"https://api.github.com/users/Osipchuk/following{/other_user}","gists_url":"https://api.github.com/users/Osipchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Osipchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osipchuk/subscriptions","organizations_url":"https://api.github.com/users/Osipchuk/orgs","repos_url":"https://api.github.com/users/Osipchuk/repos","events_url":"https://api.github.com/users/Osipchuk/events{/privacy}","received_events_url":"https://api.github.com/users/Osipchuk/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Osipchuk/Python-level-1-GeekBrains","description":null,"fork":false,"url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains","forks_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/forks","keys_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/teams","hooks_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/hooks","issue_events_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/issues/events{/number}","events_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/events","assignees_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/assignees{/user}","branches_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/branches{/branch}","tags_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/tags","blobs_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/git/refs{/sha}","trees_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/statuses/{sha}","languages_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/languages","stargazers_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/stargazers","contributors_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/contributors","subscribers_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/subscribers","subscription_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/subscription","commits_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/commits{/sha}","git_commits_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/git/commits{/sha}","comments_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/comments{/number}","issue_comment_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/issues/comments{/number}","contents_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/contents/{+path}","compare_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/merges","archive_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/downloads","issues_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/issues{/number}","pulls_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/pulls{/number}","milestones_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/milestones{/number}","notifications_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/labels{/name}","releases_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/releases{/id}","deployments_url":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/deployments","created_at":"2018-09-06T14:24:43Z","updated_at":"2018-09-17T20:10:26Z","pushed_at":"2018-09-17T20:14:15Z","git_url":"git://github.com/Osipchuk/Python-level-1-GeekBrains.git","ssh_url":"git@github.com:Osipchuk/Python-level-1-GeekBrains.git","clone_url":"https://github.com/Osipchuk/Python-level-1-GeekBrains.git","svn_url":"https://github.com/Osipchuk/Python-level-1-GeekBrains","homepage":null,"size":109,"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":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/pulls/5"},"html":{"href":"https://github.com/Osipchuk/Python-level-1-GeekBrains/pull/5"},"issue":{"href":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/issues/5"},"comments":{"href":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Osipchuk/Python-level-1-GeekBrains/statuses/b8d0a53709db7dee54b0e7556b36972b044ccaa7"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Osipchuk"}}