{"action":"created","comment":{"url":"https://api.github.com/repos/Pallaparaju/Hackerrank/pulls/comments/361444420","pull_request_review_id":336507454,"id":361444420,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM2MTQ0NDQyMA==","diff_hunk":"@@ -0,0 +1,32 @@\n+#We add a Leap Day on February 29, almost every four years. The leap day is an extra, or intercalary day and we add it to the shortest month of the year, February.\n+#In the Gregorian calendar three criteria must be taken into account to identify leap years:\n+#The year can be evenly divided by 4, is a leap year, unless:\n+#The year can be evenly divided by 100, it is NOT a leap year, unless:\n+#The year is also evenly divisible by 400. Then it is a leap year.\n+#This means that in the Gregorian calendar, the years 2000 and 2400 are leap years, while 1800, 1900, 2100, 2200, 2300 and 2500 are NOT leap years.Source\n+\n+#Task\n+#You are given the year, and you have to write a function to check if the year is leap or not.\n+\n+#Note that you have to complete the function and remaining code is given as template.\n+\n+#Input Format\n+\n+#Read y, the year that needs to be checked.\n+\n+#Output Format\n+#Output is taken care of by the template. Your function must return a boolean value (True/False)\n+\n+def is_leap(year):\n+    leap = False\n+\n+    if year% 400 == 0: \n+        leap = True\n+    elif year%100 ==0:\n+        leap = False\n+    elif year%4 ==0:\n+        leap = True\n+    return leap\n+\n+year = int(input())\n+print(is_leap(year))","path":"Leap_year","position":32,"original_position":32,"commit_id":"76dfe83dda181043432f57dc8e2bd77a99c36f70","original_commit_id":"76dfe83dda181043432f57dc8e2bd77a99c36f70","user":{"login":"Pallaparaju","id":37256305,"node_id":"MDQ6VXNlcjM3MjU2MzA1","avatar_url":"https://avatars3.githubusercontent.com/u/37256305?v=4","gravatar_id":"","url":"https://api.github.com/users/Pallaparaju","html_url":"https://github.com/Pallaparaju","followers_url":"https://api.github.com/users/Pallaparaju/followers","following_url":"https://api.github.com/users/Pallaparaju/following{/other_user}","gists_url":"https://api.github.com/users/Pallaparaju/gists{/gist_id}","starred_url":"https://api.github.com/users/Pallaparaju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pallaparaju/subscriptions","organizations_url":"https://api.github.com/users/Pallaparaju/orgs","repos_url":"https://api.github.com/users/Pallaparaju/repos","events_url":"https://api.github.com/users/Pallaparaju/events{/privacy}","received_events_url":"https://api.github.com/users/Pallaparaju/received_events","type":"User","site_admin":false},"body":"Code","created_at":"2019-12-26T12:21:10Z","updated_at":"2019-12-26T12:21:21Z","html_url":"https://github.com/Pallaparaju/Hackerrank/pull/1#discussion_r361444420","pull_request_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Pallaparaju/Hackerrank/pulls/comments/361444420"},"html":{"href":"https://github.com/Pallaparaju/Hackerrank/pull/1#discussion_r361444420"},"pull_request":{"href":"https://api.github.com/repos/Pallaparaju/Hackerrank/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Pallaparaju/Hackerrank/pulls/1","id":356959180,"node_id":"MDExOlB1bGxSZXF1ZXN0MzU2OTU5MTgw","html_url":"https://github.com/Pallaparaju/Hackerrank/pull/1","diff_url":"https://github.com/Pallaparaju/Hackerrank/pull/1.diff","patch_url":"https://github.com/Pallaparaju/Hackerrank/pull/1.patch","issue_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/issues/1","number":1,"state":"open","locked":false,"title":"Leap_Year","user":{"login":"Pallaparaju","id":37256305,"node_id":"MDQ6VXNlcjM3MjU2MzA1","avatar_url":"https://avatars3.githubusercontent.com/u/37256305?v=4","gravatar_id":"","url":"https://api.github.com/users/Pallaparaju","html_url":"https://github.com/Pallaparaju","followers_url":"https://api.github.com/users/Pallaparaju/followers","following_url":"https://api.github.com/users/Pallaparaju/following{/other_user}","gists_url":"https://api.github.com/users/Pallaparaju/gists{/gist_id}","starred_url":"https://api.github.com/users/Pallaparaju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pallaparaju/subscriptions","organizations_url":"https://api.github.com/users/Pallaparaju/orgs","repos_url":"https://api.github.com/users/Pallaparaju/repos","events_url":"https://api.github.com/users/Pallaparaju/events{/privacy}","received_events_url":"https://api.github.com/users/Pallaparaju/received_events","type":"User","site_admin":false},"body":"Leap_Year or not ","created_at":"2019-12-26T12:19:56Z","updated_at":"2019-12-26T12:21:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d26a41201cda8cb77a9cd639d22fe0e4e0b20051","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/issues/1/comments","statuses_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/statuses/76dfe83dda181043432f57dc8e2bd77a99c36f70","head":{"label":"Pallaparaju:Hackerrank","ref":"Hackerrank","sha":"76dfe83dda181043432f57dc8e2bd77a99c36f70","user":{"login":"Pallaparaju","id":37256305,"node_id":"MDQ6VXNlcjM3MjU2MzA1","avatar_url":"https://avatars3.githubusercontent.com/u/37256305?v=4","gravatar_id":"","url":"https://api.github.com/users/Pallaparaju","html_url":"https://github.com/Pallaparaju","followers_url":"https://api.github.com/users/Pallaparaju/followers","following_url":"https://api.github.com/users/Pallaparaju/following{/other_user}","gists_url":"https://api.github.com/users/Pallaparaju/gists{/gist_id}","starred_url":"https://api.github.com/users/Pallaparaju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pallaparaju/subscriptions","organizations_url":"https://api.github.com/users/Pallaparaju/orgs","repos_url":"https://api.github.com/users/Pallaparaju/repos","events_url":"https://api.github.com/users/Pallaparaju/events{/privacy}","received_events_url":"https://api.github.com/users/Pallaparaju/received_events","type":"User","site_admin":false},"repo":{"id":230258124,"node_id":"MDEwOlJlcG9zaXRvcnkyMzAyNTgxMjQ=","name":"Hackerrank","full_name":"Pallaparaju/Hackerrank","private":false,"owner":{"login":"Pallaparaju","id":37256305,"node_id":"MDQ6VXNlcjM3MjU2MzA1","avatar_url":"https://avatars3.githubusercontent.com/u/37256305?v=4","gravatar_id":"","url":"https://api.github.com/users/Pallaparaju","html_url":"https://github.com/Pallaparaju","followers_url":"https://api.github.com/users/Pallaparaju/followers","following_url":"https://api.github.com/users/Pallaparaju/following{/other_user}","gists_url":"https://api.github.com/users/Pallaparaju/gists{/gist_id}","starred_url":"https://api.github.com/users/Pallaparaju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pallaparaju/subscriptions","organizations_url":"https://api.github.com/users/Pallaparaju/orgs","repos_url":"https://api.github.com/users/Pallaparaju/repos","events_url":"https://api.github.com/users/Pallaparaju/events{/privacy}","received_events_url":"https://api.github.com/users/Pallaparaju/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Pallaparaju/Hackerrank","description":"Introduction to Python","fork":false,"url":"https://api.github.com/repos/Pallaparaju/Hackerrank","forks_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/forks","keys_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/teams","hooks_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/hooks","issue_events_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/issues/events{/number}","events_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/events","assignees_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/assignees{/user}","branches_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/branches{/branch}","tags_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/tags","blobs_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/statuses/{sha}","languages_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/languages","stargazers_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/stargazers","contributors_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/contributors","subscribers_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/subscribers","subscription_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/subscription","commits_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/contents/{+path}","compare_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/merges","archive_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/downloads","issues_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/issues{/number}","pulls_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/pulls{/number}","milestones_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/milestones{/number}","notifications_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/labels{/name}","releases_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/releases{/id}","deployments_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/deployments","created_at":"2019-12-26T12:10:27Z","updated_at":"2019-12-26T12:10:30Z","pushed_at":"2019-12-26T12:19:57Z","git_url":"git://github.com/Pallaparaju/Hackerrank.git","ssh_url":"git@github.com:Pallaparaju/Hackerrank.git","clone_url":"https://github.com/Pallaparaju/Hackerrank.git","svn_url":"https://github.com/Pallaparaju/Hackerrank","homepage":null,"size":0,"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,"disabled":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Pallaparaju:master","ref":"master","sha":"7a8bd8d52b4caa2674308758ffcc84a0cd42c304","user":{"login":"Pallaparaju","id":37256305,"node_id":"MDQ6VXNlcjM3MjU2MzA1","avatar_url":"https://avatars3.githubusercontent.com/u/37256305?v=4","gravatar_id":"","url":"https://api.github.com/users/Pallaparaju","html_url":"https://github.com/Pallaparaju","followers_url":"https://api.github.com/users/Pallaparaju/followers","following_url":"https://api.github.com/users/Pallaparaju/following{/other_user}","gists_url":"https://api.github.com/users/Pallaparaju/gists{/gist_id}","starred_url":"https://api.github.com/users/Pallaparaju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pallaparaju/subscriptions","organizations_url":"https://api.github.com/users/Pallaparaju/orgs","repos_url":"https://api.github.com/users/Pallaparaju/repos","events_url":"https://api.github.com/users/Pallaparaju/events{/privacy}","received_events_url":"https://api.github.com/users/Pallaparaju/received_events","type":"User","site_admin":false},"repo":{"id":230258124,"node_id":"MDEwOlJlcG9zaXRvcnkyMzAyNTgxMjQ=","name":"Hackerrank","full_name":"Pallaparaju/Hackerrank","private":false,"owner":{"login":"Pallaparaju","id":37256305,"node_id":"MDQ6VXNlcjM3MjU2MzA1","avatar_url":"https://avatars3.githubusercontent.com/u/37256305?v=4","gravatar_id":"","url":"https://api.github.com/users/Pallaparaju","html_url":"https://github.com/Pallaparaju","followers_url":"https://api.github.com/users/Pallaparaju/followers","following_url":"https://api.github.com/users/Pallaparaju/following{/other_user}","gists_url":"https://api.github.com/users/Pallaparaju/gists{/gist_id}","starred_url":"https://api.github.com/users/Pallaparaju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pallaparaju/subscriptions","organizations_url":"https://api.github.com/users/Pallaparaju/orgs","repos_url":"https://api.github.com/users/Pallaparaju/repos","events_url":"https://api.github.com/users/Pallaparaju/events{/privacy}","received_events_url":"https://api.github.com/users/Pallaparaju/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Pallaparaju/Hackerrank","description":"Introduction to Python","fork":false,"url":"https://api.github.com/repos/Pallaparaju/Hackerrank","forks_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/forks","keys_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/teams","hooks_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/hooks","issue_events_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/issues/events{/number}","events_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/events","assignees_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/assignees{/user}","branches_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/branches{/branch}","tags_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/tags","blobs_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/statuses/{sha}","languages_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/languages","stargazers_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/stargazers","contributors_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/contributors","subscribers_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/subscribers","subscription_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/subscription","commits_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/contents/{+path}","compare_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/merges","archive_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/downloads","issues_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/issues{/number}","pulls_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/pulls{/number}","milestones_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/milestones{/number}","notifications_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/labels{/name}","releases_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/releases{/id}","deployments_url":"https://api.github.com/repos/Pallaparaju/Hackerrank/deployments","created_at":"2019-12-26T12:10:27Z","updated_at":"2019-12-26T12:10:30Z","pushed_at":"2019-12-26T12:19:57Z","git_url":"git://github.com/Pallaparaju/Hackerrank.git","ssh_url":"git@github.com:Pallaparaju/Hackerrank.git","clone_url":"https://github.com/Pallaparaju/Hackerrank.git","svn_url":"https://github.com/Pallaparaju/Hackerrank","homepage":null,"size":0,"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,"disabled":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/Pallaparaju/Hackerrank/pulls/1"},"html":{"href":"https://github.com/Pallaparaju/Hackerrank/pull/1"},"issue":{"href":"https://api.github.com/repos/Pallaparaju/Hackerrank/issues/1"},"comments":{"href":"https://api.github.com/repos/Pallaparaju/Hackerrank/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Pallaparaju/Hackerrank/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Pallaparaju/Hackerrank/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Pallaparaju/Hackerrank/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Pallaparaju/Hackerrank/statuses/76dfe83dda181043432f57dc8e2bd77a99c36f70"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Pallaparaju"}}