{"action":"created","comment":{"url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/comments/172335602","pull_request_review_id":101335846,"id":172335602,"diff_hunk":"@@ -0,0 +1,144 @@\n+#-------------------\n+#Lesson_3\n+#-------------------\n+#Leap Year\n+year = int(input(\"Enter a year to check: \"))\n+\n+while year > 0:\n+    if (year % 400 == 0):\n+        print(\"LEAP\")\n+        break\n+    else:\n+        if (year%4 == 0) and (year%100 != 0):\n+            print(\"LEAP\")\n+            break\n+        else:\n+            print(\"COMMON\")\n+            break\n+\n+#Chocolate bar\n+firstValueOfPortion = int(input(\"Enter first value: \"))\n+secondValueOFPortion = int(input(\"Enter second value: \"))\n+numberOfSquares = int(input(\"Enter number of squares: \"))\n+\n+if (numberOfSquares%firstValueOfPortion == 0 and numberOfSquares/firstValueOfPortion < secondValueOFPortion) or (numberOfSquares%secondValueOFPortion == 0 and numberOfSquares/secondValueOFPortion < firstValueOfPortion):\n+    print(\"YES - we can divide choclate!\")\n+else:\n+    print(\"NO - we can't divide chocolate\")\n+\n+#Knight move\n+firstColumn = int(input(\"Enter first column: \"))\n+firstRow = int(input(\"Enter first row: \"))\n+secondColumn = int(input(\"Enter second column: \"))\n+secondRow = int(input(\"Enter second row: \"))\n+\n+row = abs(firstRow-secondRow)\n+column = abs(firstColumn-secondColumn)\n+\n+if row == 2 and column == 1 or row == 2 and column == 1:\n+    print(\"YES - we can move there!\")\n+else:\n+    print(\"NO - we can't move there!\")\n+\n+#Queen move\n+firstColumn = int(input(\"Enter first column: \"))\n+firstRow = int(input(\"Enter first row: \"))\n+secondColumn = int(input(\"Enter second column: \"))\n+secondRow = int(input(\"Enter second row: \"))\n+\n+row = abs(firstRow-secondRow)\n+column = abs(firstColumn-secondColumn)\n+\n+\n+if row == column or firstRow == secondRow or firstColumn== secondColumn:\n+    print(\"YES - we can move the queen there!\")\n+else:\n+    print(\"NO - we can't move queen there\")\n+\n+#Bishop Moves\n+firstColumn = int(input(\"Enter first column: \"))\n+firstRow = int(input(\"Enter first row: \"))\n+secondColumn = int(input(\"Enter second column: \"))\n+secondRow = int(input(\"Enter second row: \"))\n+\n+row = abs(firstRow-secondRow)\n+column = abs(firstColumn-secondColumn)\n+\n+if row == column:\n+    print(\"YES - we can move bishop there!\")\n+else:\n+    print(\"NO - we can't move bishop there!\")\n+\n+#---------------------------\n+#Lesson 4\n+#---------------------------","path":"students/sikorski_marcin/Lesson_2_-_Python_basics.py","position":74,"original_position":74,"commit_id":"72d8b0d70910f92b8eadb1730d6f3e095b63b9ee","original_commit_id":"72d8b0d70910f92b8eadb1730d6f3e095b63b9ee","user":{"login":"stickler-ci","id":16011037,"avatar_url":"https://avatars3.githubusercontent.com/u/16011037?v=4","gravatar_id":"","url":"https://api.github.com/users/stickler-ci","html_url":"https://github.com/stickler-ci","followers_url":"https://api.github.com/users/stickler-ci/followers","following_url":"https://api.github.com/users/stickler-ci/following{/other_user}","gists_url":"https://api.github.com/users/stickler-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/stickler-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stickler-ci/subscriptions","organizations_url":"https://api.github.com/users/stickler-ci/orgs","repos_url":"https://api.github.com/users/stickler-ci/repos","events_url":"https://api.github.com/users/stickler-ci/events{/privacy}","received_events_url":"https://api.github.com/users/stickler-ci/received_events","type":"User","site_admin":false},"body":"E265 block comment should start with '# '","created_at":"2018-03-05T21:33:09Z","updated_at":"2018-03-05T21:33:11Z","html_url":"https://github.com/jedzej/tietopythontraining-basic/pull/134#discussion_r172335602","pull_request_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/134","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/comments/172335602"},"html":{"href":"https://github.com/jedzej/tietopythontraining-basic/pull/134#discussion_r172335602"},"pull_request":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/134"}}},"pull_request":{"url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/134","id":172991907,"html_url":"https://github.com/jedzej/tietopythontraining-basic/pull/134","diff_url":"https://github.com/jedzej/tietopythontraining-basic/pull/134.diff","patch_url":"https://github.com/jedzej/tietopythontraining-basic/pull/134.patch","issue_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/134","number":134,"state":"open","locked":false,"title":"Lesson 2 - answers","user":{"login":"hakuzaijo","id":15124308,"avatar_url":"https://avatars3.githubusercontent.com/u/15124308?v=4","gravatar_id":"","url":"https://api.github.com/users/hakuzaijo","html_url":"https://github.com/hakuzaijo","followers_url":"https://api.github.com/users/hakuzaijo/followers","following_url":"https://api.github.com/users/hakuzaijo/following{/other_user}","gists_url":"https://api.github.com/users/hakuzaijo/gists{/gist_id}","starred_url":"https://api.github.com/users/hakuzaijo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakuzaijo/subscriptions","organizations_url":"https://api.github.com/users/hakuzaijo/orgs","repos_url":"https://api.github.com/users/hakuzaijo/repos","events_url":"https://api.github.com/users/hakuzaijo/events{/privacy}","received_events_url":"https://api.github.com/users/hakuzaijo/received_events","type":"User","site_admin":false},"body":"@kadilak83 Review, please?","created_at":"2018-03-05T21:30:29Z","updated_at":"2018-03-05T21:33:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9cf7d176ea62f455c0cd2aacd4acdb7c618ac8f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/134/commits","review_comments_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/134/comments","review_comment_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/134/comments","statuses_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/statuses/72d8b0d70910f92b8eadb1730d6f3e095b63b9ee","head":{"label":"hakuzaijo:master","ref":"master","sha":"72d8b0d70910f92b8eadb1730d6f3e095b63b9ee","user":{"login":"hakuzaijo","id":15124308,"avatar_url":"https://avatars3.githubusercontent.com/u/15124308?v=4","gravatar_id":"","url":"https://api.github.com/users/hakuzaijo","html_url":"https://github.com/hakuzaijo","followers_url":"https://api.github.com/users/hakuzaijo/followers","following_url":"https://api.github.com/users/hakuzaijo/following{/other_user}","gists_url":"https://api.github.com/users/hakuzaijo/gists{/gist_id}","starred_url":"https://api.github.com/users/hakuzaijo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakuzaijo/subscriptions","organizations_url":"https://api.github.com/users/hakuzaijo/orgs","repos_url":"https://api.github.com/users/hakuzaijo/repos","events_url":"https://api.github.com/users/hakuzaijo/events{/privacy}","received_events_url":"https://api.github.com/users/hakuzaijo/received_events","type":"User","site_admin":false},"repo":{"id":120668122,"name":"tietopythontraining-basic","full_name":"hakuzaijo/tietopythontraining-basic","owner":{"login":"hakuzaijo","id":15124308,"avatar_url":"https://avatars3.githubusercontent.com/u/15124308?v=4","gravatar_id":"","url":"https://api.github.com/users/hakuzaijo","html_url":"https://github.com/hakuzaijo","followers_url":"https://api.github.com/users/hakuzaijo/followers","following_url":"https://api.github.com/users/hakuzaijo/following{/other_user}","gists_url":"https://api.github.com/users/hakuzaijo/gists{/gist_id}","starred_url":"https://api.github.com/users/hakuzaijo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakuzaijo/subscriptions","organizations_url":"https://api.github.com/users/hakuzaijo/orgs","repos_url":"https://api.github.com/users/hakuzaijo/repos","events_url":"https://api.github.com/users/hakuzaijo/events{/privacy}","received_events_url":"https://api.github.com/users/hakuzaijo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hakuzaijo/tietopythontraining-basic","description":null,"fork":true,"url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic","forks_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/forks","keys_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/teams","hooks_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/hooks","issue_events_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/issues/events{/number}","events_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/events","assignees_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/assignees{/user}","branches_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/branches{/branch}","tags_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/tags","blobs_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/git/refs{/sha}","trees_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/statuses/{sha}","languages_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/languages","stargazers_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/stargazers","contributors_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/contributors","subscribers_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/subscribers","subscription_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/subscription","commits_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/commits{/sha}","git_commits_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/git/commits{/sha}","comments_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/comments{/number}","issue_comment_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/issues/comments{/number}","contents_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/contents/{+path}","compare_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/merges","archive_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/downloads","issues_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/issues{/number}","pulls_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/pulls{/number}","milestones_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/milestones{/number}","notifications_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/labels{/name}","releases_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/releases{/id}","deployments_url":"https://api.github.com/repos/hakuzaijo/tietopythontraining-basic/deployments","created_at":"2018-02-07T20:32:33Z","updated_at":"2018-02-07T20:32:35Z","pushed_at":"2018-03-05T21:28:52Z","git_url":"git://github.com/hakuzaijo/tietopythontraining-basic.git","ssh_url":"git@github.com:hakuzaijo/tietopythontraining-basic.git","clone_url":"https://github.com/hakuzaijo/tietopythontraining-basic.git","svn_url":"https://github.com/hakuzaijo/tietopythontraining-basic","homepage":null,"size":44,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jedzej:master","ref":"master","sha":"e727d4110dfd632323f3ba52a079ea88db1b85e2","user":{"login":"jedzej","id":57070,"avatar_url":"https://avatars0.githubusercontent.com/u/57070?v=4","gravatar_id":"","url":"https://api.github.com/users/jedzej","html_url":"https://github.com/jedzej","followers_url":"https://api.github.com/users/jedzej/followers","following_url":"https://api.github.com/users/jedzej/following{/other_user}","gists_url":"https://api.github.com/users/jedzej/gists{/gist_id}","starred_url":"https://api.github.com/users/jedzej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedzej/subscriptions","organizations_url":"https://api.github.com/users/jedzej/orgs","repos_url":"https://api.github.com/users/jedzej/repos","events_url":"https://api.github.com/users/jedzej/events{/privacy}","received_events_url":"https://api.github.com/users/jedzej/received_events","type":"User","site_admin":false},"repo":{"id":118122178,"name":"tietopythontraining-basic","full_name":"jedzej/tietopythontraining-basic","owner":{"login":"jedzej","id":57070,"avatar_url":"https://avatars0.githubusercontent.com/u/57070?v=4","gravatar_id":"","url":"https://api.github.com/users/jedzej","html_url":"https://github.com/jedzej","followers_url":"https://api.github.com/users/jedzej/followers","following_url":"https://api.github.com/users/jedzej/following{/other_user}","gists_url":"https://api.github.com/users/jedzej/gists{/gist_id}","starred_url":"https://api.github.com/users/jedzej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedzej/subscriptions","organizations_url":"https://api.github.com/users/jedzej/orgs","repos_url":"https://api.github.com/users/jedzej/repos","events_url":"https://api.github.com/users/jedzej/events{/privacy}","received_events_url":"https://api.github.com/users/jedzej/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jedzej/tietopythontraining-basic","description":null,"fork":false,"url":"https://api.github.com/repos/jedzej/tietopythontraining-basic","forks_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/forks","keys_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/teams","hooks_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/hooks","issue_events_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/events{/number}","events_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/events","assignees_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/assignees{/user}","branches_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/branches{/branch}","tags_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/tags","blobs_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/git/refs{/sha}","trees_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/statuses/{sha}","languages_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/languages","stargazers_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/stargazers","contributors_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/contributors","subscribers_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/subscribers","subscription_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/subscription","commits_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/commits{/sha}","git_commits_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/git/commits{/sha}","comments_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/comments{/number}","issue_comment_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/comments{/number}","contents_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/contents/{+path}","compare_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/merges","archive_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/downloads","issues_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues{/number}","pulls_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls{/number}","milestones_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/milestones{/number}","notifications_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/labels{/name}","releases_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/releases{/id}","deployments_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/deployments","created_at":"2018-01-19T12:23:02Z","updated_at":"2018-03-02T11:09:40Z","pushed_at":"2018-03-05T21:30:30Z","git_url":"git://github.com/jedzej/tietopythontraining-basic.git","ssh_url":"git@github.com:jedzej/tietopythontraining-basic.git","clone_url":"https://github.com/jedzej/tietopythontraining-basic.git","svn_url":"https://github.com/jedzej/tietopythontraining-basic","homepage":null,"size":202,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":73,"mirror_url":null,"archived":false,"open_issues_count":30,"license":null,"forks":73,"open_issues":30,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/134"},"html":{"href":"https://github.com/jedzej/tietopythontraining-basic/pull/134"},"issue":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/134"},"comments":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/statuses/72d8b0d70910f92b8eadb1730d6f3e095b63b9ee"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"stickler-ci"}}