{"action":"created","comment":{"url":"https://api.github.com/repos/Tom-Willemsen/random/pulls/comments/175285552","pull_request_review_id":104793706,"id":175285552,"diff_hunk":"@@ -0,0 +1,65 @@\n+from __future__ import division  # need this to allow me to divide two ints and get a float\n+import math  # need this for the sqrt function\n+\n+print(\"Python Quadratic Solver\")\n+a = int(input(\"Enter the a values: \"))\n+b = int(input(\"Enter the b values: \"))\n+c = int(input(\"Enter the c values: \"))\n+\n+# Explain what's actually going on here above\n+\n+dis = float(pow(b, 2) - 4 * a * c)  # this is the discrimate if you remember any maths? I had to look it up lol\n+if a == 0:  # not a quadratic so easy to solve\n+    if b == 0:\n+        print\n+        \"No solution\"\n+    else:\n+        print\n+        \"solution is x = {}\".format(-c / b)\n+\n+elif dis == 0:  # solves the easy solution where the descriminate just cancels\n+    x = float(b / (2 * a))\n+    print\n+    \"only one solution: {}\".format(x)\n+\n+elif dis < 0:  # deals with complex numbers\n+    y = float(b / (2 * a))  # non complex part of the answer","path":"elliott,py","position":26,"original_position":26,"commit_id":"5fc5cc1f7e01aa24c64b6706b668795b15c6f232","original_commit_id":"5fc5cc1f7e01aa24c64b6706b668795b15c6f232","user":{"login":"Tom-Willemsen","id":24375813,"avatar_url":"https://avatars1.githubusercontent.com/u/24375813?v=4","gravatar_id":"","url":"https://api.github.com/users/Tom-Willemsen","html_url":"https://github.com/Tom-Willemsen","followers_url":"https://api.github.com/users/Tom-Willemsen/followers","following_url":"https://api.github.com/users/Tom-Willemsen/following{/other_user}","gists_url":"https://api.github.com/users/Tom-Willemsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Tom-Willemsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tom-Willemsen/subscriptions","organizations_url":"https://api.github.com/users/Tom-Willemsen/orgs","repos_url":"https://api.github.com/users/Tom-Willemsen/repos","events_url":"https://api.github.com/users/Tom-Willemsen/events{/privacy}","received_events_url":"https://api.github.com/users/Tom-Willemsen/received_events","type":"User","site_admin":false},"body":"Should be `-b / (2 * a)`","created_at":"2018-03-18T11:21:24Z","updated_at":"2018-03-18T11:21:24Z","html_url":"https://github.com/Tom-Willemsen/random/pull/1#discussion_r175285552","pull_request_url":"https://api.github.com/repos/Tom-Willemsen/random/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Tom-Willemsen/random/pulls/comments/175285552"},"html":{"href":"https://github.com/Tom-Willemsen/random/pull/1#discussion_r175285552"},"pull_request":{"href":"https://api.github.com/repos/Tom-Willemsen/random/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Tom-Willemsen/random/pulls/1","id":175725895,"html_url":"https://github.com/Tom-Willemsen/random/pull/1","diff_url":"https://github.com/Tom-Willemsen/random/pull/1.diff","patch_url":"https://github.com/Tom-Willemsen/random/pull/1.patch","issue_url":"https://api.github.com/repos/Tom-Willemsen/random/issues/1","number":1,"state":"open","locked":false,"title":"Create elliott,py","user":{"login":"Tom-Willemsen","id":24375813,"avatar_url":"https://avatars1.githubusercontent.com/u/24375813?v=4","gravatar_id":"","url":"https://api.github.com/users/Tom-Willemsen","html_url":"https://github.com/Tom-Willemsen","followers_url":"https://api.github.com/users/Tom-Willemsen/followers","following_url":"https://api.github.com/users/Tom-Willemsen/following{/other_user}","gists_url":"https://api.github.com/users/Tom-Willemsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Tom-Willemsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tom-Willemsen/subscriptions","organizations_url":"https://api.github.com/users/Tom-Willemsen/orgs","repos_url":"https://api.github.com/users/Tom-Willemsen/repos","events_url":"https://api.github.com/users/Tom-Willemsen/events{/privacy}","received_events_url":"https://api.github.com/users/Tom-Willemsen/received_events","type":"User","site_admin":false},"body":"Elliott's code.","created_at":"2018-03-17T23:04:11Z","updated_at":"2018-03-18T11:21:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae87871a4c3166b184425e5c2d50e3ab13e6fb75","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Tom-Willemsen/random/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Tom-Willemsen/random/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Tom-Willemsen/random/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tom-Willemsen/random/issues/1/comments","statuses_url":"https://api.github.com/repos/Tom-Willemsen/random/statuses/5fc5cc1f7e01aa24c64b6706b668795b15c6f232","head":{"label":"Tom-Willemsen:v1","ref":"v1","sha":"5fc5cc1f7e01aa24c64b6706b668795b15c6f232","user":{"login":"Tom-Willemsen","id":24375813,"avatar_url":"https://avatars1.githubusercontent.com/u/24375813?v=4","gravatar_id":"","url":"https://api.github.com/users/Tom-Willemsen","html_url":"https://github.com/Tom-Willemsen","followers_url":"https://api.github.com/users/Tom-Willemsen/followers","following_url":"https://api.github.com/users/Tom-Willemsen/following{/other_user}","gists_url":"https://api.github.com/users/Tom-Willemsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Tom-Willemsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tom-Willemsen/subscriptions","organizations_url":"https://api.github.com/users/Tom-Willemsen/orgs","repos_url":"https://api.github.com/users/Tom-Willemsen/repos","events_url":"https://api.github.com/users/Tom-Willemsen/events{/privacy}","received_events_url":"https://api.github.com/users/Tom-Willemsen/received_events","type":"User","site_admin":false},"repo":{"id":125675829,"name":"random","full_name":"Tom-Willemsen/random","owner":{"login":"Tom-Willemsen","id":24375813,"avatar_url":"https://avatars1.githubusercontent.com/u/24375813?v=4","gravatar_id":"","url":"https://api.github.com/users/Tom-Willemsen","html_url":"https://github.com/Tom-Willemsen","followers_url":"https://api.github.com/users/Tom-Willemsen/followers","following_url":"https://api.github.com/users/Tom-Willemsen/following{/other_user}","gists_url":"https://api.github.com/users/Tom-Willemsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Tom-Willemsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tom-Willemsen/subscriptions","organizations_url":"https://api.github.com/users/Tom-Willemsen/orgs","repos_url":"https://api.github.com/users/Tom-Willemsen/repos","events_url":"https://api.github.com/users/Tom-Willemsen/events{/privacy}","received_events_url":"https://api.github.com/users/Tom-Willemsen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tom-Willemsen/random","description":null,"fork":false,"url":"https://api.github.com/repos/Tom-Willemsen/random","forks_url":"https://api.github.com/repos/Tom-Willemsen/random/forks","keys_url":"https://api.github.com/repos/Tom-Willemsen/random/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tom-Willemsen/random/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tom-Willemsen/random/teams","hooks_url":"https://api.github.com/repos/Tom-Willemsen/random/hooks","issue_events_url":"https://api.github.com/repos/Tom-Willemsen/random/issues/events{/number}","events_url":"https://api.github.com/repos/Tom-Willemsen/random/events","assignees_url":"https://api.github.com/repos/Tom-Willemsen/random/assignees{/user}","branches_url":"https://api.github.com/repos/Tom-Willemsen/random/branches{/branch}","tags_url":"https://api.github.com/repos/Tom-Willemsen/random/tags","blobs_url":"https://api.github.com/repos/Tom-Willemsen/random/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tom-Willemsen/random/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tom-Willemsen/random/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tom-Willemsen/random/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tom-Willemsen/random/statuses/{sha}","languages_url":"https://api.github.com/repos/Tom-Willemsen/random/languages","stargazers_url":"https://api.github.com/repos/Tom-Willemsen/random/stargazers","contributors_url":"https://api.github.com/repos/Tom-Willemsen/random/contributors","subscribers_url":"https://api.github.com/repos/Tom-Willemsen/random/subscribers","subscription_url":"https://api.github.com/repos/Tom-Willemsen/random/subscription","commits_url":"https://api.github.com/repos/Tom-Willemsen/random/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tom-Willemsen/random/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tom-Willemsen/random/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tom-Willemsen/random/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tom-Willemsen/random/contents/{+path}","compare_url":"https://api.github.com/repos/Tom-Willemsen/random/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tom-Willemsen/random/merges","archive_url":"https://api.github.com/repos/Tom-Willemsen/random/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tom-Willemsen/random/downloads","issues_url":"https://api.github.com/repos/Tom-Willemsen/random/issues{/number}","pulls_url":"https://api.github.com/repos/Tom-Willemsen/random/pulls{/number}","milestones_url":"https://api.github.com/repos/Tom-Willemsen/random/milestones{/number}","notifications_url":"https://api.github.com/repos/Tom-Willemsen/random/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tom-Willemsen/random/labels{/name}","releases_url":"https://api.github.com/repos/Tom-Willemsen/random/releases{/id}","deployments_url":"https://api.github.com/repos/Tom-Willemsen/random/deployments","created_at":"2018-03-17T23:01:41Z","updated_at":"2018-03-17T23:02:06Z","pushed_at":"2018-03-17T23:04:12Z","git_url":"git://github.com/Tom-Willemsen/random.git","ssh_url":"git@github.com:Tom-Willemsen/random.git","clone_url":"https://github.com/Tom-Willemsen/random.git","svn_url":"https://github.com/Tom-Willemsen/random","homepage":null,"size":2,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Tom-Willemsen:master","ref":"master","sha":"9c17e4bfe181f7359a796f16ae8a89b1e0b7a2db","user":{"login":"Tom-Willemsen","id":24375813,"avatar_url":"https://avatars1.githubusercontent.com/u/24375813?v=4","gravatar_id":"","url":"https://api.github.com/users/Tom-Willemsen","html_url":"https://github.com/Tom-Willemsen","followers_url":"https://api.github.com/users/Tom-Willemsen/followers","following_url":"https://api.github.com/users/Tom-Willemsen/following{/other_user}","gists_url":"https://api.github.com/users/Tom-Willemsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Tom-Willemsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tom-Willemsen/subscriptions","organizations_url":"https://api.github.com/users/Tom-Willemsen/orgs","repos_url":"https://api.github.com/users/Tom-Willemsen/repos","events_url":"https://api.github.com/users/Tom-Willemsen/events{/privacy}","received_events_url":"https://api.github.com/users/Tom-Willemsen/received_events","type":"User","site_admin":false},"repo":{"id":125675829,"name":"random","full_name":"Tom-Willemsen/random","owner":{"login":"Tom-Willemsen","id":24375813,"avatar_url":"https://avatars1.githubusercontent.com/u/24375813?v=4","gravatar_id":"","url":"https://api.github.com/users/Tom-Willemsen","html_url":"https://github.com/Tom-Willemsen","followers_url":"https://api.github.com/users/Tom-Willemsen/followers","following_url":"https://api.github.com/users/Tom-Willemsen/following{/other_user}","gists_url":"https://api.github.com/users/Tom-Willemsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Tom-Willemsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tom-Willemsen/subscriptions","organizations_url":"https://api.github.com/users/Tom-Willemsen/orgs","repos_url":"https://api.github.com/users/Tom-Willemsen/repos","events_url":"https://api.github.com/users/Tom-Willemsen/events{/privacy}","received_events_url":"https://api.github.com/users/Tom-Willemsen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tom-Willemsen/random","description":null,"fork":false,"url":"https://api.github.com/repos/Tom-Willemsen/random","forks_url":"https://api.github.com/repos/Tom-Willemsen/random/forks","keys_url":"https://api.github.com/repos/Tom-Willemsen/random/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tom-Willemsen/random/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tom-Willemsen/random/teams","hooks_url":"https://api.github.com/repos/Tom-Willemsen/random/hooks","issue_events_url":"https://api.github.com/repos/Tom-Willemsen/random/issues/events{/number}","events_url":"https://api.github.com/repos/Tom-Willemsen/random/events","assignees_url":"https://api.github.com/repos/Tom-Willemsen/random/assignees{/user}","branches_url":"https://api.github.com/repos/Tom-Willemsen/random/branches{/branch}","tags_url":"https://api.github.com/repos/Tom-Willemsen/random/tags","blobs_url":"https://api.github.com/repos/Tom-Willemsen/random/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tom-Willemsen/random/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tom-Willemsen/random/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tom-Willemsen/random/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tom-Willemsen/random/statuses/{sha}","languages_url":"https://api.github.com/repos/Tom-Willemsen/random/languages","stargazers_url":"https://api.github.com/repos/Tom-Willemsen/random/stargazers","contributors_url":"https://api.github.com/repos/Tom-Willemsen/random/contributors","subscribers_url":"https://api.github.com/repos/Tom-Willemsen/random/subscribers","subscription_url":"https://api.github.com/repos/Tom-Willemsen/random/subscription","commits_url":"https://api.github.com/repos/Tom-Willemsen/random/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tom-Willemsen/random/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tom-Willemsen/random/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tom-Willemsen/random/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tom-Willemsen/random/contents/{+path}","compare_url":"https://api.github.com/repos/Tom-Willemsen/random/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tom-Willemsen/random/merges","archive_url":"https://api.github.com/repos/Tom-Willemsen/random/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tom-Willemsen/random/downloads","issues_url":"https://api.github.com/repos/Tom-Willemsen/random/issues{/number}","pulls_url":"https://api.github.com/repos/Tom-Willemsen/random/pulls{/number}","milestones_url":"https://api.github.com/repos/Tom-Willemsen/random/milestones{/number}","notifications_url":"https://api.github.com/repos/Tom-Willemsen/random/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tom-Willemsen/random/labels{/name}","releases_url":"https://api.github.com/repos/Tom-Willemsen/random/releases{/id}","deployments_url":"https://api.github.com/repos/Tom-Willemsen/random/deployments","created_at":"2018-03-17T23:01:41Z","updated_at":"2018-03-17T23:02:06Z","pushed_at":"2018-03-17T23:04:12Z","git_url":"git://github.com/Tom-Willemsen/random.git","ssh_url":"git@github.com:Tom-Willemsen/random.git","clone_url":"https://github.com/Tom-Willemsen/random.git","svn_url":"https://github.com/Tom-Willemsen/random","homepage":null,"size":2,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Tom-Willemsen/random/pulls/1"},"html":{"href":"https://github.com/Tom-Willemsen/random/pull/1"},"issue":{"href":"https://api.github.com/repos/Tom-Willemsen/random/issues/1"},"comments":{"href":"https://api.github.com/repos/Tom-Willemsen/random/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Tom-Willemsen/random/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Tom-Willemsen/random/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tom-Willemsen/random/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Tom-Willemsen/random/statuses/5fc5cc1f7e01aa24c64b6706b668795b15c6f232"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Tom-Willemsen"}}