{"action":"created","comment":{"url":"https://api.github.com/repos/NT-Line-team/Behave_test/pulls/comments/122360975","pull_request_review_id":44470693,"id":122360975,"diff_hunk":"@@ -0,0 +1,27 @@\n+def drawSquare(inputNumber):\n+    outString =\"\"\n+    for row in range (0, inputNumber):     \n+        for col in range (0,inputNumber):\n+            if (row == 0):\n+                outString = \"0 \" * inputNumber\n+            elif (row == inputNumber-1):\n+                outString = \"0 \" * inputNumber\n+            else:\n+                if(col==0 or col==inputNumber-1):\n+                    outString=outString + \"0 \"                \n+                elif (row == col):\n+                    outString = outString + \"0 \"\n+                elif (row < col):\n+                    outString = outString + \"- \"\n+                elif (row > col):\n+                    outString = outString + \"+ \"\n+        print outString;\n+        outString=\"\" \n+\n+\n+if __name__ == '__main__':\n+    counter =0\n+    counter = raw_input(\"Please input N: \")\n+    drawSquare(int(counter))\n+    print \"Thank you. End\"\n+    pass","path":"print_InterestingSquare.py","position":27,"original_position":27,"commit_id":"e3db0d337c3cbfbfd80b5369aa75913b797b4f56","original_commit_id":"e3db0d337c3cbfbfd80b5369aa75913b797b4f56","user":{"login":"hungphamviet","id":11736360,"avatar_url":"https://avatars3.githubusercontent.com/u/11736360?v=3","gravatar_id":"","url":"https://api.github.com/users/hungphamviet","html_url":"https://github.com/hungphamviet","followers_url":"https://api.github.com/users/hungphamviet/followers","following_url":"https://api.github.com/users/hungphamviet/following{/other_user}","gists_url":"https://api.github.com/users/hungphamviet/gists{/gist_id}","starred_url":"https://api.github.com/users/hungphamviet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungphamviet/subscriptions","organizations_url":"https://api.github.com/users/hungphamviet/orgs","repos_url":"https://api.github.com/users/hungphamviet/repos","events_url":"https://api.github.com/users/hungphamviet/events{/privacy}","received_events_url":"https://api.github.com/users/hungphamviet/received_events","type":"User","site_admin":false},"body":"No need to have `pass` here.","created_at":"2017-06-16T04:17:22Z","updated_at":"2017-06-16T04:17:46Z","html_url":"https://github.com/NT-Line-team/Behave_test/pull/56#discussion_r122360975","pull_request_url":"https://api.github.com/repos/NT-Line-team/Behave_test/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/NT-Line-team/Behave_test/pulls/comments/122360975"},"html":{"href":"https://github.com/NT-Line-team/Behave_test/pull/56#discussion_r122360975"},"pull_request":{"href":"https://api.github.com/repos/NT-Line-team/Behave_test/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/NT-Line-team/Behave_test/pulls/56","id":125176598,"html_url":"https://github.com/NT-Line-team/Behave_test/pull/56","diff_url":"https://github.com/NT-Line-team/Behave_test/pull/56.diff","patch_url":"https://github.com/NT-Line-team/Behave_test/pull/56.patch","issue_url":"https://api.github.com/repos/NT-Line-team/Behave_test/issues/56","number":56,"state":"open","locked":false,"title":"BI-30: UyenPhamH - Implement and update for print out an interesting square with O, +, -","user":{"login":"Uyenphamh","id":27678061,"avatar_url":"https://avatars1.githubusercontent.com/u/27678061?v=3","gravatar_id":"","url":"https://api.github.com/users/Uyenphamh","html_url":"https://github.com/Uyenphamh","followers_url":"https://api.github.com/users/Uyenphamh/followers","following_url":"https://api.github.com/users/Uyenphamh/following{/other_user}","gists_url":"https://api.github.com/users/Uyenphamh/gists{/gist_id}","starred_url":"https://api.github.com/users/Uyenphamh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Uyenphamh/subscriptions","organizations_url":"https://api.github.com/users/Uyenphamh/orgs","repos_url":"https://api.github.com/users/Uyenphamh/repos","events_url":"https://api.github.com/users/Uyenphamh/events{/privacy}","received_events_url":"https://api.github.com/users/Uyenphamh/received_events","type":"User","site_admin":false},"body":"## Exercise\r\n\r\n* [Exercise-30](https://github.com/NT-Line-team/Behave_test/issues/30)\r\n\r\n## Overview\r\n\r\nThis exercise is for practicing for loop and if statements.\r\n\r\nWrite the program that allow user to input N, then print the square as below:\r\n\r\nPlease input N:10\r\n\r\nO  O  O  O  O  O  O  O  O  O  \r\nO  O  -  -  -  -  -  -  -  O \r\n\r\nO  +  O  -  -  -  -  -  -  O \r\n\r\nO  +  +  O  -  -  -  -  -  O \r\n\r\nO  +  +  +  O  -  -  -  -  O \r\n\r\nO  +  +  +  +  O  -  -  -  O \r\n\r\nO  +  +  +  +  +  O  -  -  O \r\n\r\nO  +  +  +  +  +  +  O  -  O \r\n\r\nO  +  +  +  +  +  +  +  O  O \r\n\r\nO  O  O  O  O  O  O  O  O  O \r\n\r\n\r\n### Docs\r\n- [X] No Doc Changes.","created_at":"2017-06-12T16:24:22Z","updated_at":"2017-06-16T04:17:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b6d985042b89ae99f388c63752a00a0fbb8ad08","assignee":{"login":"hungphamviet","id":11736360,"avatar_url":"https://avatars3.githubusercontent.com/u/11736360?v=3","gravatar_id":"","url":"https://api.github.com/users/hungphamviet","html_url":"https://github.com/hungphamviet","followers_url":"https://api.github.com/users/hungphamviet/followers","following_url":"https://api.github.com/users/hungphamviet/following{/other_user}","gists_url":"https://api.github.com/users/hungphamviet/gists{/gist_id}","starred_url":"https://api.github.com/users/hungphamviet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungphamviet/subscriptions","organizations_url":"https://api.github.com/users/hungphamviet/orgs","repos_url":"https://api.github.com/users/hungphamviet/repos","events_url":"https://api.github.com/users/hungphamviet/events{/privacy}","received_events_url":"https://api.github.com/users/hungphamviet/received_events","type":"User","site_admin":false},"assignees":[{"login":"hungphamviet","id":11736360,"avatar_url":"https://avatars3.githubusercontent.com/u/11736360?v=3","gravatar_id":"","url":"https://api.github.com/users/hungphamviet","html_url":"https://github.com/hungphamviet","followers_url":"https://api.github.com/users/hungphamviet/followers","following_url":"https://api.github.com/users/hungphamviet/following{/other_user}","gists_url":"https://api.github.com/users/hungphamviet/gists{/gist_id}","starred_url":"https://api.github.com/users/hungphamviet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungphamviet/subscriptions","organizations_url":"https://api.github.com/users/hungphamviet/orgs","repos_url":"https://api.github.com/users/hungphamviet/repos","events_url":"https://api.github.com/users/hungphamviet/events{/privacy}","received_events_url":"https://api.github.com/users/hungphamviet/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/NT-Line-team/Behave_test/pulls/56/commits","review_comments_url":"https://api.github.com/repos/NT-Line-team/Behave_test/pulls/56/comments","review_comment_url":"https://api.github.com/repos/NT-Line-team/Behave_test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NT-Line-team/Behave_test/issues/56/comments","statuses_url":"https://api.github.com/repos/NT-Line-team/Behave_test/statuses/e3db0d337c3cbfbfd80b5369aa75913b797b4f56","head":{"label":"NT-Line-team:Uyenphamh-Exercise30","ref":"Uyenphamh-Exercise30","sha":"e3db0d337c3cbfbfd80b5369aa75913b797b4f56","user":{"login":"NT-Line-team","id":27508364,"avatar_url":"https://avatars2.githubusercontent.com/u/27508364?v=3","gravatar_id":"","url":"https://api.github.com/users/NT-Line-team","html_url":"https://github.com/NT-Line-team","followers_url":"https://api.github.com/users/NT-Line-team/followers","following_url":"https://api.github.com/users/NT-Line-team/following{/other_user}","gists_url":"https://api.github.com/users/NT-Line-team/gists{/gist_id}","starred_url":"https://api.github.com/users/NT-Line-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NT-Line-team/subscriptions","organizations_url":"https://api.github.com/users/NT-Line-team/orgs","repos_url":"https://api.github.com/users/NT-Line-team/repos","events_url":"https://api.github.com/users/NT-Line-team/events{/privacy}","received_events_url":"https://api.github.com/users/NT-Line-team/received_events","type":"Organization","site_admin":false},"repo":{"id":88287463,"name":"Behave_test","full_name":"NT-Line-team/Behave_test","owner":{"login":"NT-Line-team","id":27508364,"avatar_url":"https://avatars2.githubusercontent.com/u/27508364?v=3","gravatar_id":"","url":"https://api.github.com/users/NT-Line-team","html_url":"https://github.com/NT-Line-team","followers_url":"https://api.github.com/users/NT-Line-team/followers","following_url":"https://api.github.com/users/NT-Line-team/following{/other_user}","gists_url":"https://api.github.com/users/NT-Line-team/gists{/gist_id}","starred_url":"https://api.github.com/users/NT-Line-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NT-Line-team/subscriptions","organizations_url":"https://api.github.com/users/NT-Line-team/orgs","repos_url":"https://api.github.com/users/NT-Line-team/repos","events_url":"https://api.github.com/users/NT-Line-team/events{/privacy}","received_events_url":"https://api.github.com/users/NT-Line-team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NT-Line-team/Behave_test","description":null,"fork":false,"url":"https://api.github.com/repos/NT-Line-team/Behave_test","forks_url":"https://api.github.com/repos/NT-Line-team/Behave_test/forks","keys_url":"https://api.github.com/repos/NT-Line-team/Behave_test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NT-Line-team/Behave_test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NT-Line-team/Behave_test/teams","hooks_url":"https://api.github.com/repos/NT-Line-team/Behave_test/hooks","issue_events_url":"https://api.github.com/repos/NT-Line-team/Behave_test/issues/events{/number}","events_url":"https://api.github.com/repos/NT-Line-team/Behave_test/events","assignees_url":"https://api.github.com/repos/NT-Line-team/Behave_test/assignees{/user}","branches_url":"https://api.github.com/repos/NT-Line-team/Behave_test/branches{/branch}","tags_url":"https://api.github.com/repos/NT-Line-team/Behave_test/tags","blobs_url":"https://api.github.com/repos/NT-Line-team/Behave_test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NT-Line-team/Behave_test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NT-Line-team/Behave_test/git/refs{/sha}","trees_url":"https://api.github.com/repos/NT-Line-team/Behave_test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NT-Line-team/Behave_test/statuses/{sha}","languages_url":"https://api.github.com/repos/NT-Line-team/Behave_test/languages","stargazers_url":"https://api.github.com/repos/NT-Line-team/Behave_test/stargazers","contributors_url":"https://api.github.com/repos/NT-Line-team/Behave_test/contributors","subscribers_url":"https://api.github.com/repos/NT-Line-team/Behave_test/subscribers","subscription_url":"https://api.github.com/repos/NT-Line-team/Behave_test/subscription","commits_url":"https://api.github.com/repos/NT-Line-team/Behave_test/commits{/sha}","git_commits_url":"https://api.github.com/repos/NT-Line-team/Behave_test/git/commits{/sha}","comments_url":"https://api.github.com/repos/NT-Line-team/Behave_test/comments{/number}","issue_comment_url":"https://api.github.com/repos/NT-Line-team/Behave_test/issues/comments{/number}","contents_url":"https://api.github.com/repos/NT-Line-team/Behave_test/contents/{+path}","compare_url":"https://api.github.com/repos/NT-Line-team/Behave_test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NT-Line-team/Behave_test/merges","archive_url":"https://api.github.com/repos/NT-Line-team/Behave_test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NT-Line-team/Behave_test/downloads","issues_url":"https://api.github.com/repos/NT-Line-team/Behave_test/issues{/number}","pulls_url":"https://api.github.com/repos/NT-Line-team/Behave_test/pulls{/number}","milestones_url":"https://api.github.com/repos/NT-Line-team/Behave_test/milestones{/number}","notifications_url":"https://api.github.com/repos/NT-Line-team/Behave_test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NT-Line-team/Behave_test/labels{/name}","releases_url":"https://api.github.com/repos/NT-Line-team/Behave_test/releases{/id}","deployments_url":"https://api.github.com/repos/NT-Line-team/Behave_test/deployments","created_at":"2017-04-14T17:14:53Z","updated_at":"2017-06-02T07:00:29Z","pushed_at":"2017-06-16T03:56:54Z","git_url":"git://github.com/NT-Line-team/Behave_test.git","ssh_url":"git@github.com:NT-Line-team/Behave_test.git","clone_url":"https://github.com/NT-Line-team/Behave_test.git","svn_url":"https://github.com/NT-Line-team/Behave_test","homepage":null,"size":7611,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":35,"forks":0,"open_issues":35,"watchers":0,"default_branch":"develop"}},"base":{"label":"NT-Line-team:develop","ref":"develop","sha":"e106cb2ec0abc193a00129f216b308ce761f228a","user":{"login":"NT-Line-team","id":27508364,"avatar_url":"https://avatars2.githubusercontent.com/u/27508364?v=3","gravatar_id":"","url":"https://api.github.com/users/NT-Line-team","html_url":"https://github.com/NT-Line-team","followers_url":"https://api.github.com/users/NT-Line-team/followers","following_url":"https://api.github.com/users/NT-Line-team/following{/other_user}","gists_url":"https://api.github.com/users/NT-Line-team/gists{/gist_id}","starred_url":"https://api.github.com/users/NT-Line-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NT-Line-team/subscriptions","organizations_url":"https://api.github.com/users/NT-Line-team/orgs","repos_url":"https://api.github.com/users/NT-Line-team/repos","events_url":"https://api.github.com/users/NT-Line-team/events{/privacy}","received_events_url":"https://api.github.com/users/NT-Line-team/received_events","type":"Organization","site_admin":false},"repo":{"id":88287463,"name":"Behave_test","full_name":"NT-Line-team/Behave_test","owner":{"login":"NT-Line-team","id":27508364,"avatar_url":"https://avatars2.githubusercontent.com/u/27508364?v=3","gravatar_id":"","url":"https://api.github.com/users/NT-Line-team","html_url":"https://github.com/NT-Line-team","followers_url":"https://api.github.com/users/NT-Line-team/followers","following_url":"https://api.github.com/users/NT-Line-team/following{/other_user}","gists_url":"https://api.github.com/users/NT-Line-team/gists{/gist_id}","starred_url":"https://api.github.com/users/NT-Line-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NT-Line-team/subscriptions","organizations_url":"https://api.github.com/users/NT-Line-team/orgs","repos_url":"https://api.github.com/users/NT-Line-team/repos","events_url":"https://api.github.com/users/NT-Line-team/events{/privacy}","received_events_url":"https://api.github.com/users/NT-Line-team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NT-Line-team/Behave_test","description":null,"fork":false,"url":"https://api.github.com/repos/NT-Line-team/Behave_test","forks_url":"https://api.github.com/repos/NT-Line-team/Behave_test/forks","keys_url":"https://api.github.com/repos/NT-Line-team/Behave_test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NT-Line-team/Behave_test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NT-Line-team/Behave_test/teams","hooks_url":"https://api.github.com/repos/NT-Line-team/Behave_test/hooks","issue_events_url":"https://api.github.com/repos/NT-Line-team/Behave_test/issues/events{/number}","events_url":"https://api.github.com/repos/NT-Line-team/Behave_test/events","assignees_url":"https://api.github.com/repos/NT-Line-team/Behave_test/assignees{/user}","branches_url":"https://api.github.com/repos/NT-Line-team/Behave_test/branches{/branch}","tags_url":"https://api.github.com/repos/NT-Line-team/Behave_test/tags","blobs_url":"https://api.github.com/repos/NT-Line-team/Behave_test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NT-Line-team/Behave_test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NT-Line-team/Behave_test/git/refs{/sha}","trees_url":"https://api.github.com/repos/NT-Line-team/Behave_test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NT-Line-team/Behave_test/statuses/{sha}","languages_url":"https://api.github.com/repos/NT-Line-team/Behave_test/languages","stargazers_url":"https://api.github.com/repos/NT-Line-team/Behave_test/stargazers","contributors_url":"https://api.github.com/repos/NT-Line-team/Behave_test/contributors","subscribers_url":"https://api.github.com/repos/NT-Line-team/Behave_test/subscribers","subscription_url":"https://api.github.com/repos/NT-Line-team/Behave_test/subscription","commits_url":"https://api.github.com/repos/NT-Line-team/Behave_test/commits{/sha}","git_commits_url":"https://api.github.com/repos/NT-Line-team/Behave_test/git/commits{/sha}","comments_url":"https://api.github.com/repos/NT-Line-team/Behave_test/comments{/number}","issue_comment_url":"https://api.github.com/repos/NT-Line-team/Behave_test/issues/comments{/number}","contents_url":"https://api.github.com/repos/NT-Line-team/Behave_test/contents/{+path}","compare_url":"https://api.github.com/repos/NT-Line-team/Behave_test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NT-Line-team/Behave_test/merges","archive_url":"https://api.github.com/repos/NT-Line-team/Behave_test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NT-Line-team/Behave_test/downloads","issues_url":"https://api.github.com/repos/NT-Line-team/Behave_test/issues{/number}","pulls_url":"https://api.github.com/repos/NT-Line-team/Behave_test/pulls{/number}","milestones_url":"https://api.github.com/repos/NT-Line-team/Behave_test/milestones{/number}","notifications_url":"https://api.github.com/repos/NT-Line-team/Behave_test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NT-Line-team/Behave_test/labels{/name}","releases_url":"https://api.github.com/repos/NT-Line-team/Behave_test/releases{/id}","deployments_url":"https://api.github.com/repos/NT-Line-team/Behave_test/deployments","created_at":"2017-04-14T17:14:53Z","updated_at":"2017-06-02T07:00:29Z","pushed_at":"2017-06-16T03:56:54Z","git_url":"git://github.com/NT-Line-team/Behave_test.git","ssh_url":"git@github.com:NT-Line-team/Behave_test.git","clone_url":"https://github.com/NT-Line-team/Behave_test.git","svn_url":"https://github.com/NT-Line-team/Behave_test","homepage":null,"size":7611,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":35,"forks":0,"open_issues":35,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/NT-Line-team/Behave_test/pulls/56"},"html":{"href":"https://github.com/NT-Line-team/Behave_test/pull/56"},"issue":{"href":"https://api.github.com/repos/NT-Line-team/Behave_test/issues/56"},"comments":{"href":"https://api.github.com/repos/NT-Line-team/Behave_test/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/NT-Line-team/Behave_test/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/NT-Line-team/Behave_test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NT-Line-team/Behave_test/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/NT-Line-team/Behave_test/statuses/e3db0d337c3cbfbfd80b5369aa75913b797b4f56"}}}}
{"actor":{"display_login":"hungphamviet"}}