{"action":"created","comment":{"url":"https://api.github.com/repos/silshack/spring2016/pulls/comments/50360797","id":50360797,"diff_hunk":"@@ -0,0 +1,78 @@\n+---\n+layout: post\n+author: ShyArmadillo8\n+title: \"Jasmine Plott's Chapter 2 Exercises\"\n+---\n+Overall, these exercises went smoothly, and there was only one major setback I encountered but was able to work through in the end.\n+\n+The first exercise was fairly straightforward and I got that pretty quickly. I discovered that unless you indicated it in your code, you\n+would not have spaces between your words.  To solve this, I place a \" \" between the output in my print code.  My code looked like this:\n+```\n+#Ask the user for their name\n+name = input(\"What is your name?\\n\")\n+\n+#Welcome the user\n+print(\"Welcome\" + \" \" + name + \"!\")\n+```\n+Here is my completed trinket for exercise 2:\n+<iframe src=\"https://trinket.io/embed/python/172319618b\" width=\"100%\" height=\"600\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" allowfullscreen></iframe>\n+\n+The second exercise was the one that gave me the most trouble, but I was able to work through it fairly quickly.  The biggest problem that\n+encountered was calculating the pay, and I couldn't understand why I kept getting an error, since my equation was correct.  I went back\n+through the Chapter 2 notes and discovered that it was because I had not specified a type for the values that were used in the equation.\n+To demonstrate things a little more clearly, my code looked something like this:\n+\n+```\n+#Ask how many hours the user has worked\n+hour = input(\"How many hours have you worked?\\n\")\n+\n+#Ask what their hourly rate of pay is\n+rate = input(\"What is your hourly pay rate?\\n\")\n+\n+#The equation to calculate their gross pay is below...\n+pay = hour * rate\n+print(\"According to your responses, your gross pay is\" + \" \" + pay + \".\\n\")\n+```\n+\n+When it should have looked like this (this is the actual code that I used in my final trinket)\n+\n+```\n+#Ask how many hours the user has worked\n+hour = input(\"How many hours have you worked?\\n\")\n+\n+#Ask what  their hourly rate of pay is\n+rate = input(\"What is your hourly pay rate?\\n\")\n+\n+#The equation to calculate their gross pay is below...\n+pay = float(hour) * float(rate)\n+print(\"According to your responses, your gross pay is\" + \" \" + str(pay) + \".\\n\")\n+```\n+\n+After working through this dilemma, I discovered that I need to be specific as to what I want my program to do. Here is my\n+completed trinket for exercise 3:\n+<iframe src=\"https://trinket.io/embed/python/9031eae42d\" width=\"100%\" height=\"600\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" allowfullscreen></iframe>\n+\n+Lastly, the third exercise was not as bad as I expected either, especially since I figured out that I needed to indicate the type for\n+each of the values that I was going to use in an equation.  Below is the code that I used to come up with the conversion:\n+\n+```\n+#Time to ask for the temperature.  Letting the user know what we're doing.\n+print(\"Let's figure out what the temperature is today.\")\n+\n+#Ask what the temperature is in degrees Celsius\n+celsius = input(\"What is the temperature in degrees Celsius?\\n\")\n+\n+#This is the equation to convert the temperature from Celsius to Fahrenheit\n+fahrenheit = float(celsius) * 1.8 + 32\n+\n+#This prints out the temperature in degrees Fahrenheit\n+print(\"According to your answer, the temperature you entered in degrees Celsius is\" + \" \"\n++ str(fahrenheit) + \"°\" + \" \" + \"Fahrenheit\" + \".\")\n+```\n+\n+I did compare my conversion table to Google's temperature conversion method, and I thought that it was interesting how there was a button\n+available to click to allow the conversion to happen after entering in the temperature.  The two methods appear fairly similar, but \n+I'm curious whether we'll learn how to create buttons and drop down menus with Python for the rest of the semester.","path":"_posts/ShyArmadillo8/2016-01-19-JasminePlottChapter2Exercises.md","position":75,"original_position":75,"commit_id":"bf4a32e70bbdccd8cca4b0cb60454e9de03bd8fe","original_commit_id":"bf4a32e70bbdccd8cca4b0cb60454e9de03bd8fe","user":{"login":"eah13","id":1702745,"avatar_url":"https://avatars.githubusercontent.com/u/1702745?v=3","gravatar_id":"","url":"https://api.github.com/users/eah13","html_url":"https://github.com/eah13","followers_url":"https://api.github.com/users/eah13/followers","following_url":"https://api.github.com/users/eah13/following{/other_user}","gists_url":"https://api.github.com/users/eah13/gists{/gist_id}","starred_url":"https://api.github.com/users/eah13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eah13/subscriptions","organizations_url":"https://api.github.com/users/eah13/orgs","repos_url":"https://api.github.com/users/eah13/repos","events_url":"https://api.github.com/users/eah13/events{/privacy}","received_events_url":"https://api.github.com/users/eah13/received_events","type":"User","site_admin":false},"body":"We'll create basic user interfaces and you'll be able to make some of these elements in your final project if you like.","created_at":"2016-01-21T05:01:50Z","updated_at":"2016-01-21T05:01:50Z","html_url":"https://github.com/silshack/spring2016/pull/110#discussion_r50360797","pull_request_url":"https://api.github.com/repos/silshack/spring2016/pulls/110","_links":{"self":{"href":"https://api.github.com/repos/silshack/spring2016/pulls/comments/50360797"},"html":{"href":"https://github.com/silshack/spring2016/pull/110#discussion_r50360797"},"pull_request":{"href":"https://api.github.com/repos/silshack/spring2016/pulls/110"}}},"pull_request":{"url":"https://api.github.com/repos/silshack/spring2016/pulls/110","id":56407836,"html_url":"https://github.com/silshack/spring2016/pull/110","diff_url":"https://github.com/silshack/spring2016/pull/110.diff","patch_url":"https://github.com/silshack/spring2016/pull/110.patch","issue_url":"https://api.github.com/repos/silshack/spring2016/issues/110","number":110,"state":"open","locked":false,"title":"Jasmine Plott Chapter Two Exercises","user":{"login":"ShyArmadillo8","id":16670984,"avatar_url":"https://avatars.githubusercontent.com/u/16670984?v=3","gravatar_id":"","url":"https://api.github.com/users/ShyArmadillo8","html_url":"https://github.com/ShyArmadillo8","followers_url":"https://api.github.com/users/ShyArmadillo8/followers","following_url":"https://api.github.com/users/ShyArmadillo8/following{/other_user}","gists_url":"https://api.github.com/users/ShyArmadillo8/gists{/gist_id}","starred_url":"https://api.github.com/users/ShyArmadillo8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShyArmadillo8/subscriptions","organizations_url":"https://api.github.com/users/ShyArmadillo8/orgs","repos_url":"https://api.github.com/users/ShyArmadillo8/repos","events_url":"https://api.github.com/users/ShyArmadillo8/events{/privacy}","received_events_url":"https://api.github.com/users/ShyArmadillo8/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-19T00:33:08Z","updated_at":"2016-01-21T05:01:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85a31077b77ebafdc3368ef1da16705b3cbb2199","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/silshack/spring2016/pulls/110/commits","review_comments_url":"https://api.github.com/repos/silshack/spring2016/pulls/110/comments","review_comment_url":"https://api.github.com/repos/silshack/spring2016/pulls/comments{/number}","comments_url":"https://api.github.com/repos/silshack/spring2016/issues/110/comments","statuses_url":"https://api.github.com/repos/silshack/spring2016/statuses/bf4a32e70bbdccd8cca4b0cb60454e9de03bd8fe","head":{"label":"ShyArmadillo8:patch-4","ref":"patch-4","sha":"bf4a32e70bbdccd8cca4b0cb60454e9de03bd8fe","user":{"login":"ShyArmadillo8","id":16670984,"avatar_url":"https://avatars.githubusercontent.com/u/16670984?v=3","gravatar_id":"","url":"https://api.github.com/users/ShyArmadillo8","html_url":"https://github.com/ShyArmadillo8","followers_url":"https://api.github.com/users/ShyArmadillo8/followers","following_url":"https://api.github.com/users/ShyArmadillo8/following{/other_user}","gists_url":"https://api.github.com/users/ShyArmadillo8/gists{/gist_id}","starred_url":"https://api.github.com/users/ShyArmadillo8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShyArmadillo8/subscriptions","organizations_url":"https://api.github.com/users/ShyArmadillo8/orgs","repos_url":"https://api.github.com/users/ShyArmadillo8/repos","events_url":"https://api.github.com/users/ShyArmadillo8/events{/privacy}","received_events_url":"https://api.github.com/users/ShyArmadillo8/received_events","type":"User","site_admin":false},"repo":{"id":49659528,"name":"spring2016","full_name":"ShyArmadillo8/spring2016","owner":{"login":"ShyArmadillo8","id":16670984,"avatar_url":"https://avatars.githubusercontent.com/u/16670984?v=3","gravatar_id":"","url":"https://api.github.com/users/ShyArmadillo8","html_url":"https://github.com/ShyArmadillo8","followers_url":"https://api.github.com/users/ShyArmadillo8/followers","following_url":"https://api.github.com/users/ShyArmadillo8/following{/other_user}","gists_url":"https://api.github.com/users/ShyArmadillo8/gists{/gist_id}","starred_url":"https://api.github.com/users/ShyArmadillo8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShyArmadillo8/subscriptions","organizations_url":"https://api.github.com/users/ShyArmadillo8/orgs","repos_url":"https://api.github.com/users/ShyArmadillo8/repos","events_url":"https://api.github.com/users/ShyArmadillo8/events{/privacy}","received_events_url":"https://api.github.com/users/ShyArmadillo8/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ShyArmadillo8/spring2016","description":"INLS 560 Spring 2016 taught by Elliott Hauser at UNC Chapel Hill","fork":true,"url":"https://api.github.com/repos/ShyArmadillo8/spring2016","forks_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/forks","keys_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/teams","hooks_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/hooks","issue_events_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/issues/events{/number}","events_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/events","assignees_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/assignees{/user}","branches_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/branches{/branch}","tags_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/tags","blobs_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/statuses/{sha}","languages_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/languages","stargazers_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/stargazers","contributors_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/contributors","subscribers_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/subscribers","subscription_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/subscription","commits_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/contents/{+path}","compare_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/merges","archive_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/downloads","issues_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/issues{/number}","pulls_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/pulls{/number}","milestones_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/milestones{/number}","notifications_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/labels{/name}","releases_url":"https://api.github.com/repos/ShyArmadillo8/spring2016/releases{/id}","created_at":"2016-01-14T16:27:07Z","updated_at":"2016-01-14T16:27:07Z","pushed_at":"2016-01-21T04:48:53Z","git_url":"git://github.com/ShyArmadillo8/spring2016.git","ssh_url":"git@github.com:ShyArmadillo8/spring2016.git","clone_url":"https://github.com/ShyArmadillo8/spring2016.git","svn_url":"https://github.com/ShyArmadillo8/spring2016","homepage":"http://silshack.github.io/spring2016","size":1516,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"silshack:gh-pages","ref":"gh-pages","sha":"88906b1bcccb060bdf37bba52eb247d066d184ad","user":{"login":"silshack","id":5091373,"avatar_url":"https://avatars.githubusercontent.com/u/5091373?v=3","gravatar_id":"","url":"https://api.github.com/users/silshack","html_url":"https://github.com/silshack","followers_url":"https://api.github.com/users/silshack/followers","following_url":"https://api.github.com/users/silshack/following{/other_user}","gists_url":"https://api.github.com/users/silshack/gists{/gist_id}","starred_url":"https://api.github.com/users/silshack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silshack/subscriptions","organizations_url":"https://api.github.com/users/silshack/orgs","repos_url":"https://api.github.com/users/silshack/repos","events_url":"https://api.github.com/users/silshack/events{/privacy}","received_events_url":"https://api.github.com/users/silshack/received_events","type":"Organization","site_admin":false},"repo":{"id":45437847,"name":"spring2016","full_name":"silshack/spring2016","owner":{"login":"silshack","id":5091373,"avatar_url":"https://avatars.githubusercontent.com/u/5091373?v=3","gravatar_id":"","url":"https://api.github.com/users/silshack","html_url":"https://github.com/silshack","followers_url":"https://api.github.com/users/silshack/followers","following_url":"https://api.github.com/users/silshack/following{/other_user}","gists_url":"https://api.github.com/users/silshack/gists{/gist_id}","starred_url":"https://api.github.com/users/silshack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silshack/subscriptions","organizations_url":"https://api.github.com/users/silshack/orgs","repos_url":"https://api.github.com/users/silshack/repos","events_url":"https://api.github.com/users/silshack/events{/privacy}","received_events_url":"https://api.github.com/users/silshack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/silshack/spring2016","description":"INLS 560 Spring 2016 taught by Elliott Hauser at UNC Chapel Hill","fork":false,"url":"https://api.github.com/repos/silshack/spring2016","forks_url":"https://api.github.com/repos/silshack/spring2016/forks","keys_url":"https://api.github.com/repos/silshack/spring2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silshack/spring2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silshack/spring2016/teams","hooks_url":"https://api.github.com/repos/silshack/spring2016/hooks","issue_events_url":"https://api.github.com/repos/silshack/spring2016/issues/events{/number}","events_url":"https://api.github.com/repos/silshack/spring2016/events","assignees_url":"https://api.github.com/repos/silshack/spring2016/assignees{/user}","branches_url":"https://api.github.com/repos/silshack/spring2016/branches{/branch}","tags_url":"https://api.github.com/repos/silshack/spring2016/tags","blobs_url":"https://api.github.com/repos/silshack/spring2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silshack/spring2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silshack/spring2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/silshack/spring2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silshack/spring2016/statuses/{sha}","languages_url":"https://api.github.com/repos/silshack/spring2016/languages","stargazers_url":"https://api.github.com/repos/silshack/spring2016/stargazers","contributors_url":"https://api.github.com/repos/silshack/spring2016/contributors","subscribers_url":"https://api.github.com/repos/silshack/spring2016/subscribers","subscription_url":"https://api.github.com/repos/silshack/spring2016/subscription","commits_url":"https://api.github.com/repos/silshack/spring2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/silshack/spring2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/silshack/spring2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/silshack/spring2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/silshack/spring2016/contents/{+path}","compare_url":"https://api.github.com/repos/silshack/spring2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silshack/spring2016/merges","archive_url":"https://api.github.com/repos/silshack/spring2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silshack/spring2016/downloads","issues_url":"https://api.github.com/repos/silshack/spring2016/issues{/number}","pulls_url":"https://api.github.com/repos/silshack/spring2016/pulls{/number}","milestones_url":"https://api.github.com/repos/silshack/spring2016/milestones{/number}","notifications_url":"https://api.github.com/repos/silshack/spring2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silshack/spring2016/labels{/name}","releases_url":"https://api.github.com/repos/silshack/spring2016/releases{/id}","created_at":"2015-11-03T02:55:43Z","updated_at":"2016-01-15T13:41:43Z","pushed_at":"2016-01-21T04:57:19Z","git_url":"git://github.com/silshack/spring2016.git","ssh_url":"git@github.com:silshack/spring2016.git","clone_url":"https://github.com/silshack/spring2016.git","svn_url":"https://github.com/silshack/spring2016","homepage":"http://silshack.github.io/spring2016","size":1588,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":26,"mirror_url":null,"open_issues_count":46,"forks":26,"open_issues":46,"watchers":1,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/silshack/spring2016/pulls/110"},"html":{"href":"https://github.com/silshack/spring2016/pull/110"},"issue":{"href":"https://api.github.com/repos/silshack/spring2016/issues/110"},"comments":{"href":"https://api.github.com/repos/silshack/spring2016/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/silshack/spring2016/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/silshack/spring2016/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/silshack/spring2016/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/silshack/spring2016/statuses/bf4a32e70bbdccd8cca4b0cb60454e9de03bd8fe"}}}}