{"action":"created","comment":{"url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/pulls/comments/48511416","id":48511416,"diff_hunk":"@@ -5,20 +5,25 @@ instructor_notes: Feel free to re-organize the headings (or add/remove headings)\n \n # What is a String?\n \n-Replace me with your response...\n+A string object can basically be viewed as a container that holds a sequence of one or more bytes of data. Most of the time, these bytes generally respresent characters that reference written human language. There are, of course, exceptions in more advanced situations. \n+the value of strings are generally enclosed in single or double quotation marks 'like this' \"or this.\" Double quotations allow for escape sequences--single quotations does not.\n+For Ruby, the default chatacter set is ASCII. However, it is possible to use other encoding sets, such as UTF-8 or $KCODE.\n \n # What are some examples of information that would be Strings as opposed to some other data type?\n \n-Replace me with your response...\n+Strings required when attempting to facilitate user interactions or input. If the program needs to ask the user a question, it must do so via a string. \n+Any sort of user response is captured in a string.Even if the user enters a number via a response, it generally needs to convert the string into an integer.\n \n # What is one way, using Ruby, to retrieve the 6th character in a String like `\"Ada Lovelace\"`? How about the 8th character? What happens if you try to retrieve the value of the _99th_ character (Or any character that doesn't exist)?\n \n-Replace me with your response...\n+to retrieve the 6th character, you could use: \"Ada Lovelace\"[5] # => 'O' \n+To retrieve the 8th character, you could use: \"Ada Lovelace\"[7] # => 'E'\n+If you attempted to find the 99th character in the aformentioned string, it would simply return nil, as the string only contains 12 bytes total. \n \n # The previous question asks about finding, for example, the 6th character in a String. Is it possible to find the **-6th** (Notice the negative symbol!) character in a String? What does that even mean?\n \n-Replace me with your response...\n+Yes, it is possible. It would be C . when using a negative number, Ruby will count backwards, right to left from the length of the string, starting at -1.\n \n # What is one way, using Ruby, to replace certain characters in a string with some other set of characters? For example, given `\"Sumeet Jain\"`, how would you replace all of the `e` characters in my name with exclamation marks? (So it would be `\"Sum!!t Jain\"`.)\n+\"Sumeet Jain\".gsub!(/e/, \"!\")","path":"lib/strings.md","position":28,"original_position":28,"commit_id":"bc26be3c31e54cb71c5e92f23c7b754a471208f1","original_commit_id":"bc26be3c31e54cb71c5e92f23c7b754a471208f1","user":{"login":"sumeetjain","id":29388,"avatar_url":"https://avatars.githubusercontent.com/u/29388?v=3","gravatar_id":"","url":"https://api.github.com/users/sumeetjain","html_url":"https://github.com/sumeetjain","followers_url":"https://api.github.com/users/sumeetjain/followers","following_url":"https://api.github.com/users/sumeetjain/following{/other_user}","gists_url":"https://api.github.com/users/sumeetjain/gists{/gist_id}","starred_url":"https://api.github.com/users/sumeetjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumeetjain/subscriptions","organizations_url":"https://api.github.com/users/sumeetjain/orgs","repos_url":"https://api.github.com/users/sumeetjain/repos","events_url":"https://api.github.com/users/sumeetjain/events{/privacy}","received_events_url":"https://api.github.com/users/sumeetjain/received_events","type":"User","site_admin":false},"body":"In the case of `\"Sumeet Jain\".gsub!(/e/, \"!\")`, what would happen if you tried `\"Sumeet Jain\".gsub!(\"e\", \"!\")` instead? (Notice I replaced the forward slashes with quotations instead.)","created_at":"2015-12-28T22:54:29Z","updated_at":"2015-12-28T22:54:29Z","html_url":"https://github.com/omahacodeschool/ruby-prompt__strings/pull/7#discussion_r48511416","pull_request_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/pulls/comments/48511416"},"html":{"href":"https://github.com/omahacodeschool/ruby-prompt__strings/pull/7#discussion_r48511416"},"pull_request":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/pulls/7","id":54629906,"html_url":"https://github.com/omahacodeschool/ruby-prompt__strings/pull/7","diff_url":"https://github.com/omahacodeschool/ruby-prompt__strings/pull/7.diff","patch_url":"https://github.com/omahacodeschool/ruby-prompt__strings/pull/7.patch","issue_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/issues/7","number":7,"state":"open","locked":false,"title":"donezo","user":{"login":"maedae","id":16280155,"avatar_url":"https://avatars.githubusercontent.com/u/16280155?v=3","gravatar_id":"","url":"https://api.github.com/users/maedae","html_url":"https://github.com/maedae","followers_url":"https://api.github.com/users/maedae/followers","following_url":"https://api.github.com/users/maedae/following{/other_user}","gists_url":"https://api.github.com/users/maedae/gists{/gist_id}","starred_url":"https://api.github.com/users/maedae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maedae/subscriptions","organizations_url":"https://api.github.com/users/maedae/orgs","repos_url":"https://api.github.com/users/maedae/repos","events_url":"https://api.github.com/users/maedae/events{/privacy}","received_events_url":"https://api.github.com/users/maedae/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-28T03:16:49Z","updated_at":"2015-12-28T22:54:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f35ef528d7ddc517264374210c3c64ff4ec81636","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/pulls/7/commits","review_comments_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/pulls/7/comments","review_comment_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/issues/7/comments","statuses_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/statuses/bc26be3c31e54cb71c5e92f23c7b754a471208f1","head":{"label":"maedae:master","ref":"master","sha":"bc26be3c31e54cb71c5e92f23c7b754a471208f1","user":{"login":"maedae","id":16280155,"avatar_url":"https://avatars.githubusercontent.com/u/16280155?v=3","gravatar_id":"","url":"https://api.github.com/users/maedae","html_url":"https://github.com/maedae","followers_url":"https://api.github.com/users/maedae/followers","following_url":"https://api.github.com/users/maedae/following{/other_user}","gists_url":"https://api.github.com/users/maedae/gists{/gist_id}","starred_url":"https://api.github.com/users/maedae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maedae/subscriptions","organizations_url":"https://api.github.com/users/maedae/orgs","repos_url":"https://api.github.com/users/maedae/repos","events_url":"https://api.github.com/users/maedae/events{/privacy}","received_events_url":"https://api.github.com/users/maedae/received_events","type":"User","site_admin":false},"repo":{"id":47936906,"name":"ruby-prompt__strings","full_name":"maedae/ruby-prompt__strings","owner":{"login":"maedae","id":16280155,"avatar_url":"https://avatars.githubusercontent.com/u/16280155?v=3","gravatar_id":"","url":"https://api.github.com/users/maedae","html_url":"https://github.com/maedae","followers_url":"https://api.github.com/users/maedae/followers","following_url":"https://api.github.com/users/maedae/following{/other_user}","gists_url":"https://api.github.com/users/maedae/gists{/gist_id}","starred_url":"https://api.github.com/users/maedae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maedae/subscriptions","organizations_url":"https://api.github.com/users/maedae/orgs","repos_url":"https://api.github.com/users/maedae/repos","events_url":"https://api.github.com/users/maedae/events{/privacy}","received_events_url":"https://api.github.com/users/maedae/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maedae/ruby-prompt__strings","description":"","fork":true,"url":"https://api.github.com/repos/maedae/ruby-prompt__strings","forks_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/forks","keys_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/teams","hooks_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/hooks","issue_events_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/issues/events{/number}","events_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/events","assignees_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/assignees{/user}","branches_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/branches{/branch}","tags_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/tags","blobs_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/git/refs{/sha}","trees_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/statuses/{sha}","languages_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/languages","stargazers_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/stargazers","contributors_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/contributors","subscribers_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/subscribers","subscription_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/subscription","commits_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/commits{/sha}","git_commits_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/git/commits{/sha}","comments_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/comments{/number}","issue_comment_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/issues/comments{/number}","contents_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/contents/{+path}","compare_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/merges","archive_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/downloads","issues_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/issues{/number}","pulls_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/pulls{/number}","milestones_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/milestones{/number}","notifications_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/labels{/name}","releases_url":"https://api.github.com/repos/maedae/ruby-prompt__strings/releases{/id}","created_at":"2015-12-13T21:22:19Z","updated_at":"2015-12-12T15:42:12Z","pushed_at":"2015-12-17T04:48:45Z","git_url":"git://github.com/maedae/ruby-prompt__strings.git","ssh_url":"git@github.com:maedae/ruby-prompt__strings.git","clone_url":"https://github.com/maedae/ruby-prompt__strings.git","svn_url":"https://github.com/maedae/ruby-prompt__strings","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"omahacodeschool:master","ref":"master","sha":"049ac4b773917ea37d8fa23b23d07df1242c6475","user":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"repo":{"id":47848828,"name":"ruby-prompt__strings","full_name":"omahacodeschool/ruby-prompt__strings","owner":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omahacodeschool/ruby-prompt__strings","description":"","fork":false,"url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings","forks_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/forks","keys_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/teams","hooks_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/hooks","issue_events_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/issues/events{/number}","events_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/events","assignees_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/assignees{/user}","branches_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/branches{/branch}","tags_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/tags","blobs_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/git/refs{/sha}","trees_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/statuses/{sha}","languages_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/languages","stargazers_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/stargazers","contributors_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/contributors","subscribers_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/subscribers","subscription_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/subscription","commits_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/commits{/sha}","git_commits_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/git/commits{/sha}","comments_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/comments{/number}","issue_comment_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/issues/comments{/number}","contents_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/contents/{+path}","compare_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/merges","archive_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/downloads","issues_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/issues{/number}","pulls_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/pulls{/number}","milestones_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/milestones{/number}","notifications_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/labels{/name}","releases_url":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/releases{/id}","created_at":"2015-12-11T20:16:06Z","updated_at":"2015-12-12T15:42:12Z","pushed_at":"2015-12-28T03:16:51Z","git_url":"git://github.com/omahacodeschool/ruby-prompt__strings.git","ssh_url":"git@github.com:omahacodeschool/ruby-prompt__strings.git","clone_url":"https://github.com/omahacodeschool/ruby-prompt__strings.git","svn_url":"https://github.com/omahacodeschool/ruby-prompt__strings","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":1,"forks":10,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/pulls/7"},"html":{"href":"https://github.com/omahacodeschool/ruby-prompt__strings/pull/7"},"issue":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/issues/7"},"comments":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/omahacodeschool/ruby-prompt__strings/statuses/bc26be3c31e54cb71c5e92f23c7b754a471208f1"}}}}