{"id":218,"date":"2018-09-07T19:44:32","date_gmt":"2018-09-07T11:44:32","guid":{"rendered":"https:\/\/www.ccagml.com\/?p=218"},"modified":"2018-11-29T14:50:26","modified_gmt":"2018-11-29T06:50:26","slug":"709-to-lower-case","status":"publish","type":"post","link":"https:\/\/www.ccagml.com\/?p=218","title":{"rendered":"709. To Lower Case"},"content":{"rendered":"<p>Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase.<\/p>\n<p>&nbsp;<\/p>\n<div>\n<p><strong>Example 1:<\/strong><\/p>\n<pre><strong>Input: <\/strong><span id=\"example-input-1-1\">\"Hello\"<\/span>\r\n<strong>Output: <\/strong><span id=\"example-output-1\">\"hello\"<\/span>\r\n<\/pre>\n<div>\n<p><strong>Example 2:<\/strong><\/p>\n<pre><strong>Input: <\/strong><span id=\"example-input-2-1\">\"here\"<\/span>\r\n<strong>Output: <\/strong><span id=\"example-output-2\">\"here\"<\/span>\r\n<\/pre>\n<div>\n<p><strong>Example 3:<\/strong><\/p>\n<pre><strong>Input: <\/strong><span id=\"example-input-3-1\">\"LOVELY\"<\/span>\r\n<strong>Output: <\/strong><span id=\"example-output-3\">\"lovely\"<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>Python<\/strong><\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"> \r\nclass Solution(object):\r\n    def toLowerCase(self, str):\r\n        &quot;&quot;&quot;\r\n        :type str: str\r\n        :rtype: str\r\n        &quot;&quot;&quot;\r\n        return str.lower()\r\n        \r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Implement function ToLowerCase() that has a string para<a href=\"https:\/\/www.ccagml.com\/?p=218\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">709. To Lower Case<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[29,20],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ccagml.com\/index.php?rest_route=\/wp\/v2\/posts\/218"}],"collection":[{"href":"https:\/\/www.ccagml.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ccagml.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ccagml.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ccagml.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=218"}],"version-history":[{"count":1,"href":"https:\/\/www.ccagml.com\/index.php?rest_route=\/wp\/v2\/posts\/218\/revisions"}],"predecessor-version":[{"id":219,"href":"https:\/\/www.ccagml.com\/index.php?rest_route=\/wp\/v2\/posts\/218\/revisions\/219"}],"wp:attachment":[{"href":"https:\/\/www.ccagml.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ccagml.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ccagml.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}