{"id":659,"date":"2024-07-30T09:25:06","date_gmt":"2024-07-30T04:25:06","guid":{"rendered":"https:\/\/augurytech.co.uk\/courses\/?p=659"},"modified":"2024-10-05T09:05:22","modified_gmt":"2024-10-05T04:05:22","slug":"python-changing-case-string","status":"publish","type":"post","link":"https:\/\/augurytech.co.uk\/courses\/python\/python-changing-case-string\/","title":{"rendered":"Python: Changing String Case"},"content":{"rendered":"\n<h2 class=\"wp-block-heading has-base-2-color has-text-color has-link-color wp-elements-e665f2396a3942e6742ab8934dc63339\" style=\"font-size:clamp(1.125rem, 1.125rem + ((1vw - 0.2rem) * 0.612), 1.5rem);\">String Changing Case<\/h2>\n\n\n\n<p>Python provides built-in functions for scenarios where a user wants to change the case of string data.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>str_data = \"i AM A HUMAN\"\nprint(str_data.lower())<\/strong> <em># will output sentence in Lower case<\/em> \n<strong>print(str_data.upper())<\/strong> <em># will output sentence in Capital case<\/em>\n<strong>print(str_data.title())<\/strong> <em># will output sentence in title case<\/em><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>String Changing Case Python provides built-in functions for scenarios where a user wants to change the case of string data.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"wp-custom-template-python","format":"standard","meta":{"_seopress_robots_primary_cat":"5","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[5],"tags":[],"class_list":{"0":"post-659","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-python"},"_links":{"self":[{"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/posts\/659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/comments?post=659"}],"version-history":[{"count":3,"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/posts\/659\/revisions"}],"predecessor-version":[{"id":665,"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/posts\/659\/revisions\/665"}],"wp:attachment":[{"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/media?parent=659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/categories?post=659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/augurytech.co.uk\/courses\/wp-json\/wp\/v2\/tags?post=659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}