{"action":"created","comment":{"url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/pulls/comments/27628507","id":27628507,"diff_hunk":"@@ -0,0 +1,54 @@\n+def dict_input():\n+    \"\"\"How do you receive user input, and add those items to a dict?\"\"\"\n+    d = {}\n+    user_name = raw_input(\"Please enter your user name: \")\n+    user_pw = raw_input(\"Please enter your password: \")\n+    d[user_name] = user_pw\n+    print d\n+\n+# {'scottschmidt': 'apex'}\n+\n+\n+def dict_add():\n+    \"\"\"Can you add two dictionary values together to create a new key/value\n+    entry?\"\"\"\n+    d = {}\n+    d[1] = [(43, 55, 101)]\n+    d[2] = [(2, 5, 7)]\n+    print d\n+    # {1: [(43, 55, 101)], 2: [(2, 5, 7)]}\n+    d[3] = d[1] + d[2]\n+    print d\n+    # {1: [(43, 55, 101)], 2: [(2, 5, 7)], 3: [(43, 55, 101), (2, 5, 7)]}\n+\n+\n+def dict_key_text():\n+    \"\"\"How do you effectively test whether specific keys and values\n+    exist in dictionary?\"\"\"\n+    d = {\"Name\": \"Scott\", \"Age\": 32, \"Hair\": \"Brown\"}\n+    \"Hair\" in d\n+    # True\n+    \"Blue\" in d\n+    # False\n+    \"Brown\" in d\n+    # False\n+\n+\n+def dict_remove():\n+    \"\"\"What are three ways to remove items from a dictionary?\"\"\"\n+    d = {\"Scott\": {\"Name\": \"Scott\", \"Age\": 32}, \"Nicole\": {\"Name\": \"Nicole\", \"Age\": 30}}","path":"students/ScottSchmidt/session04/dictionaries.py","position":39,"original_position":39,"commit_id":"1b561d5d28f4c14cb3806c7ecf5d01a583c902ec","original_commit_id":"1b561d5d28f4c14cb3806c7ecf5d01a583c902ec","user":{"login":"am0k","id":5588405,"avatar_url":"https://avatars.githubusercontent.com/u/5588405?v=3","gravatar_id":"","url":"https://api.github.com/users/am0k","html_url":"https://github.com/am0k","followers_url":"https://api.github.com/users/am0k/followers","following_url":"https://api.github.com/users/am0k/following{/other_user}","gists_url":"https://api.github.com/users/am0k/gists{/gist_id}","starred_url":"https://api.github.com/users/am0k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/am0k/subscriptions","organizations_url":"https://api.github.com/users/am0k/orgs","repos_url":"https://api.github.com/users/am0k/repos","events_url":"https://api.github.com/users/am0k/events{/privacy}","received_events_url":"https://api.github.com/users/am0k/received_events","type":"User","site_admin":false},"body":"Remember that lines of code should not be longer than 79 characters. ","created_at":"2015-04-02T02:13:46Z","updated_at":"2015-04-02T02:13:46Z","html_url":"https://github.com/sjschmidt44/sea-c34-python/pull/9#discussion_r27628507","pull_request_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/sjschmidt44/sea-c34-python/pulls/comments/27628507"},"html":{"href":"https://github.com/sjschmidt44/sea-c34-python/pull/9#discussion_r27628507"},"pull_request":{"href":"https://api.github.com/repos/sjschmidt44/sea-c34-python/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/pulls/9","id":31980303,"html_url":"https://github.com/sjschmidt44/sea-c34-python/pull/9","diff_url":"https://github.com/sjschmidt44/sea-c34-python/pull/9.diff","patch_url":"https://github.com/sjschmidt44/sea-c34-python/pull/9.patch","issue_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/issues/9","number":9,"state":"closed","locked":false,"title":"Task8: Questions for Dictionaries, Exceptions, Paths, and Files","user":{"login":"sjschmidt44","id":8696424,"avatar_url":"https://avatars.githubusercontent.com/u/8696424?v=3","gravatar_id":"","url":"https://api.github.com/users/sjschmidt44","html_url":"https://github.com/sjschmidt44","followers_url":"https://api.github.com/users/sjschmidt44/followers","following_url":"https://api.github.com/users/sjschmidt44/following{/other_user}","gists_url":"https://api.github.com/users/sjschmidt44/gists{/gist_id}","starred_url":"https://api.github.com/users/sjschmidt44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjschmidt44/subscriptions","organizations_url":"https://api.github.com/users/sjschmidt44/orgs","repos_url":"https://api.github.com/users/sjschmidt44/repos","events_url":"https://api.github.com/users/sjschmidt44/events{/privacy}","received_events_url":"https://api.github.com/users/sjschmidt44/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-26T00:43:20Z","updated_at":"2015-04-02T02:13:46Z","closed_at":"2015-03-27T16:23:20Z","merged_at":"2015-03-27T16:23:20Z","merge_commit_sha":"de77d114d184e4918d4213808edd5db833bc6166","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/pulls/9/commits","review_comments_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/pulls/9/comments","review_comment_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/issues/9/comments","statuses_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/statuses/1b561d5d28f4c14cb3806c7ecf5d01a583c902ec","head":{"label":"sjschmidt44:task8","ref":"task8","sha":"1b561d5d28f4c14cb3806c7ecf5d01a583c902ec","user":{"login":"sjschmidt44","id":8696424,"avatar_url":"https://avatars.githubusercontent.com/u/8696424?v=3","gravatar_id":"","url":"https://api.github.com/users/sjschmidt44","html_url":"https://github.com/sjschmidt44","followers_url":"https://api.github.com/users/sjschmidt44/followers","following_url":"https://api.github.com/users/sjschmidt44/following{/other_user}","gists_url":"https://api.github.com/users/sjschmidt44/gists{/gist_id}","starred_url":"https://api.github.com/users/sjschmidt44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjschmidt44/subscriptions","organizations_url":"https://api.github.com/users/sjschmidt44/orgs","repos_url":"https://api.github.com/users/sjschmidt44/repos","events_url":"https://api.github.com/users/sjschmidt44/events{/privacy}","received_events_url":"https://api.github.com/users/sjschmidt44/received_events","type":"User","site_admin":false},"repo":{"id":32340546,"name":"sea-c34-python","full_name":"sjschmidt44/sea-c34-python","owner":{"login":"sjschmidt44","id":8696424,"avatar_url":"https://avatars.githubusercontent.com/u/8696424?v=3","gravatar_id":"","url":"https://api.github.com/users/sjschmidt44","html_url":"https://github.com/sjschmidt44","followers_url":"https://api.github.com/users/sjschmidt44/followers","following_url":"https://api.github.com/users/sjschmidt44/following{/other_user}","gists_url":"https://api.github.com/users/sjschmidt44/gists{/gist_id}","starred_url":"https://api.github.com/users/sjschmidt44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjschmidt44/subscriptions","organizations_url":"https://api.github.com/users/sjschmidt44/orgs","repos_url":"https://api.github.com/users/sjschmidt44/repos","events_url":"https://api.github.com/users/sjschmidt44/events{/privacy}","received_events_url":"https://api.github.com/users/sjschmidt44/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sjschmidt44/sea-c34-python","description":"Seattle C34 Foundations II: Python","fork":true,"url":"https://api.github.com/repos/sjschmidt44/sea-c34-python","forks_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/forks","keys_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/teams","hooks_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/hooks","issue_events_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/issues/events{/number}","events_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/events","assignees_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/assignees{/user}","branches_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/branches{/branch}","tags_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/tags","blobs_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/statuses/{sha}","languages_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/languages","stargazers_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/stargazers","contributors_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/contributors","subscribers_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/subscribers","subscription_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/subscription","commits_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/contents/{+path}","compare_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/merges","archive_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/downloads","issues_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/issues{/number}","pulls_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/pulls{/number}","milestones_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/milestones{/number}","notifications_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/labels{/name}","releases_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/releases{/id}","created_at":"2015-03-16T17:12:28Z","updated_at":"2015-03-27T17:05:39Z","pushed_at":"2015-04-01T15:53:21Z","git_url":"git://github.com/sjschmidt44/sea-c34-python.git","ssh_url":"git@github.com:sjschmidt44/sea-c34-python.git","clone_url":"https://github.com/sjschmidt44/sea-c34-python.git","svn_url":"https://github.com/sjschmidt44/sea-c34-python","homepage":"","size":4536,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sjschmidt44:master","ref":"master","sha":"d4267839062a2cc3fec4288971e5045074d12bd1","user":{"login":"sjschmidt44","id":8696424,"avatar_url":"https://avatars.githubusercontent.com/u/8696424?v=3","gravatar_id":"","url":"https://api.github.com/users/sjschmidt44","html_url":"https://github.com/sjschmidt44","followers_url":"https://api.github.com/users/sjschmidt44/followers","following_url":"https://api.github.com/users/sjschmidt44/following{/other_user}","gists_url":"https://api.github.com/users/sjschmidt44/gists{/gist_id}","starred_url":"https://api.github.com/users/sjschmidt44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjschmidt44/subscriptions","organizations_url":"https://api.github.com/users/sjschmidt44/orgs","repos_url":"https://api.github.com/users/sjschmidt44/repos","events_url":"https://api.github.com/users/sjschmidt44/events{/privacy}","received_events_url":"https://api.github.com/users/sjschmidt44/received_events","type":"User","site_admin":false},"repo":{"id":32340546,"name":"sea-c34-python","full_name":"sjschmidt44/sea-c34-python","owner":{"login":"sjschmidt44","id":8696424,"avatar_url":"https://avatars.githubusercontent.com/u/8696424?v=3","gravatar_id":"","url":"https://api.github.com/users/sjschmidt44","html_url":"https://github.com/sjschmidt44","followers_url":"https://api.github.com/users/sjschmidt44/followers","following_url":"https://api.github.com/users/sjschmidt44/following{/other_user}","gists_url":"https://api.github.com/users/sjschmidt44/gists{/gist_id}","starred_url":"https://api.github.com/users/sjschmidt44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjschmidt44/subscriptions","organizations_url":"https://api.github.com/users/sjschmidt44/orgs","repos_url":"https://api.github.com/users/sjschmidt44/repos","events_url":"https://api.github.com/users/sjschmidt44/events{/privacy}","received_events_url":"https://api.github.com/users/sjschmidt44/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sjschmidt44/sea-c34-python","description":"Seattle C34 Foundations II: Python","fork":true,"url":"https://api.github.com/repos/sjschmidt44/sea-c34-python","forks_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/forks","keys_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/teams","hooks_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/hooks","issue_events_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/issues/events{/number}","events_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/events","assignees_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/assignees{/user}","branches_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/branches{/branch}","tags_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/tags","blobs_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/statuses/{sha}","languages_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/languages","stargazers_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/stargazers","contributors_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/contributors","subscribers_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/subscribers","subscription_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/subscription","commits_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/contents/{+path}","compare_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/merges","archive_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/downloads","issues_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/issues{/number}","pulls_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/pulls{/number}","milestones_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/milestones{/number}","notifications_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/labels{/name}","releases_url":"https://api.github.com/repos/sjschmidt44/sea-c34-python/releases{/id}","created_at":"2015-03-16T17:12:28Z","updated_at":"2015-03-27T17:05:39Z","pushed_at":"2015-04-01T15:53:21Z","git_url":"git://github.com/sjschmidt44/sea-c34-python.git","ssh_url":"git@github.com:sjschmidt44/sea-c34-python.git","clone_url":"https://github.com/sjschmidt44/sea-c34-python.git","svn_url":"https://github.com/sjschmidt44/sea-c34-python","homepage":"","size":4536,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sjschmidt44/sea-c34-python/pulls/9"},"html":{"href":"https://github.com/sjschmidt44/sea-c34-python/pull/9"},"issue":{"href":"https://api.github.com/repos/sjschmidt44/sea-c34-python/issues/9"},"comments":{"href":"https://api.github.com/repos/sjschmidt44/sea-c34-python/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/sjschmidt44/sea-c34-python/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/sjschmidt44/sea-c34-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sjschmidt44/sea-c34-python/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/sjschmidt44/sea-c34-python/statuses/1b561d5d28f4c14cb3806c7ecf5d01a583c902ec"}}}}