{"id":937,"date":"2015-05-19T09:38:36","date_gmt":"2015-05-19T13:38:36","guid":{"rendered":"http:\/\/shirishranjit.com\/blog1\/?page_id=937"},"modified":"2015-06-14T11:51:31","modified_gmt":"2015-06-14T15:51:31","slug":"strings-in-python","status":"publish","type":"page","link":"https:\/\/shirishranjit.com\/blog1\/python-references\/strings-in-python","title":{"rendered":"Strings in Python"},"content":{"rendered":"<p>There is no method like &#8220;contains&#8221; in python to see if there the string has a set of characters. The simplest way of finding a set of characters in python is to use &#8220;find&#8221; method. The find method returns a count of number of occurrence of the characters.<\/p>\n<div class=\"twttr_buttons\"><div class=\"twttr_twitter\">\n\t\t\t\t\t<a href=\"http:\/\/twitter.com\/share?text=Strings+in+Python\" class=\"twitter-share-button\" data-via=\"\" data-hashtags=\"\"  data-size=\"default\" data-url=\"https:\/\/shirishranjit.com\/blog1\/python-references\/strings-in-python\"  data-related=\"\" target=\"_blank\">Tweet<\/a>\n\t\t\t\t<\/div><div class=\"twttr_followme\">\n\t\t\t\t\t\t<a href=\"https:\/\/twitter.com\/shiranjit\" class=\"twitter-follow-button\" data-size=\"default\"  data-show-screen-name=\"false\"  target=\"_blank\">Follow me<\/a>\n\t\t\t\t\t<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>There is no method like &#8220;contains&#8221; in python to see if there the string has a set of characters. The simplest way of finding a set of characters in python is to use &#8220;find&#8221; method. The find method returns a &hellip; <a href=\"https:\/\/shirishranjit.com\/blog1\/python-references\/strings-in-python\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":935,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-937","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/pages\/937"}],"collection":[{"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/comments?post=937"}],"version-history":[{"count":2,"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/pages\/937\/revisions"}],"predecessor-version":[{"id":939,"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/pages\/937\/revisions\/939"}],"up":[{"embeddable":true,"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/pages\/935"}],"wp:attachment":[{"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/media?parent=937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}