{"action":"created","comment":{"url":"https://api.github.com/repos/pybites/challenges/pulls/comments/223612615","pull_request_review_id":162779447,"id":223612615,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzYxMjYxNQ==","diff_hunk":"@@ -0,0 +1,102 @@\n+#!python3\n+# Code Challenge 02 - Word Values Part II - a simple game\n+# http://pybit.es/codechallenge02.html\n+\n+import itertools\n+import random\n+import string\n+\n+from data import DICTIONARY, LETTER_SCORES, POUCH\n+\n+NUM_LETTERS = 7\n+\n+\n+def draw_letters():\n+    \"\"\"Pick NUM_LETTERS letters randomly. Hint: use stdlib random\"\"\"\n+    letters = []\n+    for i in range(0, NUM_LETTERS):\n+        letters.append(random.choice(string.ascii_uppercase))","path":"02/demarcoz/game.py","position":18,"original_position":18,"commit_id":"faf5b362531eee66a7905812a5e95efe5e4f0f86","original_commit_id":"faf5b362531eee66a7905812a5e95efe5e4f0f86","user":{"login":"pybites","id":24620154,"node_id":"MDQ6VXNlcjI0NjIwMTU0","avatar_url":"https://avatars3.githubusercontent.com/u/24620154?v=4","gravatar_id":"","url":"https://api.github.com/users/pybites","html_url":"https://github.com/pybites","followers_url":"https://api.github.com/users/pybites/followers","following_url":"https://api.github.com/users/pybites/following{/other_user}","gists_url":"https://api.github.com/users/pybites/gists{/gist_id}","starred_url":"https://api.github.com/users/pybites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pybites/subscriptions","organizations_url":"https://api.github.com/users/pybites/orgs","repos_url":"https://api.github.com/users/pybites/repos","events_url":"https://api.github.com/users/pybites/events{/privacy}","received_events_url":"https://api.github.com/users/pybites/received_events","type":"User","site_admin":false},"body":"great, you can also use `yield` omitting the temp list","created_at":"2018-10-09T08:56:06Z","updated_at":"2018-10-09T08:56:06Z","html_url":"https://github.com/pybites/challenges/pull/338#discussion_r223612615","pull_request_url":"https://api.github.com/repos/pybites/challenges/pulls/338","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/pybites/challenges/pulls/comments/223612615"},"html":{"href":"https://github.com/pybites/challenges/pull/338#discussion_r223612615"},"pull_request":{"href":"https://api.github.com/repos/pybites/challenges/pulls/338"}}},"pull_request":{"url":"https://api.github.com/repos/pybites/challenges/pulls/338","id":219976388,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5OTc2Mzg4","html_url":"https://github.com/pybites/challenges/pull/338","diff_url":"https://github.com/pybites/challenges/pull/338.diff","patch_url":"https://github.com/pybites/challenges/pull/338.patch","issue_url":"https://api.github.com/repos/pybites/challenges/issues/338","number":338,"state":"open","locked":false,"title":"PCC02 demarcoz","user":{"login":"demarcoz","id":969189,"node_id":"MDQ6VXNlcjk2OTE4OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/969189?v=4","gravatar_id":"","url":"https://api.github.com/users/demarcoz","html_url":"https://github.com/demarcoz","followers_url":"https://api.github.com/users/demarcoz/followers","following_url":"https://api.github.com/users/demarcoz/following{/other_user}","gists_url":"https://api.github.com/users/demarcoz/gists{/gist_id}","starred_url":"https://api.github.com/users/demarcoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demarcoz/subscriptions","organizations_url":"https://api.github.com/users/demarcoz/orgs","repos_url":"https://api.github.com/users/demarcoz/repos","events_url":"https://api.github.com/users/demarcoz/events{/privacy}","received_events_url":"https://api.github.com/users/demarcoz/received_events","type":"User","site_admin":false},"body":"Difficulty level (1-10): [5]\r\nEstimated time spent (hours): [1]\r\nCompleted (yes/no): [Yes]\r\nI stretched my coding skills (if yes what did you learn?): [Learned about itertools.permutations.]\r\nOther feedback (what can we improve?): []\r\n","created_at":"2018-10-03T09:51:20Z","updated_at":"2018-10-09T08:56:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c37366f3f0370bd6386b27bdff77262d1b0ed16b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pybites/challenges/pulls/338/commits","review_comments_url":"https://api.github.com/repos/pybites/challenges/pulls/338/comments","review_comment_url":"https://api.github.com/repos/pybites/challenges/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pybites/challenges/issues/338/comments","statuses_url":"https://api.github.com/repos/pybites/challenges/statuses/faf5b362531eee66a7905812a5e95efe5e4f0f86","head":{"label":"demarcoz:PCC02","ref":"PCC02","sha":"faf5b362531eee66a7905812a5e95efe5e4f0f86","user":{"login":"demarcoz","id":969189,"node_id":"MDQ6VXNlcjk2OTE4OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/969189?v=4","gravatar_id":"","url":"https://api.github.com/users/demarcoz","html_url":"https://github.com/demarcoz","followers_url":"https://api.github.com/users/demarcoz/followers","following_url":"https://api.github.com/users/demarcoz/following{/other_user}","gists_url":"https://api.github.com/users/demarcoz/gists{/gist_id}","starred_url":"https://api.github.com/users/demarcoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demarcoz/subscriptions","organizations_url":"https://api.github.com/users/demarcoz/orgs","repos_url":"https://api.github.com/users/demarcoz/repos","events_url":"https://api.github.com/users/demarcoz/events{/privacy}","received_events_url":"https://api.github.com/users/demarcoz/received_events","type":"User","site_admin":false},"repo":{"id":151219589,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEyMTk1ODk=","name":"challenges","full_name":"demarcoz/challenges","private":false,"owner":{"login":"demarcoz","id":969189,"node_id":"MDQ6VXNlcjk2OTE4OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/969189?v=4","gravatar_id":"","url":"https://api.github.com/users/demarcoz","html_url":"https://github.com/demarcoz","followers_url":"https://api.github.com/users/demarcoz/followers","following_url":"https://api.github.com/users/demarcoz/following{/other_user}","gists_url":"https://api.github.com/users/demarcoz/gists{/gist_id}","starred_url":"https://api.github.com/users/demarcoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demarcoz/subscriptions","organizations_url":"https://api.github.com/users/demarcoz/orgs","repos_url":"https://api.github.com/users/demarcoz/repos","events_url":"https://api.github.com/users/demarcoz/events{/privacy}","received_events_url":"https://api.github.com/users/demarcoz/received_events","type":"User","site_admin":false},"html_url":"https://github.com/demarcoz/challenges","description":"PyBites Code Challenges","fork":true,"url":"https://api.github.com/repos/demarcoz/challenges","forks_url":"https://api.github.com/repos/demarcoz/challenges/forks","keys_url":"https://api.github.com/repos/demarcoz/challenges/keys{/key_id}","collaborators_url":"https://api.github.com/repos/demarcoz/challenges/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/demarcoz/challenges/teams","hooks_url":"https://api.github.com/repos/demarcoz/challenges/hooks","issue_events_url":"https://api.github.com/repos/demarcoz/challenges/issues/events{/number}","events_url":"https://api.github.com/repos/demarcoz/challenges/events","assignees_url":"https://api.github.com/repos/demarcoz/challenges/assignees{/user}","branches_url":"https://api.github.com/repos/demarcoz/challenges/branches{/branch}","tags_url":"https://api.github.com/repos/demarcoz/challenges/tags","blobs_url":"https://api.github.com/repos/demarcoz/challenges/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/demarcoz/challenges/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/demarcoz/challenges/git/refs{/sha}","trees_url":"https://api.github.com/repos/demarcoz/challenges/git/trees{/sha}","statuses_url":"https://api.github.com/repos/demarcoz/challenges/statuses/{sha}","languages_url":"https://api.github.com/repos/demarcoz/challenges/languages","stargazers_url":"https://api.github.com/repos/demarcoz/challenges/stargazers","contributors_url":"https://api.github.com/repos/demarcoz/challenges/contributors","subscribers_url":"https://api.github.com/repos/demarcoz/challenges/subscribers","subscription_url":"https://api.github.com/repos/demarcoz/challenges/subscription","commits_url":"https://api.github.com/repos/demarcoz/challenges/commits{/sha}","git_commits_url":"https://api.github.com/repos/demarcoz/challenges/git/commits{/sha}","comments_url":"https://api.github.com/repos/demarcoz/challenges/comments{/number}","issue_comment_url":"https://api.github.com/repos/demarcoz/challenges/issues/comments{/number}","contents_url":"https://api.github.com/repos/demarcoz/challenges/contents/{+path}","compare_url":"https://api.github.com/repos/demarcoz/challenges/compare/{base}...{head}","merges_url":"https://api.github.com/repos/demarcoz/challenges/merges","archive_url":"https://api.github.com/repos/demarcoz/challenges/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/demarcoz/challenges/downloads","issues_url":"https://api.github.com/repos/demarcoz/challenges/issues{/number}","pulls_url":"https://api.github.com/repos/demarcoz/challenges/pulls{/number}","milestones_url":"https://api.github.com/repos/demarcoz/challenges/milestones{/number}","notifications_url":"https://api.github.com/repos/demarcoz/challenges/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/demarcoz/challenges/labels{/name}","releases_url":"https://api.github.com/repos/demarcoz/challenges/releases{/id}","deployments_url":"https://api.github.com/repos/demarcoz/challenges/deployments","created_at":"2018-10-02T07:53:38Z","updated_at":"2018-10-02T07:53:40Z","pushed_at":"2018-10-04T18:00:13Z","git_url":"git://github.com/demarcoz/challenges.git","ssh_url":"git@github.com:demarcoz/challenges.git","clone_url":"https://github.com/demarcoz/challenges.git","svn_url":"https://github.com/demarcoz/challenges","homepage":"https://codechalleng.es/challenges/","size":30974,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pybites:community","ref":"community","sha":"5afbfc61a81f8e3d3cfa9813378d4634d634beee","user":{"login":"pybites","id":24620154,"node_id":"MDQ6VXNlcjI0NjIwMTU0","avatar_url":"https://avatars3.githubusercontent.com/u/24620154?v=4","gravatar_id":"","url":"https://api.github.com/users/pybites","html_url":"https://github.com/pybites","followers_url":"https://api.github.com/users/pybites/followers","following_url":"https://api.github.com/users/pybites/following{/other_user}","gists_url":"https://api.github.com/users/pybites/gists{/gist_id}","starred_url":"https://api.github.com/users/pybites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pybites/subscriptions","organizations_url":"https://api.github.com/users/pybites/orgs","repos_url":"https://api.github.com/users/pybites/repos","events_url":"https://api.github.com/users/pybites/events{/privacy}","received_events_url":"https://api.github.com/users/pybites/received_events","type":"User","site_admin":false},"repo":{"id":78264928,"node_id":"MDEwOlJlcG9zaXRvcnk3ODI2NDkyOA==","name":"challenges","full_name":"pybites/challenges","private":false,"owner":{"login":"pybites","id":24620154,"node_id":"MDQ6VXNlcjI0NjIwMTU0","avatar_url":"https://avatars3.githubusercontent.com/u/24620154?v=4","gravatar_id":"","url":"https://api.github.com/users/pybites","html_url":"https://github.com/pybites","followers_url":"https://api.github.com/users/pybites/followers","following_url":"https://api.github.com/users/pybites/following{/other_user}","gists_url":"https://api.github.com/users/pybites/gists{/gist_id}","starred_url":"https://api.github.com/users/pybites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pybites/subscriptions","organizations_url":"https://api.github.com/users/pybites/orgs","repos_url":"https://api.github.com/users/pybites/repos","events_url":"https://api.github.com/users/pybites/events{/privacy}","received_events_url":"https://api.github.com/users/pybites/received_events","type":"User","site_admin":false},"html_url":"https://github.com/pybites/challenges","description":"PyBites Code Challenges","fork":false,"url":"https://api.github.com/repos/pybites/challenges","forks_url":"https://api.github.com/repos/pybites/challenges/forks","keys_url":"https://api.github.com/repos/pybites/challenges/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pybites/challenges/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pybites/challenges/teams","hooks_url":"https://api.github.com/repos/pybites/challenges/hooks","issue_events_url":"https://api.github.com/repos/pybites/challenges/issues/events{/number}","events_url":"https://api.github.com/repos/pybites/challenges/events","assignees_url":"https://api.github.com/repos/pybites/challenges/assignees{/user}","branches_url":"https://api.github.com/repos/pybites/challenges/branches{/branch}","tags_url":"https://api.github.com/repos/pybites/challenges/tags","blobs_url":"https://api.github.com/repos/pybites/challenges/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pybites/challenges/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pybites/challenges/git/refs{/sha}","trees_url":"https://api.github.com/repos/pybites/challenges/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pybites/challenges/statuses/{sha}","languages_url":"https://api.github.com/repos/pybites/challenges/languages","stargazers_url":"https://api.github.com/repos/pybites/challenges/stargazers","contributors_url":"https://api.github.com/repos/pybites/challenges/contributors","subscribers_url":"https://api.github.com/repos/pybites/challenges/subscribers","subscription_url":"https://api.github.com/repos/pybites/challenges/subscription","commits_url":"https://api.github.com/repos/pybites/challenges/commits{/sha}","git_commits_url":"https://api.github.com/repos/pybites/challenges/git/commits{/sha}","comments_url":"https://api.github.com/repos/pybites/challenges/comments{/number}","issue_comment_url":"https://api.github.com/repos/pybites/challenges/issues/comments{/number}","contents_url":"https://api.github.com/repos/pybites/challenges/contents/{+path}","compare_url":"https://api.github.com/repos/pybites/challenges/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pybites/challenges/merges","archive_url":"https://api.github.com/repos/pybites/challenges/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pybites/challenges/downloads","issues_url":"https://api.github.com/repos/pybites/challenges/issues{/number}","pulls_url":"https://api.github.com/repos/pybites/challenges/pulls{/number}","milestones_url":"https://api.github.com/repos/pybites/challenges/milestones{/number}","notifications_url":"https://api.github.com/repos/pybites/challenges/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pybites/challenges/labels{/name}","releases_url":"https://api.github.com/repos/pybites/challenges/releases{/id}","deployments_url":"https://api.github.com/repos/pybites/challenges/deployments","created_at":"2017-01-07T07:17:50Z","updated_at":"2018-10-09T07:48:04Z","pushed_at":"2018-10-09T08:55:31Z","git_url":"git://github.com/pybites/challenges.git","ssh_url":"git@github.com:pybites/challenges.git","clone_url":"https://github.com/pybites/challenges.git","svn_url":"https://github.com/pybites/challenges","homepage":"https://codechalleng.es/challenges/","size":30980,"stargazers_count":343,"watchers_count":343,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1076,"mirror_url":null,"archived":false,"open_issues_count":46,"license":null,"forks":1076,"open_issues":46,"watchers":343,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pybites/challenges/pulls/338"},"html":{"href":"https://github.com/pybites/challenges/pull/338"},"issue":{"href":"https://api.github.com/repos/pybites/challenges/issues/338"},"comments":{"href":"https://api.github.com/repos/pybites/challenges/issues/338/comments"},"review_comments":{"href":"https://api.github.com/repos/pybites/challenges/pulls/338/comments"},"review_comment":{"href":"https://api.github.com/repos/pybites/challenges/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pybites/challenges/pulls/338/commits"},"statuses":{"href":"https://api.github.com/repos/pybites/challenges/statuses/faf5b362531eee66a7905812a5e95efe5e4f0f86"}},"author_association":"NONE"}}
{"actor":{"display_login":"pybites"}}