{"id":157314,"date":"2019-10-11T13:37:28","date_gmt":"2019-10-11T17:37:28","guid":{"rendered":"https:\/\/www.countingpips.com\/?p=157314"},"modified":"2019-10-11T08:53:43","modified_gmt":"2019-10-11T12:53:43","slug":"python-programming-how-to-make-text-lowercase-uppercase","status":"publish","type":"post","link":"https:\/\/www.investmacro.com\/forex\/2019\/10\/python-programming-how-to-make-text-lowercase-uppercase\/","title":{"rendered":"Python Programming: How to make text lowercase &#038; uppercase"},"content":{"rendered":"<div id=\"inves-890704347\" class=\"inves-below-title-posts inves-entity-placement\"><div id =\"posts_date_custom\"><div align=\"left\">October 11, 2019<\/div><hr style=\"border: none; border-bottom: 3px solid black;\">\r\n<\/div><\/div><p><em><strong>By CountingPips.com<\/strong><\/em><\/p>\n<p>A quick and simple way to change all text into lowercase or uppercase letters using python.<\/p>\n<p><strong>input:<\/strong><\/p>\n<p style=\"padding-left: 40px;\">text = &#8220;New York City&#8221;<\/p>\n<p style=\"padding-left: 40px;\">lowertext = text.lower()<\/p>\n<p style=\"padding-left: 40px;\">print (lowertext)<\/p><div id=\"inves-1786289544\" class=\"inves-in-content inves-entity-placement\"><hr style=\"border: 1px solid #ddd;\">\r\n<div id=\"inpost_ads_header\">\r\n<p style=\"font-size:10px; float:left; color:#666;\">Free Reports:<\/p><\/div>\r\n<div id=\"inpost_ads\"> \r\n<p style=\"font-size:15px; float:left;\"><a href=\"https:\/\/goo.gl\/1ApBOV\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/investmacro.com\/wp-content\/uploads\/2018\/06\/graph_techs_PD.png\" align=\"left\" width=\"80\"  height=\"55\"\/><\/a>\r\n\t     <a href=\"https:\/\/goo.gl\/1ApBOV\"><b><u>Get Our Free Metatrader 4 Indicators<\/u><\/b><\/a> - Put Our Free MetaTrader 4 Custom Indicators on your charts when you join our Weekly Newsletter<\/p><br><br>\r\n<br>\r\n<br>\r\n<p style=\"font-size:15px; float:left;\"><a href=\"https:\/\/goo.gl\/f3RrHX\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/investmacro.com\/wp-content\/uploads\/2019\/01\/cot_pie_80.png\" align=\"left\" width=\"80\"  height=\"55\"\/><\/a>\r\n\t    <a href=\"https:\/\/goo.gl\/f3RrHX\"><b><u>Get our Weekly Commitment of Traders Reports<\/u><\/b><\/a> - See where the biggest traders (Hedge Funds and Commercial Hedgers) are positioned in the futures markets on a weekly basis.<\/p><br><br>\r\n<\/div>\r\n<hr style=\"border: 1px solid #ddd;\">\r\n<br><\/div>\n<p><strong>output:<\/strong> new york city<\/p>\n<p><strong>or you can simply apply .lower() to &#8216;text&#8217;<br \/>\n<\/strong><\/p>\n<p style=\"padding-left: 40px;\">text.lower()<\/p>\n<p><strong>output:<\/strong> new york city<\/p>\n<hr \/>\n<p><strong>Uppercase is the same process.<\/strong><\/p>\n<p><strong>input:<\/strong><\/p>\n<p style=\"padding-left: 40px;\">text.upper()<\/p>\n<p><strong>output:<\/strong> NEW YORK CITY<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By CountingPips.com A quick and simple way to change all text into lowercase or uppercase letters using python. input: text = &#8220;New York City&#8221; lowertext = text.lower() print (lowertext) output: new york city or you can simply apply .lower() to &#8216;text&#8217; text.lower() output: new york city Uppercase is the same process. input: text.upper() output: NEW [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":157382,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-157314","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/www.investmacro.com\/forex\/wp-json\/wp\/v2\/posts\/157314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.investmacro.com\/forex\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.investmacro.com\/forex\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.investmacro.com\/forex\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.investmacro.com\/forex\/wp-json\/wp\/v2\/comments?post=157314"}],"version-history":[{"count":5,"href":"https:\/\/www.investmacro.com\/forex\/wp-json\/wp\/v2\/posts\/157314\/revisions"}],"predecessor-version":[{"id":157383,"href":"https:\/\/www.investmacro.com\/forex\/wp-json\/wp\/v2\/posts\/157314\/revisions\/157383"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.investmacro.com\/forex\/wp-json\/wp\/v2\/media\/157382"}],"wp:attachment":[{"href":"https:\/\/www.investmacro.com\/forex\/wp-json\/wp\/v2\/media?parent=157314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.investmacro.com\/forex\/wp-json\/wp\/v2\/categories?post=157314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.investmacro.com\/forex\/wp-json\/wp\/v2\/tags?post=157314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}