{"action":"created","comment":{"url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/comments/170462633","pull_request_review_id":99151782,"id":170462633,"diff_hunk":"@@ -1,11 +1,110 @@\n #!/usr/bin/env python3\n-\n+##########################SERIES1###############################################\n+'''Create a list that contains “Apples”, “Pears”, “Oranges” and “Peaches”.'''\n fruitlist = ['Apples', 'Pears', 'Oranges','Peaches']\n \n+'''Display the list (plain old print() is fine…).'''\n print(fruitlist)\n+\n+'''Ask the user for another fruit and add it to the end of the list.'''\n response = input(\"Please enter a fruit to add to the list > \")\n fruitlist.append(response)\n+\n+'''Display the list.'''\n+print(\"New list with appended fruit > \"+response)\n print(fruitlist)\n+print('')\n \n+'''Ask the user for a number and display the number back to the user and\n+    the fruit corresponding to that number (on a 1-is-first basis).\n+    Remember that Python uses zero-based indexing, so you will need to correct.'''\n response = input(\"Please enter the number of the fruit of the list to display > \")\n-print(\"fruit \" + response + \" : \" + fruitlist[int(response)-1])\n+print(\"you selected fruit \" + response + \" : \" + fruitlist[int(response)-1])\n+\n+'''Add another fruit to the beginning of the list using “+”\n+and display the list.'''\n+fruitlist = ['banana'] + fruitlist\n+print(\"New list with banana added as first element: \")\n+print(fruitlist)\n+print('')\n+\n+'''Add another fruit to the beginning of the list using insert()\n+and display the list.'''\n+fruitlist.insert(0, 'Cherries')\n+print(\"New list with Cherries added as first element: \")\n+print(fruitlist)\n+print('')\n+\n+'''Display all the fruits that begin with “P”, using a for loop.'''\n+print(\"Now we display all fruits starting with a P\")\n+for fruits in fruitlist:\n+    if fruits[0] == 'P' or fruits[0] == 'p':","path":"students/JeroenSweerts/Lesson3/List_Lab_Exercise.py","position":43,"original_position":43,"commit_id":"bcbc057d2225f7f1cc256ed16e2bc89aebfeaef8","original_commit_id":"bcbc057d2225f7f1cc256ed16e2bc89aebfeaef8","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":"you could also do \r\n\r\n`if fruits[0].lower() == 'p'` or `if fruits[0].lower().startswith('p')`","created_at":"2018-02-25T18:48:45Z","updated_at":"2018-02-25T18:53:37Z","html_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/197#discussion_r170462633","pull_request_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/197","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/comments/170462633"},"html":{"href":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/197#discussion_r170462633"},"pull_request":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/197"}}},"pull_request":{"url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/197","id":171226988,"html_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/197","diff_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/197.diff","patch_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/197.patch","issue_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/197","number":197,"state":"open","locked":false,"title":"first commit for List Lab excercise","user":{"login":"JeroenSweerts","id":22294734,"avatar_url":"https://avatars2.githubusercontent.com/u/22294734?v=4","gravatar_id":"","url":"https://api.github.com/users/JeroenSweerts","html_url":"https://github.com/JeroenSweerts","followers_url":"https://api.github.com/users/JeroenSweerts/followers","following_url":"https://api.github.com/users/JeroenSweerts/following{/other_user}","gists_url":"https://api.github.com/users/JeroenSweerts/gists{/gist_id}","starred_url":"https://api.github.com/users/JeroenSweerts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeroenSweerts/subscriptions","organizations_url":"https://api.github.com/users/JeroenSweerts/orgs","repos_url":"https://api.github.com/users/JeroenSweerts/repos","events_url":"https://api.github.com/users/JeroenSweerts/events{/privacy}","received_events_url":"https://api.github.com/users/JeroenSweerts/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nPlease review my code for the List Lab Exercise. I tried to make the file name all lowercase letters as recommended, but somehow it still shows up in camel case in the GitHub repository.\r\n\r\nThanks.\r\n\r\nBest regards,\r\n\r\nJeroen\r\n","created_at":"2018-02-25T12:09:17Z","updated_at":"2018-02-25T18:53:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b501dbce3feb87ba05e5c2f8ed1c55ab15ec60f1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/197/commits","review_comments_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/197/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/197/comments","statuses_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/statuses/bcbc057d2225f7f1cc256ed16e2bc89aebfeaef8","head":{"label":"JeroenSweerts:master","ref":"master","sha":"bcbc057d2225f7f1cc256ed16e2bc89aebfeaef8","user":{"login":"JeroenSweerts","id":22294734,"avatar_url":"https://avatars2.githubusercontent.com/u/22294734?v=4","gravatar_id":"","url":"https://api.github.com/users/JeroenSweerts","html_url":"https://github.com/JeroenSweerts","followers_url":"https://api.github.com/users/JeroenSweerts/followers","following_url":"https://api.github.com/users/JeroenSweerts/following{/other_user}","gists_url":"https://api.github.com/users/JeroenSweerts/gists{/gist_id}","starred_url":"https://api.github.com/users/JeroenSweerts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeroenSweerts/subscriptions","organizations_url":"https://api.github.com/users/JeroenSweerts/orgs","repos_url":"https://api.github.com/users/JeroenSweerts/repos","events_url":"https://api.github.com/users/JeroenSweerts/events{/privacy}","received_events_url":"https://api.github.com/users/JeroenSweerts/received_events","type":"User","site_admin":false},"repo":{"id":120131931,"name":"Self_Paced-Online","full_name":"JeroenSweerts/Self_Paced-Online","owner":{"login":"JeroenSweerts","id":22294734,"avatar_url":"https://avatars2.githubusercontent.com/u/22294734?v=4","gravatar_id":"","url":"https://api.github.com/users/JeroenSweerts","html_url":"https://github.com/JeroenSweerts","followers_url":"https://api.github.com/users/JeroenSweerts/followers","following_url":"https://api.github.com/users/JeroenSweerts/following{/other_user}","gists_url":"https://api.github.com/users/JeroenSweerts/gists{/gist_id}","starred_url":"https://api.github.com/users/JeroenSweerts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeroenSweerts/subscriptions","organizations_url":"https://api.github.com/users/JeroenSweerts/orgs","repos_url":"https://api.github.com/users/JeroenSweerts/repos","events_url":"https://api.github.com/users/JeroenSweerts/events{/privacy}","received_events_url":"https://api.github.com/users/JeroenSweerts/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JeroenSweerts/Self_Paced-Online","description":"Class repository for the self paced online class","fork":true,"url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online","forks_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/forks","keys_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/teams","hooks_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/hooks","issue_events_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/issues/events{/number}","events_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/events","assignees_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/assignees{/user}","branches_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/branches{/branch}","tags_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/tags","blobs_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/git/refs{/sha}","trees_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/statuses/{sha}","languages_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/languages","stargazers_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/stargazers","contributors_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/contributors","subscribers_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/subscribers","subscription_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/subscription","commits_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/commits{/sha}","git_commits_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/git/commits{/sha}","comments_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/comments{/number}","issue_comment_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/issues/comments{/number}","contents_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/contents/{+path}","compare_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/merges","archive_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/downloads","issues_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/issues{/number}","pulls_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/pulls{/number}","milestones_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/milestones{/number}","notifications_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/labels{/name}","releases_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/releases{/id}","deployments_url":"https://api.github.com/repos/JeroenSweerts/Self_Paced-Online/deployments","created_at":"2018-02-03T21:38:11Z","updated_at":"2018-02-03T21:38:12Z","pushed_at":"2018-02-25T12:04:26Z","git_url":"git://github.com/JeroenSweerts/Self_Paced-Online.git","ssh_url":"git@github.com:JeroenSweerts/Self_Paced-Online.git","clone_url":"https://github.com/JeroenSweerts/Self_Paced-Online.git","svn_url":"https://github.com/JeroenSweerts/Self_Paced-Online","homepage":null,"size":1051,"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":"ed757813a58e910cc03de05c107a2b42561f7f53","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-02-21T02:18:11Z","pushed_at":"2018-02-25T18:36:25Z","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":1061,"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":40,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":40,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/197"},"html":{"href":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/197"},"issue":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/197"},"comments":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/197/comments"},"review_comments":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/197/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/197/commits"},"statuses":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/statuses/bcbc057d2225f7f1cc256ed16e2bc89aebfeaef8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"natasha-aleksandrova"}}