{"action":"created","comment":{"url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/comments/167146494","pull_request_review_id":95322730,"id":167146494,"diff_hunk":"@@ -0,0 +1,147 @@\n+\n+def exchange_first_last(seq):\n+    # exchanges the first/last items in a sequence then copies the new sequence into a new string, list or tuple\n+\n+    # performs this part of the if statement if the sequence is of type string\n+    if type(seq) is str:\n+        y = seq[-1] + seq[1:-1] + seq[0]\n+        new_string = y\n+        return new_string","path":"students/etwum/lesson03/slicing.py","position":9,"original_position":9,"commit_id":"bfca81fe7612ca14cfe78eebabb9e595261bc946","original_commit_id":"bfca81fe7612ca14cfe78eebabb9e595261bc946","user":{"login":"natasha-aleksandrova","id":1928658,"avatar_url":"https://avatars2.githubusercontent.com/u/1928658?v=4","gravatar_id":"","url":"https://api.github.com/users/natasha-aleksandrova","html_url":"https://github.com/natasha-aleksandrova","followers_url":"https://api.github.com/users/natasha-aleksandrova/followers","following_url":"https://api.github.com/users/natasha-aleksandrova/following{/other_user}","gists_url":"https://api.github.com/users/natasha-aleksandrova/gists{/gist_id}","starred_url":"https://api.github.com/users/natasha-aleksandrova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natasha-aleksandrova/subscriptions","organizations_url":"https://api.github.com/users/natasha-aleksandrova/orgs","repos_url":"https://api.github.com/users/natasha-aleksandrova/repos","events_url":"https://api.github.com/users/natasha-aleksandrova/events{/privacy}","received_events_url":"https://api.github.com/users/natasha-aleksandrova/received_events","type":"User","site_admin":false},"body":"you can just do `return seq[-1] + seq[1:-1] + seq[0]`, no need for extra variables","created_at":"2018-02-09T06:05:07Z","updated_at":"2018-02-09T06:11:47Z","html_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/103#discussion_r167146494","pull_request_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/103","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/comments/167146494"},"html":{"href":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/103#discussion_r167146494"},"pull_request":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/103"}}},"pull_request":{"url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/103","id":168139615,"html_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/103","diff_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/103.diff","patch_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/103.patch","issue_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/103","number":103,"state":"open","locked":false,"title":"Lesson 03 - Slicing - Emmanuel Twum","user":{"login":"etwum","id":33198751,"avatar_url":"https://avatars0.githubusercontent.com/u/33198751?v=4","gravatar_id":"","url":"https://api.github.com/users/etwum","html_url":"https://github.com/etwum","followers_url":"https://api.github.com/users/etwum/followers","following_url":"https://api.github.com/users/etwum/following{/other_user}","gists_url":"https://api.github.com/users/etwum/gists{/gist_id}","starred_url":"https://api.github.com/users/etwum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etwum/subscriptions","organizations_url":"https://api.github.com/users/etwum/orgs","repos_url":"https://api.github.com/users/etwum/repos","events_url":"https://api.github.com/users/etwum/events{/privacy}","received_events_url":"https://api.github.com/users/etwum/received_events","type":"User","site_admin":false},"body":"assignment complete","created_at":"2018-02-09T02:32:18Z","updated_at":"2018-02-09T06:11:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82d0b750b469b74cfa865fcdf2e1cbbe984ddd92","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/103/commits","review_comments_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/103/comments","review_comment_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/103/comments","statuses_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/statuses/bfca81fe7612ca14cfe78eebabb9e595261bc946","head":{"label":"etwum:master","ref":"master","sha":"bfca81fe7612ca14cfe78eebabb9e595261bc946","user":{"login":"etwum","id":33198751,"avatar_url":"https://avatars0.githubusercontent.com/u/33198751?v=4","gravatar_id":"","url":"https://api.github.com/users/etwum","html_url":"https://github.com/etwum","followers_url":"https://api.github.com/users/etwum/followers","following_url":"https://api.github.com/users/etwum/following{/other_user}","gists_url":"https://api.github.com/users/etwum/gists{/gist_id}","starred_url":"https://api.github.com/users/etwum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etwum/subscriptions","organizations_url":"https://api.github.com/users/etwum/orgs","repos_url":"https://api.github.com/users/etwum/repos","events_url":"https://api.github.com/users/etwum/events{/privacy}","received_events_url":"https://api.github.com/users/etwum/received_events","type":"User","site_admin":false},"repo":{"id":118989359,"name":"Self_Paced-Online","full_name":"etwum/Self_Paced-Online","owner":{"login":"etwum","id":33198751,"avatar_url":"https://avatars0.githubusercontent.com/u/33198751?v=4","gravatar_id":"","url":"https://api.github.com/users/etwum","html_url":"https://github.com/etwum","followers_url":"https://api.github.com/users/etwum/followers","following_url":"https://api.github.com/users/etwum/following{/other_user}","gists_url":"https://api.github.com/users/etwum/gists{/gist_id}","starred_url":"https://api.github.com/users/etwum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etwum/subscriptions","organizations_url":"https://api.github.com/users/etwum/orgs","repos_url":"https://api.github.com/users/etwum/repos","events_url":"https://api.github.com/users/etwum/events{/privacy}","received_events_url":"https://api.github.com/users/etwum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/etwum/Self_Paced-Online","description":"Class repository for the self paced online class","fork":true,"url":"https://api.github.com/repos/etwum/Self_Paced-Online","forks_url":"https://api.github.com/repos/etwum/Self_Paced-Online/forks","keys_url":"https://api.github.com/repos/etwum/Self_Paced-Online/keys{/key_id}","collaborators_url":"https://api.github.com/repos/etwum/Self_Paced-Online/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/etwum/Self_Paced-Online/teams","hooks_url":"https://api.github.com/repos/etwum/Self_Paced-Online/hooks","issue_events_url":"https://api.github.com/repos/etwum/Self_Paced-Online/issues/events{/number}","events_url":"https://api.github.com/repos/etwum/Self_Paced-Online/events","assignees_url":"https://api.github.com/repos/etwum/Self_Paced-Online/assignees{/user}","branches_url":"https://api.github.com/repos/etwum/Self_Paced-Online/branches{/branch}","tags_url":"https://api.github.com/repos/etwum/Self_Paced-Online/tags","blobs_url":"https://api.github.com/repos/etwum/Self_Paced-Online/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/etwum/Self_Paced-Online/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/etwum/Self_Paced-Online/git/refs{/sha}","trees_url":"https://api.github.com/repos/etwum/Self_Paced-Online/git/trees{/sha}","statuses_url":"https://api.github.com/repos/etwum/Self_Paced-Online/statuses/{sha}","languages_url":"https://api.github.com/repos/etwum/Self_Paced-Online/languages","stargazers_url":"https://api.github.com/repos/etwum/Self_Paced-Online/stargazers","contributors_url":"https://api.github.com/repos/etwum/Self_Paced-Online/contributors","subscribers_url":"https://api.github.com/repos/etwum/Self_Paced-Online/subscribers","subscription_url":"https://api.github.com/repos/etwum/Self_Paced-Online/subscription","commits_url":"https://api.github.com/repos/etwum/Self_Paced-Online/commits{/sha}","git_commits_url":"https://api.github.com/repos/etwum/Self_Paced-Online/git/commits{/sha}","comments_url":"https://api.github.com/repos/etwum/Self_Paced-Online/comments{/number}","issue_comment_url":"https://api.github.com/repos/etwum/Self_Paced-Online/issues/comments{/number}","contents_url":"https://api.github.com/repos/etwum/Self_Paced-Online/contents/{+path}","compare_url":"https://api.github.com/repos/etwum/Self_Paced-Online/compare/{base}...{head}","merges_url":"https://api.github.com/repos/etwum/Self_Paced-Online/merges","archive_url":"https://api.github.com/repos/etwum/Self_Paced-Online/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/etwum/Self_Paced-Online/downloads","issues_url":"https://api.github.com/repos/etwum/Self_Paced-Online/issues{/number}","pulls_url":"https://api.github.com/repos/etwum/Self_Paced-Online/pulls{/number}","milestones_url":"https://api.github.com/repos/etwum/Self_Paced-Online/milestones{/number}","notifications_url":"https://api.github.com/repos/etwum/Self_Paced-Online/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/etwum/Self_Paced-Online/labels{/name}","releases_url":"https://api.github.com/repos/etwum/Self_Paced-Online/releases{/id}","deployments_url":"https://api.github.com/repos/etwum/Self_Paced-Online/deployments","created_at":"2018-01-26T01:31:41Z","updated_at":"2018-01-26T01:31:42Z","pushed_at":"2018-02-09T02:30:08Z","git_url":"git://github.com/etwum/Self_Paced-Online.git","ssh_url":"git@github.com:etwum/Self_Paced-Online.git","clone_url":"https://github.com/etwum/Self_Paced-Online.git","svn_url":"https://github.com/etwum/Self_Paced-Online","homepage":null,"size":37,"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":"UWPCE-PythonCert-ClassRepos:master","ref":"master","sha":"362820cfee6894f0b62b16a64d3c6a66e68d2273","user":{"login":"UWPCE-PythonCert-ClassRepos","id":34701012,"avatar_url":"https://avatars0.githubusercontent.com/u/34701012?v=4","gravatar_id":"","url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos","html_url":"https://github.com/UWPCE-PythonCert-ClassRepos","followers_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/followers","following_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/following{/other_user}","gists_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/gists{/gist_id}","starred_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/subscriptions","organizations_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/orgs","repos_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/repos","events_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/events{/privacy}","received_events_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/received_events","type":"Organization","site_admin":false},"repo":{"id":115212391,"name":"Self_Paced-Online","full_name":"UWPCE-PythonCert-ClassRepos/Self_Paced-Online","owner":{"login":"UWPCE-PythonCert-ClassRepos","id":34701012,"avatar_url":"https://avatars0.githubusercontent.com/u/34701012?v=4","gravatar_id":"","url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos","html_url":"https://github.com/UWPCE-PythonCert-ClassRepos","followers_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/followers","following_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/following{/other_user}","gists_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/gists{/gist_id}","starred_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/subscriptions","organizations_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/orgs","repos_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/repos","events_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/events{/privacy}","received_events_url":"https://api.github.com/users/UWPCE-PythonCert-ClassRepos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online","description":"Class repository for the self paced online class","fork":false,"url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online","forks_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/forks","keys_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/teams","hooks_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/hooks","issue_events_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/events{/number}","events_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/events","assignees_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/assignees{/user}","branches_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/branches{/branch}","tags_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/tags","blobs_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/git/refs{/sha}","trees_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/statuses/{sha}","languages_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/languages","stargazers_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/stargazers","contributors_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/contributors","subscribers_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/subscribers","subscription_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/subscription","commits_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/commits{/sha}","git_commits_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/git/commits{/sha}","comments_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/comments{/number}","issue_comment_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/comments{/number}","contents_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/contents/{+path}","compare_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/merges","archive_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/downloads","issues_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues{/number}","pulls_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls{/number}","milestones_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/milestones{/number}","notifications_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/labels{/name}","releases_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/releases{/id}","deployments_url":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/deployments","created_at":"2017-12-23T17:52:41Z","updated_at":"2018-01-27T18:50:31Z","pushed_at":"2018-02-09T05:43:21Z","git_url":"git://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online.git","ssh_url":"git@github.com:UWPCE-PythonCert-ClassRepos/Self_Paced-Online.git","clone_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online.git","svn_url":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online","homepage":null,"size":277,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":31,"open_issues":8,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/103"},"html":{"href":"https://github.com/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pull/103"},"issue":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/103"},"comments":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/UWPCE-PythonCert-ClassRepos/Self_Paced-Online/statuses/bfca81fe7612ca14cfe78eebabb9e595261bc946"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"natasha-aleksandrova"}}