payload: {"action":"created","comment":{"url":"https://api.github.com/repos/gaebar/python-by-example-exercises/pulls/comments/350634073","pull_request_review_id":322843609,"id":350634073,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM1MDYzNDA3Mw==","diff_hunk":"@@ -0,0 +1,36 @@\n+### RANDOM CHALLENGE ###\n+\n+\"\"\"\n+059  \n+Display five colours and ask the user to pick one. \n+If they pick the same as the program has chosen, say \"Well done\", \n+otherwise display a witty answer which involves the correct colour, e.g. \"I bet you are GREEN with envy\" or \n+\"Your probably feeling BLUE right now\". Ask them to guess again;\n+if they have still not got it right, keep giving them the same clue \n+and ask the user to enter a colour until they guess it correctly.\n+\"\"\"\n+import random\n+computer_choice = random.choice([\"red\", \"blue\", \"green\", \"yellow\", \"orange\"])\n+print(\"Pick one of this colours: red, blue, green, yellow, orange\")","path":"exercises/random/challenge-059.py","position":14,"original_position":14,"commit_id":"02a334be94a6a502ed8512d81a4b6e7dd10053e3","original_commit_id":"02a334be94a6a502ed8512d81a4b6e7dd10053e3","user":{"login":"rrees","id":7312,"node_id":"MDQ6VXNlcjczMTI=","avatar_url":"https://avatars0.githubusercontent.com/u/7312?v=4","gravatar_id":"","url":"https://api.github.com/users/rrees","html_url":"https://github.com/rrees","followers_url":"https://api.github.com/users/rrees/followers","following_url":"https://api.github.com/users/rrees/following{/other_user}","gists_url":"https://api.github.com/users/rrees/gists{/gist_id}","starred_url":"https://api.github.com/users/rrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrees/subscriptions","organizations_url":"https://api.github.com/users/rrees/orgs","repos_url":"https://api.github.com/users/rrees/repos","events_url":"https://api.github.com/users/rrees/events{/privacy}","received_events_url":"https://api.github.com/users/rrees/received_events","type":"User","site_admin":false},"body":"Avoid the repetition here by re-using the list of colours","created_at":"2019-11-26T09:46:02Z","updated_at":"2019-11-26T09:50:27Z","html_url":"https://github.com/gaebar/python-by-example-exercises/pull/1#discussion_r350634073","pull_request_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/gaebar/python-by-example-exercises/pulls/comments/350634073"},"html":{"href":"https://github.com/gaebar/python-by-example-exercises/pull/1#discussion_r350634073"},"pull_request":{"href":"https://api.github.com/repos/gaebar/python-by-example-exercises/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/gaebar/python-by-example-exercises/pulls/1","id":342272838,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQyMjcyODM4","html_url":"https://github.com/gaebar/python-by-example-exercises/pull/1","diff_url":"https://github.com/gaebar/python-by-example-exercises/pull/1.diff","patch_url":"https://github.com/gaebar/python-by-example-exercises/pull/1.patch","issue_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/issues/1","number":1,"state":"open","locked":false,"title":"completed random challenges","user":{"login":"gaebar","id":26930492,"node_id":"MDQ6VXNlcjI2OTMwNDky","avatar_url":"https://avatars0.githubusercontent.com/u/26930492?v=4","gravatar_id":"","url":"https://api.github.com/users/gaebar","html_url":"https://github.com/gaebar","followers_url":"https://api.github.com/users/gaebar/followers","following_url":"https://api.github.com/users/gaebar/following{/other_user}","gists_url":"https://api.github.com/users/gaebar/gists{/gist_id}","starred_url":"https://api.github.com/users/gaebar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaebar/subscriptions","organizations_url":"https://api.github.com/users/gaebar/orgs","repos_url":"https://api.github.com/users/gaebar/repos","events_url":"https://api.github.com/users/gaebar/events{/privacy}","received_events_url":"https://api.github.com/users/gaebar/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-11-18T17:31:21Z","updated_at":"2019-11-26T09:50:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"068e5f5576915bf9e72f55204e1931fd31ee1c5d","assignee":{"login":"gaebar","id":26930492,"node_id":"MDQ6VXNlcjI2OTMwNDky","avatar_url":"https://avatars0.githubusercontent.com/u/26930492?v=4","gravatar_id":"","url":"https://api.github.com/users/gaebar","html_url":"https://github.com/gaebar","followers_url":"https://api.github.com/users/gaebar/followers","following_url":"https://api.github.com/users/gaebar/following{/other_user}","gists_url":"https://api.github.com/users/gaebar/gists{/gist_id}","starred_url":"https://api.github.com/users/gaebar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaebar/subscriptions","organizations_url":"https://api.github.com/users/gaebar/orgs","repos_url":"https://api.github.com/users/gaebar/repos","events_url":"https://api.github.com/users/gaebar/events{/privacy}","received_events_url":"https://api.github.com/users/gaebar/received_events","type":"User","site_admin":false},"assignees":[{"login":"gaebar","id":26930492,"node_id":"MDQ6VXNlcjI2OTMwNDky","avatar_url":"https://avatars0.githubusercontent.com/u/26930492?v=4","gravatar_id":"","url":"https://api.github.com/users/gaebar","html_url":"https://github.com/gaebar","followers_url":"https://api.github.com/users/gaebar/followers","following_url":"https://api.github.com/users/gaebar/following{/other_user}","gists_url":"https://api.github.com/users/gaebar/gists{/gist_id}","starred_url":"https://api.github.com/users/gaebar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaebar/subscriptions","organizations_url":"https://api.github.com/users/gaebar/orgs","repos_url":"https://api.github.com/users/gaebar/repos","events_url":"https://api.github.com/users/gaebar/events{/privacy}","received_events_url":"https://api.github.com/users/gaebar/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/pulls/1/commits","review_comments_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/pulls/1/comments","review_comment_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/issues/1/comments","statuses_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/statuses/02a334be94a6a502ed8512d81a4b6e7dd10053e3","head":{"label":"gaebar:dev","ref":"dev","sha":"02a334be94a6a502ed8512d81a4b6e7dd10053e3","user":{"login":"gaebar","id":26930492,"node_id":"MDQ6VXNlcjI2OTMwNDky","avatar_url":"https://avatars0.githubusercontent.com/u/26930492?v=4","gravatar_id":"","url":"https://api.github.com/users/gaebar","html_url":"https://github.com/gaebar","followers_url":"https://api.github.com/users/gaebar/followers","following_url":"https://api.github.com/users/gaebar/following{/other_user}","gists_url":"https://api.github.com/users/gaebar/gists{/gist_id}","starred_url":"https://api.github.com/users/gaebar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaebar/subscriptions","organizations_url":"https://api.github.com/users/gaebar/orgs","repos_url":"https://api.github.com/users/gaebar/repos","events_url":"https://api.github.com/users/gaebar/events{/privacy}","received_events_url":"https://api.github.com/users/gaebar/received_events","type":"User","site_admin":false},"repo":{"id":221077976,"node_id":"MDEwOlJlcG9zaXRvcnkyMjEwNzc5NzY=","name":"python-by-example-exercises","full_name":"gaebar/python-by-example-exercises","private":false,"owner":{"login":"gaebar","id":26930492,"node_id":"MDQ6VXNlcjI2OTMwNDky","avatar_url":"https://avatars0.githubusercontent.com/u/26930492?v=4","gravatar_id":"","url":"https://api.github.com/users/gaebar","html_url":"https://github.com/gaebar","followers_url":"https://api.github.com/users/gaebar/followers","following_url":"https://api.github.com/users/gaebar/following{/other_user}","gists_url":"https://api.github.com/users/gaebar/gists{/gist_id}","starred_url":"https://api.github.com/users/gaebar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaebar/subscriptions","organizations_url":"https://api.github.com/users/gaebar/orgs","repos_url":"https://api.github.com/users/gaebar/repos","events_url":"https://api.github.com/users/gaebar/events{/privacy}","received_events_url":"https://api.github.com/users/gaebar/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gaebar/python-by-example-exercises","description":"Solutions for the challenges from the book 'Python By Example' by Nichola Lacey","fork":false,"url":"https://api.github.com/repos/gaebar/python-by-example-exercises","forks_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/forks","keys_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/teams","hooks_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/hooks","issue_events_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/issues/events{/number}","events_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/events","assignees_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/assignees{/user}","branches_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/branches{/branch}","tags_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/tags","blobs_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/languages","stargazers_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/stargazers","contributors_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/contributors","subscribers_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/subscribers","subscription_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/subscription","commits_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/issues/comments{/number}","contents_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/contents/{+path}","compare_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/merges","archive_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/downloads","issues_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/issues{/number}","pulls_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/labels{/name}","releases_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/releases{/id}","deployments_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/deployments","created_at":"2019-11-11T22:00:43Z","updated_at":"2019-11-16T20:57:59Z","pushed_at":"2019-11-25T21:49:00Z","git_url":"git://github.com/gaebar/python-by-example-exercises.git","ssh_url":"git@github.com:gaebar/python-by-example-exercises.git","clone_url":"https://github.com/gaebar/python-by-example-exercises.git","svn_url":"https://github.com/gaebar/python-by-example-exercises","homepage":"","size":31,"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,"disabled":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"gaebar:master","ref":"master","sha":"d811d6fafb2e7344f6537521b2d4341e90a0f19d","user":{"login":"gaebar","id":26930492,"node_id":"MDQ6VXNlcjI2OTMwNDky","avatar_url":"https://avatars0.githubusercontent.com/u/26930492?v=4","gravatar_id":"","url":"https://api.github.com/users/gaebar","html_url":"https://github.com/gaebar","followers_url":"https://api.github.com/users/gaebar/followers","following_url":"https://api.github.com/users/gaebar/following{/other_user}","gists_url":"https://api.github.com/users/gaebar/gists{/gist_id}","starred_url":"https://api.github.com/users/gaebar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaebar/subscriptions","organizations_url":"https://api.github.com/users/gaebar/orgs","repos_url":"https://api.github.com/users/gaebar/repos","events_url":"https://api.github.com/users/gaebar/events{/privacy}","received_events_url":"https://api.github.com/users/gaebar/received_events","type":"User","site_admin":false},"repo":{"id":221077976,"node_id":"MDEwOlJlcG9zaXRvcnkyMjEwNzc5NzY=","name":"python-by-example-exercises","full_name":"gaebar/python-by-example-exercises","private":false,"owner":{"login":"gaebar","id":26930492,"node_id":"MDQ6VXNlcjI2OTMwNDky","avatar_url":"https://avatars0.githubusercontent.com/u/26930492?v=4","gravatar_id":"","url":"https://api.github.com/users/gaebar","html_url":"https://github.com/gaebar","followers_url":"https://api.github.com/users/gaebar/followers","following_url":"https://api.github.com/users/gaebar/following{/other_user}","gists_url":"https://api.github.com/users/gaebar/gists{/gist_id}","starred_url":"https://api.github.com/users/gaebar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaebar/subscriptions","organizations_url":"https://api.github.com/users/gaebar/orgs","repos_url":"https://api.github.com/users/gaebar/repos","events_url":"https://api.github.com/users/gaebar/events{/privacy}","received_events_url":"https://api.github.com/users/gaebar/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gaebar/python-by-example-exercises","description":"Solutions for the challenges from the book 'Python By Example' by Nichola Lacey","fork":false,"url":"https://api.github.com/repos/gaebar/python-by-example-exercises","forks_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/forks","keys_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/teams","hooks_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/hooks","issue_events_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/issues/events{/number}","events_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/events","assignees_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/assignees{/user}","branches_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/branches{/branch}","tags_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/tags","blobs_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/languages","stargazers_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/stargazers","contributors_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/contributors","subscribers_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/subscribers","subscription_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/subscription","commits_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/issues/comments{/number}","contents_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/contents/{+path}","compare_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/merges","archive_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/downloads","issues_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/issues{/number}","pulls_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/labels{/name}","releases_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/releases{/id}","deployments_url":"https://api.github.com/repos/gaebar/python-by-example-exercises/deployments","created_at":"2019-11-11T22:00:43Z","updated_at":"2019-11-16T20:57:59Z","pushed_at":"2019-11-25T21:49:00Z","git_url":"git://github.com/gaebar/python-by-example-exercises.git","ssh_url":"git@github.com:gaebar/python-by-example-exercises.git","clone_url":"https://github.com/gaebar/python-by-example-exercises.git","svn_url":"https://github.com/gaebar/python-by-example-exercises","homepage":"","size":31,"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,"disabled":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gaebar/python-by-example-exercises/pulls/1"},"html":{"href":"https://github.com/gaebar/python-by-example-exercises/pull/1"},"issue":{"href":"https://api.github.com/repos/gaebar/python-by-example-exercises/issues/1"},"comments":{"href":"https://api.github.com/repos/gaebar/python-by-example-exercises/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/gaebar/python-by-example-exercises/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/gaebar/python-by-example-exercises/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gaebar/python-by-example-exercises/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/gaebar/python-by-example-exercises/statuses/02a334be94a6a502ed8512d81a4b6e7dd10053e3"}},"author_association":"OWNER"}}
other: {"actor":{"display_login":"rrees"}}