{"action":"created","comment":{"url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/comments/214233720","pull_request_review_id":151246075,"id":214233720,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDIzMzcyMA==","diff_hunk":"@@ -0,0 +1,122 @@\n+def thank_you():\n+    print('\\n''Ok, you chose 1, lets see what we can do.')\n+    while True:\n+        name = input('\\n''Type the full name to add entry, '\n+                     '\\'list\\' to see list of names, or \\'e\\' to exit: > ')\n+        # See if they want a list of names.\n+        if name != 'list':\n+            break\n+        for x in donors:\n+            print(x)\n+    # Add Name to list if not in list\n+    if name not in donors and name != 'e':\n+        print('Name is not there, added to the list')\n+        donors[name] = []\n+    if name != 'e':\n+        amount = input('\\n''What is the donation amount? or \\'e\\' to exit >')\n+        if amount != 'e':\n+            new_amount = [float(amount)]\n+            old_amount = donors[name]\n+            donors[name] = old_amount + new_amount\n+            print('Thank you so much for the generous gift of ${0:.2f}, {1}!'\n+                  .format(float(amount), name))\n+\n+\n+def report():\n+    print('\\n''A summary of your donors donations:')\n+    # Create a new dictionary with Total, number of donations,\n+    # and average donation amount\n+    donors_f = {}\n+    for name, donations in donors.items():\n+        # Calculate total donation amount\n+        total = 0\n+        count = 0\n+        average = 0\n+        i = 0\n+        for i in donations:\n+            total = total + i\n+        # Calculate total number of donations, not counting $0\n+        for i in donations:\n+            if i != 0:\n+                count = count + 1","path":"students/srepking/Lesson04/mailroom2.py","position":41,"original_position":41,"commit_id":"9e67a9c16bd0a0b4fd49f9d4d646fc7ddae170a7","original_commit_id":"9e67a9c16bd0a0b4fd49f9d4d646fc7ddae170a7","user":{"login":"srepking","id":42389685,"node_id":"MDQ6VXNlcjQyMzg5Njg1","avatar_url":"https://avatars1.githubusercontent.com/u/42389685?v=4","gravatar_id":"","url":"https://api.github.com/users/srepking","html_url":"https://github.com/srepking","followers_url":"https://api.github.com/users/srepking/followers","following_url":"https://api.github.com/users/srepking/following{/other_user}","gists_url":"https://api.github.com/users/srepking/gists{/gist_id}","starred_url":"https://api.github.com/users/srepking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srepking/subscriptions","organizations_url":"https://api.github.com/users/srepking/orgs","repos_url":"https://api.github.com/users/srepking/repos","events_url":"https://api.github.com/users/srepking/events{/privacy}","received_events_url":"https://api.github.com/users/srepking/received_events","type":"User","site_admin":false},"body":"I implemented the sum() function. However, I don't think the len() function will work for what I am doing. I am not counting donations of $0 as donations. If I use len(), I have to assume all numbers in my list are donations, and I thought that a donation of $0 should be disregarded. Or  is there another way to use len() I am overlooking? Thank you!","created_at":"2018-08-31T02:57:32Z","updated_at":"2018-08-31T02:57:33Z","html_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/932#discussion_r214233720","pull_request_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/932","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/comments/214233720"},"html":{"href":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/932#discussion_r214233720"},"pull_request":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/932"}},"in_reply_to_id":214216110},"pull_request":{"url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/932","id":211944823,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExOTQ0ODIz","html_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/932","diff_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/932.diff","patch_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/932.patch","issue_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/932","number":932,"state":"closed","locked":false,"title":"Lesson04 Mailroom and Kata Ready for Review","user":{"login":"srepking","id":42389685,"node_id":"MDQ6VXNlcjQyMzg5Njg1","avatar_url":"https://avatars1.githubusercontent.com/u/42389685?v=4","gravatar_id":"","url":"https://api.github.com/users/srepking","html_url":"https://github.com/srepking","followers_url":"https://api.github.com/users/srepking/followers","following_url":"https://api.github.com/users/srepking/following{/other_user}","gists_url":"https://api.github.com/users/srepking/gists{/gist_id}","starred_url":"https://api.github.com/users/srepking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srepking/subscriptions","organizations_url":"https://api.github.com/users/srepking/orgs","repos_url":"https://api.github.com/users/srepking/repos","events_url":"https://api.github.com/users/srepking/events{/privacy}","received_events_url":"https://api.github.com/users/srepking/received_events","type":"User","site_admin":false},"body":"Hi, \r\nPlease let me know if you want me to do more with the kata. I feel like I could really go down a rabbit hole working on punctuation and paragraphs and such.\r\n\r\nThanks!","created_at":"2018-08-30T03:26:06Z","updated_at":"2018-08-31T02:57:33Z","closed_at":"2018-08-31T00:17:27Z","merged_at":"2018-08-31T00:17:27Z","merge_commit_sha":"717b413207e2764c637ec9bf8b74ac476eecd826","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/932/commits","review_comments_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/932/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/932/comments","statuses_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/statuses/9e67a9c16bd0a0b4fd49f9d4d646fc7ddae170a7","head":{"label":"srepking:master","ref":"master","sha":"9e67a9c16bd0a0b4fd49f9d4d646fc7ddae170a7","user":{"login":"srepking","id":42389685,"node_id":"MDQ6VXNlcjQyMzg5Njg1","avatar_url":"https://avatars1.githubusercontent.com/u/42389685?v=4","gravatar_id":"","url":"https://api.github.com/users/srepking","html_url":"https://github.com/srepking","followers_url":"https://api.github.com/users/srepking/followers","following_url":"https://api.github.com/users/srepking/following{/other_user}","gists_url":"https://api.github.com/users/srepking/gists{/gist_id}","starred_url":"https://api.github.com/users/srepking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srepking/subscriptions","organizations_url":"https://api.github.com/users/srepking/orgs","repos_url":"https://api.github.com/users/srepking/repos","events_url":"https://api.github.com/users/srepking/events{/privacy}","received_events_url":"https://api.github.com/users/srepking/received_events","type":"User","site_admin":false},"repo":{"id":144764062,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ3NjQwNjI=","name":"Self_Paced-Online","full_name":"srepking/Self_Paced-Online","owner":{"login":"srepking","id":42389685,"node_id":"MDQ6VXNlcjQyMzg5Njg1","avatar_url":"https://avatars1.githubusercontent.com/u/42389685?v=4","gravatar_id":"","url":"https://api.github.com/users/srepking","html_url":"https://github.com/srepking","followers_url":"https://api.github.com/users/srepking/followers","following_url":"https://api.github.com/users/srepking/following{/other_user}","gists_url":"https://api.github.com/users/srepking/gists{/gist_id}","starred_url":"https://api.github.com/users/srepking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srepking/subscriptions","organizations_url":"https://api.github.com/users/srepking/orgs","repos_url":"https://api.github.com/users/srepking/repos","events_url":"https://api.github.com/users/srepking/events{/privacy}","received_events_url":"https://api.github.com/users/srepking/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/srepking/Self_Paced-Online","description":"Course 1 - Class repository for the self paced online class ","fork":true,"url":"https://api.github.com/repos/srepking/Self_Paced-Online","forks_url":"https://api.github.com/repos/srepking/Self_Paced-Online/forks","keys_url":"https://api.github.com/repos/srepking/Self_Paced-Online/keys{/key_id}","collaborators_url":"https://api.github.com/repos/srepking/Self_Paced-Online/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/srepking/Self_Paced-Online/teams","hooks_url":"https://api.github.com/repos/srepking/Self_Paced-Online/hooks","issue_events_url":"https://api.github.com/repos/srepking/Self_Paced-Online/issues/events{/number}","events_url":"https://api.github.com/repos/srepking/Self_Paced-Online/events","assignees_url":"https://api.github.com/repos/srepking/Self_Paced-Online/assignees{/user}","branches_url":"https://api.github.com/repos/srepking/Self_Paced-Online/branches{/branch}","tags_url":"https://api.github.com/repos/srepking/Self_Paced-Online/tags","blobs_url":"https://api.github.com/repos/srepking/Self_Paced-Online/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/srepking/Self_Paced-Online/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/srepking/Self_Paced-Online/git/refs{/sha}","trees_url":"https://api.github.com/repos/srepking/Self_Paced-Online/git/trees{/sha}","statuses_url":"https://api.github.com/repos/srepking/Self_Paced-Online/statuses/{sha}","languages_url":"https://api.github.com/repos/srepking/Self_Paced-Online/languages","stargazers_url":"https://api.github.com/repos/srepking/Self_Paced-Online/stargazers","contributors_url":"https://api.github.com/repos/srepking/Self_Paced-Online/contributors","subscribers_url":"https://api.github.com/repos/srepking/Self_Paced-Online/subscribers","subscription_url":"https://api.github.com/repos/srepking/Self_Paced-Online/subscription","commits_url":"https://api.github.com/repos/srepking/Self_Paced-Online/commits{/sha}","git_commits_url":"https://api.github.com/repos/srepking/Self_Paced-Online/git/commits{/sha}","comments_url":"https://api.github.com/repos/srepking/Self_Paced-Online/comments{/number}","issue_comment_url":"https://api.github.com/repos/srepking/Self_Paced-Online/issues/comments{/number}","contents_url":"https://api.github.com/repos/srepking/Self_Paced-Online/contents/{+path}","compare_url":"https://api.github.com/repos/srepking/Self_Paced-Online/compare/{base}...{head}","merges_url":"https://api.github.com/repos/srepking/Self_Paced-Online/merges","archive_url":"https://api.github.com/repos/srepking/Self_Paced-Online/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/srepking/Self_Paced-Online/downloads","issues_url":"https://api.github.com/repos/srepking/Self_Paced-Online/issues{/number}","pulls_url":"https://api.github.com/repos/srepking/Self_Paced-Online/pulls{/number}","milestones_url":"https://api.github.com/repos/srepking/Self_Paced-Online/milestones{/number}","notifications_url":"https://api.github.com/repos/srepking/Self_Paced-Online/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/srepking/Self_Paced-Online/labels{/name}","releases_url":"https://api.github.com/repos/srepking/Self_Paced-Online/releases{/id}","deployments_url":"https://api.github.com/repos/srepking/Self_Paced-Online/deployments","created_at":"2018-08-14T19:33:10Z","updated_at":"2018-08-30T03:20:56Z","pushed_at":"2018-08-30T03:20:55Z","git_url":"git://github.com/srepking/Self_Paced-Online.git","ssh_url":"git@github.com:srepking/Self_Paced-Online.git","clone_url":"https://github.com/srepking/Self_Paced-Online.git","svn_url":"https://github.com/srepking/Self_Paced-Online","homepage":"","size":14890,"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":"e07627c02e9e29593b66bdf9c5f8be9dfbacf95e","user":{"login":"UWPCE-PythonCert-ClassRepos","id":34701012,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NzAxMDEy","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,"node_id":"MDEwOlJlcG9zaXRvcnkxMTUyMTIzOTE=","name":"Self_Paced-Online","full_name":"UWPCE-PythonCert-ClassRepos/Self_Paced-Online","owner":{"login":"UWPCE-PythonCert-ClassRepos","id":34701012,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NzAxMDEy","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":"Course 1 - 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-08-31T00:17:29Z","pushed_at":"2018-08-31T00:17:27Z","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":"","size":14997,"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":95,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":95,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/932"},"html":{"href":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/932"},"issue":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/932"},"comments":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/932/comments"},"review_comments":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/932/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/932/commits"},"statuses":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/statuses/9e67a9c16bd0a0b4fd49f9d4d646fc7ddae170a7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"srepking"}}