{"id":38711,"date":"2016-10-20T18:27:52","date_gmt":"2016-10-20T23:27:52","guid":{"rendered":"http:\/\/shiannescamilla.wordpress.com\/?p=715"},"modified":"2016-10-20T18:27:52","modified_gmt":"2016-10-20T23:27:52","slug":"like-a-guitar","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/like-a-guitar\/","title":{"rendered":"Like a guitar"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"https:\/\/shiannescamilla.wordpress.com\/2016\/10\/20\/like-a-guitar\/\"><a href=\"https:\/\/shiannescamilla.wordpress.com\">Codebuster<\/a><\/a><\/em><br \/><\/p>\n<p>Strings, strings, strings. Such a little word for the concept it holds. Strings are one of the most basic types on python, and therefore they make up a big part of any programmers&#8217; life.<\/p>\n<p>Strings literally mean a chain of characters, any variable that is text-based. It can be letters, words and even numbers. However, numbers in a string format are taken as labels, so you can&#8217;t do any mathematical operation with them.<\/p>\n<p>In order to use strings you just need to do is declare it, and declaring it literally only takes quotation marks, as such:<\/p>\n<blockquote><p>string1= &#8220;Hello folks&#8221;<\/p><\/blockquote>\n<p>Even though they are pretty easy, you can do a number of things with strings, the simplest things you do with them are:<\/p>\n<ul>\n<li>Measuring length: You can count how many characters are in a string, in a simple way:<br \/>\nprint len(string)<\/li>\n<li>Adding two strings: If you ever want to add two strings, in order to creat a new string you just need to use the &#8220;+&#8221; symbol:<br \/>\nNewString=string1+string2<\/li>\n<li>Slice a string: Since strings are a number of characters <em>strung\u00a0<\/em>together you can check a certain character in that string, for example:<br \/>\nlastLetter= string[0]<\/li>\n<li>Repeat a string: If you ever want to duplicate the string, all you need to use is the &#8220;*&#8221;:<br \/>\nDoublestring: String*2<\/li>\n<\/ul>\n<p>&nbsp;<\/p><br \/>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/shiannescamilla.wordpress.com\/715\/\"><img alt=\"\" border=\"0\" src=\"http:\/\/feeds.wordpress.com\/1.0\/comments\/shiannescamilla.wordpress.com\/715\/\" \/><\/a> <img alt=\"\" border=\"0\" src=\"https:\/\/pixel.wp.com\/b.gif?host=shiannescamilla.wordpress.com&#038;blog=115353408&%23038;post=715&%23038;subd=shiannescamilla&%23038;ref=&%23038;feed=1\" width=\"1\" height=\"1\" \/>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at Codebuster Strings, strings, strings. Such a little word for the concept it holds. Strings are one of the most basic types on python, and therefore they make up a big part of any programmers&#8217; life. Strings literally mean a chain of characters, any variable that is text-based. It can be letters, words &hellip; <a href=\"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/like-a-guitar\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Like a guitar<\/span><\/a><\/p>\n","protected":false},"author":51,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[28],"class_list":["post-38711","post","type-post","status-publish","format-standard","hentry","category-blogs","category-syndicated","tag-uncategorized"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/users\/51"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/comments?post=38711"}],"version-history":[{"count":3,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38711\/revisions"}],"predecessor-version":[{"id":41973,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38711\/revisions\/41973"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media?parent=38711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/categories?post=38711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/tags?post=38711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}