{"action":"created","comment":{"url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/comments/199876087","pull_request_review_id":134079079,"id":199876087,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTg3NjA4Nw==","diff_hunk":"@@ -0,0 +1,54 @@\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+#create constant\n+SALES_TAX = 5.5\n+\n+#step1: get input for price of item 1\n+item1_price = int(input(\"Enter the price of item 1: \"))\n+\n+#step2: get input for quantity of item 1\n+item1_quantity = int(input(\"Enter the quantity of item 1: \"))\n+\n+#step3: get input for price of item 2\n+item2_price = int(input(\"Enter the price of item 2: \"))\n+\n+#step4: get input for quantity of item 2\n+item2_quantity = int(input(\"Enter the quantity of item 2: \"))\n+\n+#step5: get input for price of item 3\n+item3_price = int(input(\"Enter the price of item 3: \"))\n+\n+#step6: get input for price of item 3\n+item3_quantity = int(input(\"Enter the quantity of item 3: \"))\n+\n+#step7: make calculations for each item (multiply quantity * cost) and calculate subtotal for all items\n+#item1 calculation\n+item1_total = item1_price * item1_quantity","path":"ex10_ch3.py","position":32,"original_position":32,"commit_id":"e971e7277efe10a29fea6dde89249758452c2202","original_commit_id":"e971e7277efe10a29fea6dde89249758452c2202","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":"The calculations are good!","created_at":"2018-07-03T16:40:47Z","updated_at":"2018-07-03T16:50:00Z","html_url":"https://github.com/amymhaddad/exercises_for_programmers/pull/34#discussion_r199876087","pull_request_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/34","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/comments/199876087"},"html":{"href":"https://github.com/amymhaddad/exercises_for_programmers/pull/34#discussion_r199876087"},"pull_request":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/34","id":198948424,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4OTQ4NDI0","html_url":"https://github.com/amymhaddad/exercises_for_programmers/pull/34","diff_url":"https://github.com/amymhaddad/exercises_for_programmers/pull/34.diff","patch_url":"https://github.com/amymhaddad/exercises_for_programmers/pull/34.patch","issue_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/issues/34","number":34,"state":"open","locked":false,"title":"ex10_ch3.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 simple self-checkout system. Prompt for the prices and quantities of three items. Calculate the subtotal of the items. Then calculate the tax using a tax rate of 5.5%. Print out the line items with the quantity and total, and then print out the subtotal, tax amount, and total.\r\n\r\nExample Output:\r\n       Enter the price of item 1: 25\r\n       Enter the quantity of item 1: 2\r\n       Enter the price of item 2: 10\r\n       Enter the quantity of item 2: 1\r\n       Enter the price of item 3: 4\r\n       Enter the quantity of item 3: 1\r\n       Subtotal: $64.00\r\n       Tax: $3.52\r\n       Total: $67.52","created_at":"2018-07-03T12:35:12Z","updated_at":"2018-07-03T16:50:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08aecc31f9d5f9ac709ce38a98e889c587645c63","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/34/commits","review_comments_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/34/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/34/comments","statuses_url":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/statuses/e971e7277efe10a29fea6dde89249758452c2202","head":{"label":"amymhaddad:ex10_ch3.py","ref":"ex10_ch3.py","sha":"e971e7277efe10a29fea6dde89249758452c2202","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-06-04T23:11:07Z","pushed_at":"2018-07-03T12:35:13Z","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":29,"stargazers_count":0,"watchers_count":0,"language":null,"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":31,"license":null,"forks":0,"open_issues":31,"watchers":0,"default_branch":"master"}},"base":{"label":"amymhaddad:master","ref":"master","sha":"3acfcf3a40603cac387365d282e4ed6670f27973","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-06-04T23:11:07Z","pushed_at":"2018-07-03T12:35:13Z","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":29,"stargazers_count":0,"watchers_count":0,"language":null,"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":31,"license":null,"forks":0,"open_issues":31,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/34"},"html":{"href":"https://github.com/amymhaddad/exercises_for_programmers/pull/34"},"issue":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/issues/34"},"comments":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/pulls/34/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/34/commits"},"statuses":{"href":"https://api.github.com/repos/amymhaddad/exercises_for_programmers/statuses/e971e7277efe10a29fea6dde89249758452c2202"}},"author_association":"OWNER"}}
{"actor":{"display_login":"paulghaddad"}}