{"id":4256,"date":"2022-03-09T16:57:26","date_gmt":"2022-03-09T16:57:26","guid":{"rendered":"https:\/\/ibex.tech\/python\/?p=4256"},"modified":"2024-12-18T13:46:00","modified_gmt":"2024-12-18T13:46:00","slug":"using-strings-verifying-strings","status":"publish","type":"post","link":"https:\/\/ibex.tech\/python\/strings-python\/using-strings-verifying-strings","title":{"rendered":"Using Strings-Verifying Strings"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Does string start with?<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>    my_string = \"This is a string.\"\n    if (my_string.startswith(\"This is\")):\n        print(\"Starts with\")<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Does string end with?<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>    my_string = \"This is a string.\"\n    if (my_string.endswith(\"a string.\")):\n        print(\"Ends with\")<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Does string start with? Does string end with?<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[319],"tags":[],"class_list":["post-4256","post","type-post","status-publish","format-standard","hentry","category-strings-python"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/comments?post=4256"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4256\/revisions"}],"predecessor-version":[{"id":4796,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4256\/revisions\/4796"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/media?parent=4256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/categories?post=4256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/tags?post=4256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}