{"action":"created","comment":{"url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/comments/208738894","pull_request_review_id":144612404,"id":208738894,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwODczODg5NA==","diff_hunk":"@@ -0,0 +1,36 @@\n+#!/usr/bin/env python3\n+# -*- coding: utf-8 -*-\n+\"\"\"\n+Created on Thu May 10 15:34:22 2018\n+\n+@author: amyhaddad\n+\"\"\"\n+\n+#step1: state constants\n+EC_RES_TAX = 0.005\n+DUNN_RES_TAX = 0.004\n+IL_SALES_TAX = 8 \n+\n+#step1: get input from user\n+order_amount = float(input(\"Enter the order amount:$\"))\n+state = input(\"Enter the state you reside in. Use abbreviations (eg, OH or MA): \")\n+normalized_state = state.lower()\n+\n+#step2: set up conditionals\n+if normalized_state == \"wi\":\n+    country = input(\"Enter the county you live in: \")\n+    normalized_country = country.lower()\n+    if normalized_country == \"eau clair\":\n+        total_amount_ecres = order_amount + EC_RES_TAX\n+        print(\"You have an extra tax of \" + str(EC_RES_TAX) + \". So the total order amount is ${:.2f}.\".format(total_amount_ecres))\n+    elif county == \"dunn\":\n+        total_amount_dunnres = order_amount + DUNN_RES_TAX\n+        print(\"You have an extra tax of \" + str(DUNN_RES_TAX) + \". So the total order amount is ${:.2f}.\".format(total_amount_dunnres))\n+    else: ","path":"ex20_ch4.py","position":29,"original_position":29,"commit_id":"8529726e9f23f0b1971d5d0c2e443b3baf2c18e7","original_commit_id":"8529726e9f23f0b1971d5d0c2e443b3baf2c18e7","user":{"login":"paulghaddad","id":1412714,"node_id":"MDQ6VXNlcjE0MTI3MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1412714?v=4","gravatar_id":"","url":"https://api.github.com/users/paulghaddad","html_url":"https://github.com/paulghaddad","followers_url":"https://api.github.com/users/paulghaddad/followers","following_url":"https://api.github.com/users/paulghaddad/following{/other_user}","gists_url":"https://api.github.com/users/paulghaddad/gists{/gist_id}","starred_url":"https://api.github.com/users/paulghaddad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulghaddad/subscriptions","organizations_url":"https://api.github.com/users/paulghaddad/orgs","repos_url":"https://api.github.com/users/paulghaddad/repos","events_url":"https://api.github.com/users/paulghaddad/events{/privacy}","received_events_url":"https://api.github.com/users/paulghaddad/received_events","type":"User","site_admin":false},"body":"Good `else` here!","created_at":"2018-08-08T21:17:11Z","updated_at":"2018-08-08T21:18:44Z","html_url":"https://github.com/amymhaddad/exercises_for_programmers/pull/59#discussion_r208738894","pull_request_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/59","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/comments/208738894"},"html":{"href":"https://github.com/amymhaddad/exercises_for_programmers/pull/59#discussion_r208738894"},"pull_request":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/59","id":202529783,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyNTI5Nzgz","html_url":"https://github.com/amymhaddad/exercises_for_programmers/pull/59","diff_url":"https://github.com/amymhaddad/exercises_for_programmers/pull/59.diff","patch_url":"https://github.com/amymhaddad/exercises_for_programmers/pull/59.patch","issue_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/issues/59","number":59,"state":"open","locked":false,"title":" ex20_ch4.py","user":{"login":"amymhaddad","id":39930340,"node_id":"MDQ6VXNlcjM5OTMwMzQw","avatar_url":"https://avatars1.githubusercontent.com/u/39930340?v=4","gravatar_id":"","url":"https://api.github.com/users/amymhaddad","html_url":"https://github.com/amymhaddad","followers_url":"https://api.github.com/users/amymhaddad/followers","following_url":"https://api.github.com/users/amymhaddad/following{/other_user}","gists_url":"https://api.github.com/users/amymhaddad/gists{/gist_id}","starred_url":"https://api.github.com/users/amymhaddad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amymhaddad/subscriptions","organizations_url":"https://api.github.com/users/amymhaddad/orgs","repos_url":"https://api.github.com/users/amymhaddad/repos","events_url":"https://api.github.com/users/amymhaddad/events{/privacy}","received_events_url":"https://api.github.com/users/amymhaddad/received_events","type":"User","site_admin":false},"body":"Instructions: \r\nCreate a tax calculator that handles multiple states and multiple counties within each state. The program prompts the user for the order amount and the state where the order will be shipped.\r\n\r\nFor Wisconsin residents, prompt for the county of residence.\r\n• For Eau Claire county residents, add an additional 0.005 tax.\r\n• For  Dunn county residents, add an additional 0.004 tax.\r\n\r\nIllinois residents must be charged 8% sales tax with no additional county-level charge. All other states are not charged tax. The program then displays the tax and the total for Wisconsin and Illinois residents but just the total for everyone else.","created_at":"2018-07-19T11:32:50Z","updated_at":"2018-08-08T21:18:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ccf8f0c52c06b243a6b72b27269d23866ad8fec7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":990546475,"node_id":"MDU6TGFiZWw5OTA1NDY0NzU=","url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/labels/Conditionals","name":"Conditionals","color":"db814c","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/59/commits","review_comments_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/59/comments","review_comment_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/issues/59/comments","statuses_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/statuses/8529726e9f23f0b1971d5d0c2e443b3baf2c18e7","head":{"label":"amymhaddad:ex20_ch4.py","ref":"ex20_ch4.py","sha":"8529726e9f23f0b1971d5d0c2e443b3baf2c18e7","user":{"login":"amymhaddad","id":39930340,"node_id":"MDQ6VXNlcjM5OTMwMzQw","avatar_url":"https://avatars1.githubusercontent.com/u/39930340?v=4","gravatar_id":"","url":"https://api.github.com/users/amymhaddad","html_url":"https://github.com/amymhaddad","followers_url":"https://api.github.com/users/amymhaddad/followers","following_url":"https://api.github.com/users/amymhaddad/following{/other_user}","gists_url":"https://api.github.com/users/amymhaddad/gists{/gist_id}","starred_url":"https://api.github.com/users/amymhaddad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amymhaddad/subscriptions","organizations_url":"https://api.github.com/users/amymhaddad/orgs","repos_url":"https://api.github.com/users/amymhaddad/repos","events_url":"https://api.github.com/users/amymhaddad/events{/privacy}","received_events_url":"https://api.github.com/users/amymhaddad/received_events","type":"User","site_admin":false},"repo":{"id":136092133,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYwOTIxMzM=","name":"exercises_for_programmers","full_name":"amymhaddad/exercises_for_programmers","owner":{"login":"amymhaddad","id":39930340,"node_id":"MDQ6VXNlcjM5OTMwMzQw","avatar_url":"https://avatars1.githubusercontent.com/u/39930340?v=4","gravatar_id":"","url":"https://api.github.com/users/amymhaddad","html_url":"https://github.com/amymhaddad","followers_url":"https://api.github.com/users/amymhaddad/followers","following_url":"https://api.github.com/users/amymhaddad/following{/other_user}","gists_url":"https://api.github.com/users/amymhaddad/gists{/gist_id}","starred_url":"https://api.github.com/users/amymhaddad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amymhaddad/subscriptions","organizations_url":"https://api.github.com/users/amymhaddad/orgs","repos_url":"https://api.github.com/users/amymhaddad/repos","events_url":"https://api.github.com/users/amymhaddad/events{/privacy}","received_events_url":"https://api.github.com/users/amymhaddad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amymhaddad/exercises_for_programmers","description":null,"fork":false,"url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers","forks_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/forks","keys_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/teams","hooks_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/hooks","issue_events_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/issues/events{/number}","events_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/events","assignees_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/assignees{/user}","branches_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/branches{/branch}","tags_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/tags","blobs_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/git/refs{/sha}","trees_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/statuses/{sha}","languages_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/languages","stargazers_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/stargazers","contributors_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/contributors","subscribers_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/subscribers","subscription_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/subscription","commits_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/commits{/sha}","git_commits_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/git/commits{/sha}","comments_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/comments{/number}","issue_comment_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/issues/comments{/number}","contents_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/contents/{+path}","compare_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/merges","archive_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/downloads","issues_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/issues{/number}","pulls_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls{/number}","milestones_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/milestones{/number}","notifications_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/labels{/name}","releases_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/releases{/id}","deployments_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/deployments","created_at":"2018-06-04T23:04:11Z","updated_at":"2018-08-08T20:48:21Z","pushed_at":"2018-08-08T20:48:21Z","git_url":"git://github.com/amymhaddad/exercises_for_programmers.git","ssh_url":"git@github.com:amymhaddad/exercises_for_programmers.git","clone_url":"https://github.com/amymhaddad/exercises_for_programmers.git","svn_url":"https://github.com/amymhaddad/exercises_for_programmers","homepage":null,"size":124,"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,"open_issues_count":14,"license":null,"forks":0,"open_issues":14,"watchers":0,"default_branch":"master"}},"base":{"label":"amymhaddad:master","ref":"master","sha":"9515e20fe3fb76c108affb265f0c4d14893fcaba","user":{"login":"amymhaddad","id":39930340,"node_id":"MDQ6VXNlcjM5OTMwMzQw","avatar_url":"https://avatars1.githubusercontent.com/u/39930340?v=4","gravatar_id":"","url":"https://api.github.com/users/amymhaddad","html_url":"https://github.com/amymhaddad","followers_url":"https://api.github.com/users/amymhaddad/followers","following_url":"https://api.github.com/users/amymhaddad/following{/other_user}","gists_url":"https://api.github.com/users/amymhaddad/gists{/gist_id}","starred_url":"https://api.github.com/users/amymhaddad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amymhaddad/subscriptions","organizations_url":"https://api.github.com/users/amymhaddad/orgs","repos_url":"https://api.github.com/users/amymhaddad/repos","events_url":"https://api.github.com/users/amymhaddad/events{/privacy}","received_events_url":"https://api.github.com/users/amymhaddad/received_events","type":"User","site_admin":false},"repo":{"id":136092133,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYwOTIxMzM=","name":"exercises_for_programmers","full_name":"amymhaddad/exercises_for_programmers","owner":{"login":"amymhaddad","id":39930340,"node_id":"MDQ6VXNlcjM5OTMwMzQw","avatar_url":"https://avatars1.githubusercontent.com/u/39930340?v=4","gravatar_id":"","url":"https://api.github.com/users/amymhaddad","html_url":"https://github.com/amymhaddad","followers_url":"https://api.github.com/users/amymhaddad/followers","following_url":"https://api.github.com/users/amymhaddad/following{/other_user}","gists_url":"https://api.github.com/users/amymhaddad/gists{/gist_id}","starred_url":"https://api.github.com/users/amymhaddad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amymhaddad/subscriptions","organizations_url":"https://api.github.com/users/amymhaddad/orgs","repos_url":"https://api.github.com/users/amymhaddad/repos","events_url":"https://api.github.com/users/amymhaddad/events{/privacy}","received_events_url":"https://api.github.com/users/amymhaddad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amymhaddad/exercises_for_programmers","description":null,"fork":false,"url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers","forks_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/forks","keys_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/teams","hooks_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/hooks","issue_events_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/issues/events{/number}","events_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/events","assignees_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/assignees{/user}","branches_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/branches{/branch}","tags_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/tags","blobs_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/git/refs{/sha}","trees_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/statuses/{sha}","languages_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/languages","stargazers_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/stargazers","contributors_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/contributors","subscribers_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/subscribers","subscription_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/subscription","commits_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/commits{/sha}","git_commits_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/git/commits{/sha}","comments_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/comments{/number}","issue_comment_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/issues/comments{/number}","contents_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/contents/{+path}","compare_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/merges","archive_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/downloads","issues_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/issues{/number}","pulls_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls{/number}","milestones_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/milestones{/number}","notifications_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/labels{/name}","releases_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/releases{/id}","deployments_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/deployments","created_at":"2018-06-04T23:04:11Z","updated_at":"2018-08-08T20:48:21Z","pushed_at":"2018-08-08T20:48:21Z","git_url":"git://github.com/amymhaddad/exercises_for_programmers.git","ssh_url":"git@github.com:amymhaddad/exercises_for_programmers.git","clone_url":"https://github.com/amymhaddad/exercises_for_programmers.git","svn_url":"https://github.com/amymhaddad/exercises_for_programmers","homepage":null,"size":124,"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,"open_issues_count":14,"license":null,"forks":0,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/59"},"html":{"href":"https://github.com/amymhaddad/exercises_for_programmers/pull/59"},"issue":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/issues/59"},"comments":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/statuses/8529726e9f23f0b1971d5d0c2e443b3baf2c18e7"}},"author_association":"OWNER"}}
{"actor":{"display_login":"paulghaddad"}}