{"id":4289,"date":"2022-03-10T15:01:20","date_gmt":"2022-03-10T15:01:20","guid":{"rendered":"https:\/\/ibex.tech\/python\/?p=4289"},"modified":"2022-03-10T16:01:14","modified_gmt":"2022-03-10T16:01:14","slug":"using-strings-formatting","status":"publish","type":"post","link":"https:\/\/ibex.tech\/python\/strings-python\/using-strings-formatting","title":{"rendered":"Using Strings-Formatting"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\">Trim leading and trailing whitespace<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>my_string = my_string.strip()<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Capitalise 1st letter of first word<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>my_string = my_string.title()<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">String to lowercase<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>my_string = my_string.lower()<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">String to uppercase<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>my_string = my_string.upper()<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Trim leading and trailing whitespace Capitalise 1st letter of first word String to lowercase String to uppercase<\/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-4289","post","type-post","status-publish","format-standard","hentry","category-strings-python"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4289","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=4289"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4289\/revisions"}],"predecessor-version":[{"id":4305,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4289\/revisions\/4305"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/media?parent=4289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/categories?post=4289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/tags?post=4289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}