{"action":"created","comment":{"url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/comments/167101380","pull_request_review_id":95269754,"id":167101380,"diff_hunk":"@@ -0,0 +1,81 @@\n+#!/usr/bin/env python3\n+\n+\n+\n+#series 1\n+list1 =  [\"Apples\", \"Pears\", \"Oranges\" , \"Peaches\"]\n+print(list1)\n+fruit1 = input(\"Tell me a fruit you like > \")\n+list1.append(fruit1)\n+print(list1)\n+num1 = int(input(\"Now, tell me a numer you like between 1 to {} > \".format(len(list1))))\n+while num1<0 or num1 > len(list1):\n+    num1 = int(input(\"Please pick up a number between 1 to {} \".format(len(list1))))\n+print(\"Okay, seems the number you choose are {}, and the fruit corresponding to that number is {}\".format(num1, list1[num1-1]))\n+fruit1 = input(\"Tell me another fruit you like> \")\n+list1 = [fruit1] + list1\n+print(\"The list now is : \", list1)\n+fruit1 = input(\"Okay, now the last fruit you would like to choose> \")\n+list1.insert(0,fruit1)\n+print(\"The list now is : \", list1)\n+print(\"the fruit stating with letter 'P' is \")\n+for fruit in list1:\n+    if fruit[0] == 'P' or fruit[0] == 'p':\n+        print(fruit)\n+\n+# series 2\n+# Multiply the list times two. Keep asking until a match is found.\n+# User can type both the names of the fruit of the corresponding number\n+# Once found, delete all occurrences\n+# series 2\n+\n+list2 =  list1*2\n+\n+print(\"the fruit list now is: \", list2)\n+list2.pop()\n+print(\"I'm gonna take away the last one in the list, and the fruit list now is: \", list2)\n+\n+retry = True\n+\n+while retry:\n+    print(\"please pickup a fruit you want to remove from the list,\")\n+    num2 = input(\"You can type the name of the corresponding number > \")\n+    for fruitinlist in list2:\n+        if fruitinlist == num2:\n+            list2.remove(num2)\n+            retry = False\n+    if num2.isdigit():\n+        if int(num2)>=0 and int(num2)<=len(list2):\n+            rmfruit = list2[int(num2)-1]\n+            for fruitinlist in list2:\n+                if fruitinlist == rmfruit:\n+                    list2.remove(rmfruit)","path":"students/ZhuojingXie/lesson03/list_lab.py","position":52,"original_position":52,"commit_id":"f818393149ad291a8b0fc76ce7b4faeb68836005","original_commit_id":"f818393149ad291a8b0fc76ce7b4faeb68836005","user":{"login":"natasha-aleksandrova","id":1928658,"avatar_url":"https://avatars2.githubusercontent.com/u/1928658?v=4","gravatar_id":"","url":"https://api.github.com/users/natasha-aleksandrova","html_url":"https://github.com/natasha-aleksandrova","followers_url":"https://api.github.com/users/natasha-aleksandrova/followers","following_url":"https://api.github.com/users/natasha-aleksandrova/following{/other_user}","gists_url":"https://api.github.com/users/natasha-aleksandrova/gists{/gist_id}","starred_url":"https://api.github.com/users/natasha-aleksandrova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natasha-aleksandrova/subscriptions","organizations_url":"https://api.github.com/users/natasha-aleksandrova/orgs","repos_url":"https://api.github.com/users/natasha-aleksandrova/repos","events_url":"https://api.github.com/users/natasha-aleksandrova/events{/privacy}","received_events_url":"https://api.github.com/users/natasha-aleksandrova/received_events","type":"User","site_admin":false},"body":"note that this could have been made into a function as it is the same for / if stmts as a little bit above","created_at":"2018-02-08T23:36:15Z","updated_at":"2018-02-08T23:49:01Z","html_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/97#discussion_r167101380","pull_request_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/97","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/comments/167101380"},"html":{"href":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/97#discussion_r167101380"},"pull_request":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/97","id":167897862,"html_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/97","diff_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/97.diff","patch_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/97.patch","issue_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/97","number":97,"state":"open","locked":false,"title":"Lesson3 excercise","user":{"login":"ZhuojingXie","id":36093584,"avatar_url":"https://avatars1.githubusercontent.com/u/36093584?v=4","gravatar_id":"","url":"https://api.github.com/users/ZhuojingXie","html_url":"https://github.com/ZhuojingXie","followers_url":"https://api.github.com/users/ZhuojingXie/followers","following_url":"https://api.github.com/users/ZhuojingXie/following{/other_user}","gists_url":"https://api.github.com/users/ZhuojingXie/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhuojingXie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhuojingXie/subscriptions","organizations_url":"https://api.github.com/users/ZhuojingXie/orgs","repos_url":"https://api.github.com/users/ZhuojingXie/repos","events_url":"https://api.github.com/users/ZhuojingXie/events{/privacy}","received_events_url":"https://api.github.com/users/ZhuojingXie/received_events","type":"User","site_admin":false},"body":"lesson03 exercise finished. \r\n\r\nPlease let me know some suggestions or feedback about how to improve my code. I can do the homework by myself. However I am pretty sure my code isn't look \"beautiful\". In a lot of case I know there is a better way to achieve, however I can only use the most silly way because I don't know how to write it in a more efficient way .","created_at":"2018-02-08T07:42:12Z","updated_at":"2018-02-08T23:49:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"697a83ff9b82f8a5d1525de2a991ab4d7a1aebbf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/97/commits","review_comments_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/97/comments","review_comment_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/97/comments","statuses_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/statuses/f818393149ad291a8b0fc76ce7b4faeb68836005","head":{"label":"ZhuojingXie:master","ref":"master","sha":"f818393149ad291a8b0fc76ce7b4faeb68836005","user":{"login":"ZhuojingXie","id":36093584,"avatar_url":"https://avatars1.githubusercontent.com/u/36093584?v=4","gravatar_id":"","url":"https://api.github.com/users/ZhuojingXie","html_url":"https://github.com/ZhuojingXie","followers_url":"https://api.github.com/users/ZhuojingXie/followers","following_url":"https://api.github.com/users/ZhuojingXie/following{/other_user}","gists_url":"https://api.github.com/users/ZhuojingXie/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhuojingXie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhuojingXie/subscriptions","organizations_url":"https://api.github.com/users/ZhuojingXie/orgs","repos_url":"https://api.github.com/users/ZhuojingXie/repos","events_url":"https://api.github.com/users/ZhuojingXie/events{/privacy}","received_events_url":"https://api.github.com/users/ZhuojingXie/received_events","type":"User","site_admin":false},"repo":{"id":120055461,"name":"Self_Paced-Online","full_name":"ZhuojingXie/Self_Paced-Online","owner":{"login":"ZhuojingXie","id":36093584,"avatar_url":"https://avatars1.githubusercontent.com/u/36093584?v=4","gravatar_id":"","url":"https://api.github.com/users/ZhuojingXie","html_url":"https://github.com/ZhuojingXie","followers_url":"https://api.github.com/users/ZhuojingXie/followers","following_url":"https://api.github.com/users/ZhuojingXie/following{/other_user}","gists_url":"https://api.github.com/users/ZhuojingXie/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhuojingXie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhuojingXie/subscriptions","organizations_url":"https://api.github.com/users/ZhuojingXie/orgs","repos_url":"https://api.github.com/users/ZhuojingXie/repos","events_url":"https://api.github.com/users/ZhuojingXie/events{/privacy}","received_events_url":"https://api.github.com/users/ZhuojingXie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZhuojingXie/Self_Paced-Online","description":"Class repository for the self paced online class","fork":true,"url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online","forks_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/forks","keys_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/teams","hooks_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/hooks","issue_events_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/issues/events{/number}","events_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/events","assignees_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/assignees{/user}","branches_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/branches{/branch}","tags_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/tags","blobs_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/statuses/{sha}","languages_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/languages","stargazers_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/stargazers","contributors_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/contributors","subscribers_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/subscribers","subscription_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/subscription","commits_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/contents/{+path}","compare_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/merges","archive_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/downloads","issues_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/issues{/number}","pulls_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/pulls{/number}","milestones_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/milestones{/number}","notifications_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/labels{/name}","releases_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/releases{/id}","deployments_url":"https://api.github.com/repos/ZhuojingXie/Self_Paced-Online/deployments","created_at":"2018-02-03T03:19:20Z","updated_at":"2018-02-03T03:19:21Z","pushed_at":"2018-02-08T07:33:11Z","git_url":"git://github.com/ZhuojingXie/Self_Paced-Online.git","ssh_url":"git@github.com:ZhuojingXie/Self_Paced-Online.git","clone_url":"https://github.com/ZhuojingXie/Self_Paced-Online.git","svn_url":"https://github.com/ZhuojingXie/Self_Paced-Online","homepage":null,"size":265,"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":"UWPCE-PythonCert-ClassRepos:master","ref":"master","sha":"ed89e864330bf33b0d81052922d06cea18a40127","user":{"login":"UWPCE-PythonCert-ClassRepos","id":34701012,"avatar_url":"https://avatars0.githubusercontent.com/u/34701012?v=4","gravatar_id":"","url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos","html_url":"https://github.com/UWPCE-PythonCert-ClassRepos","followers_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/followers","following_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/following{/other_user}","gists_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/gists{/gist_id}","starred_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/subscriptions","organizations_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/orgs","repos_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/repos","events_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/events{/privacy}","received_events_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/received_events","type":"Organization","site_admin":false},"repo":{"id":115212391,"name":"Self_Paced-Online","full_name":"UWPCE-PythonCert-ClassRepos/Self_Paced-Online","owner":{"login":"UWPCE-PythonCert-ClassRepos","id":34701012,"avatar_url":"https://avatars0.githubusercontent.com/u/34701012?v=4","gravatar_id":"","url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos","html_url":"https://github.com/UWPCE-PythonCert-ClassRepos","followers_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/followers","following_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/following{/other_user}","gists_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/gists{/gist_id}","starred_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/subscriptions","organizations_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/orgs","repos_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/repos","events_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/events{/privacy}","received_events_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online","description":"Class repository for the self paced online class","fork":false,"url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online","forks_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/forks","keys_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/teams","hooks_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/hooks","issue_events_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/events{/number}","events_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/events","assignees_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/assignees{/user}","branches_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/branches{/branch}","tags_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/tags","blobs_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/git/refs{/sha}","trees_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/statuses/{sha}","languages_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/languages","stargazers_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/stargazers","contributors_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/contributors","subscribers_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/subscribers","subscription_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/subscription","commits_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/commits{/sha}","git_commits_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/git/commits{/sha}","comments_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/comments{/number}","issue_comment_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/comments{/number}","contents_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/contents/{+path}","compare_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/merges","archive_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/downloads","issues_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues{/number}","pulls_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls{/number}","milestones_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/milestones{/number}","notifications_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/labels{/name}","releases_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/releases{/id}","deployments_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/deployments","created_at":"2017-12-23T17:52:41Z","updated_at":"2018-01-27T18:50:31Z","pushed_at":"2018-02-08T23:39:16Z","git_url":"git://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online.git","ssh_url":"git@github.com:UWPCE-PythonCert-ClassRepos/Self_Paced-Online.git","clone_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online.git","svn_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online","homepage":null,"size":284,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":31,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/97"},"html":{"href":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/97"},"issue":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/97"},"comments":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/statuses/f818393149ad291a8b0fc76ce7b4faeb68836005"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"natasha-aleksandrova"}}