{"id":2160,"date":"2019-08-08T17:36:27","date_gmt":"2019-08-08T12:06:27","guid":{"rendered":"http:\/\/tutorial.eyehunts.com\/?p=2160"},"modified":"2021-08-30T18:40:22","modified_gmt":"2021-08-30T13:10:22","slug":"python-lowercase-function-convert-string-to-lowercase-example","status":"publish","type":"post","link":"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/","title":{"rendered":"Python lowercase function lower()| convert string to lowercase example"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\"><strong>How to convert string to lowercase in Python?<\/strong><\/h3>\n\n\n\n<p><strong>#<\/strong>Is there any way to convert an entire user inputted string from uppercase, or even part uppercase to lowercase?<\/p>\n\n\n\n<p><strong>Answer:<\/strong> The<strong> Python string lower()<\/strong> inbuild function converts all characters in a string into lowercase characters and returns it.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2019\/08\/Python-lowercase-function-lower-1024x445.png?resize=550%2C238&#038;ssl=1\" alt=\"Python lowercase function lower\" class=\"wp-image-6747\" width=\"550\" height=\"238\" srcset=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2019\/08\/Python-lowercase-function-lower.png?resize=1024%2C445&amp;ssl=1 1024w, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2019\/08\/Python-lowercase-function-lower.png?resize=300%2C130&amp;ssl=1 300w, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2019\/08\/Python-lowercase-function-lower.png?resize=768%2C334&amp;ssl=1 768w, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2019\/08\/Python-lowercase-function-lower.png?w=1160&amp;ssl=1 1160w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Syntax<\/strong><\/h3>\n\n\n\n<p>The syntax of lower() method below:<\/p>\n\n\n\n<pre>\nstring.lower()\n<\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Parameters<\/strong><\/h4>\n\n\n\n<p>Python lower() function doesn&#8217;t take any parameters.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Return value<\/strong><\/h4>\n\n\n\n<p>The Python lower() function returns the lowercased string of the given string. If there are upper case characters in the <a aria-label=\"string (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/tutorial.eyehunts.com\/\/python\/python-strings-tutorial-example\/\" target=\"_blank\">string<\/a> then it will also convert into lowercase characters.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Python lowercase function Examples<\/strong><\/h2>\n\n\n\n<p>Let&#8217;s learn how to use <strong>lower() function<\/strong> in deferent places.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example 1: Convert Python string to lowercase<\/strong><\/h3>\n\n\n\n<p>An example of creating and initiated the string variable. Where &#8220;str1&#8221; has uppercase characters, which will convert in lowercase.<\/p>\n\n\n\n<p>The second variable&#8221;str2&#8243; has a combination of string and numeric value. It will also convert all characters in lowercase without an error.<\/p>\n\n\n\n<p>If given strings have no uppercase characters, then it will return the original string.<\/p>\n\n\n\n<pre># example string\nstr1 = \"I WANT IT SHOULD BE LOWERCASE!\"\nprint(string.lower())\n\n# string with numbers\n# all alphabets whould be lowercase\nstr2 = \"L8w9rCas99!\"\nprint(string.lower())\n<\/pre>\n\n\n\n<p><strong>Output: <\/strong><\/p>\n\n\n\n<p>i want it should be lowercase!<br>\nl8w9rcas99!<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example 2: Why\/Where lower() function is used in a program?<\/strong><\/h3>\n\n\n\n<p><strong>Answer<\/strong>: As you know lower() function is use to converting uppercase characters in lowercase, but where it will useful?<\/p>\n\n\n\n<p>It will use when you are trying to compare string. See the below example without using a string in if conditions.<\/p>\n\n\n\n<pre>\n\nfirstString = \"PYTHON!\"\n\nsecondString = \"PyThOn!\"\n\nif(firstString == secondString):\n    print(\"The strings are same.\")\nelse:\n    print(\"The strings are not same.\")\n<\/pre>\n\n\n\n<p><strong>Output:<\/strong> The strings are not same.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>So as you can see program output will shoe strings are not the same because some characters are in uppercase in the first string.<\/p>\n\n\n\n<p>Let&#8217;s try solve this problem by using a lower() function:-<\/p>\n\n\n\n<pre>\n\nfirstString = \"PYTHON!\"\n\nsecondString = \"PyThOn!\"\n\nif(firstString.lower() == secondString.lower()):\n    print(\"The strings are same.\")\nelse:\n    print(\"The strings are not same.\")\n<\/pre>\n\n\n\n<p><strong>Output:<\/strong> The strings are same.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example 3: How to convert Python lowercase first letter?<\/strong><\/h3>\n\n\n\n<p><strong>Answer:<\/strong> For converting a specific character in the string to lowercase you have to use an index value of string and lower() function. Additional use arithmetic operator to contact remain string. <\/p>\n\n\n\n<p>See below example converting first letter into a lowercase letter.<\/p>\n\n\n\n<pre>\nstr = \"PYTHON!\"\n\nprint(str[0].lower() + str[1:])\n<\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Do comment if you have any doubt and suggestion on this tutorial.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>Note:<\/strong>&nbsp;This example (Project) is developed in&nbsp;PyCharm 2018.2 (Community Edition)<br>JRE: 1.8.0<br>JVM:&nbsp;<a href=\"https:\/\/openjdk.java.net\/\">OpenJDK<\/a>&nbsp;64-Bit Server VM by JetBrains s.r.o<br>macOS 10.13.6<br><strong>Python 3.7<\/strong><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>How to convert string to lowercase in Python? #Is there any way to convert an entire user inputted string from uppercase, or even part uppercase to lowercase? Answer: The Python string lower() inbuild function converts all characters in a string into lowercase characters and returns it. Syntax The syntax of lower() method below: string.lower() Parameters&hellip;&nbsp;<a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Python lowercase function lower()| convert string to lowercase example<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[30],"tags":[175,38],"post_series":[],"class_list":["post-2160","post","type-post","status-publish","format-standard","hentry","category-python","tag-python-convert","tag-python-function"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python lowercase function lower() | string to lowercase example -EyeHunts<\/title>\n<meta name=\"description\" content=\"The Python string lower() inbuild function converts all characters in a string into lowercase characters and returns it. Python lowercase function string to\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python lowercase function lower() | string to lowercase example -EyeHunts\" \/>\n<meta property=\"og:description\" content=\"The Python string lower() inbuild function converts all characters in a string into lowercase characters and returns it. Python lowercase function string to\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-08T12:06:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-30T13:10:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2019\/08\/Python-lowercase-function-lower-1024x445.png\" \/>\n<meta name=\"author\" content=\"Rohit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rohit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/\",\"name\":\"Python lowercase function lower() | string to lowercase example -EyeHunts\",\"isPartOf\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2019\/08\/Python-lowercase-function-lower-1024x445.png\",\"datePublished\":\"2019-08-08T12:06:27+00:00\",\"dateModified\":\"2021-08-30T13:10:22+00:00\",\"author\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\"},\"description\":\"The Python string lower() inbuild function converts all characters in a string into lowercase characters and returns it. Python lowercase function string to\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/#primaryimage\",\"url\":\"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2019\/08\/Python-lowercase-function-lower-1024x445.png\",\"contentUrl\":\"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2019\/08\/Python-lowercase-function-lower-1024x445.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorial.eyehunts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python lowercase function lower()| convert string to lowercase example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\",\"url\":\"https:\/\/tutorial.eyehunts.com\/\",\"name\":\"Tutorial\",\"description\":\"By EyeHunts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tutorial.eyehunts.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\",\"name\":\"Rohit\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777979855\",\"contentUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777979855\",\"caption\":\"Rohit\"},\"description\":\"Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology &amp; like learning technical.\",\"url\":\"https:\/\/tutorial.eyehunts.com\/author\/rohit\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python lowercase function lower() | string to lowercase example -EyeHunts","description":"The Python string lower() inbuild function converts all characters in a string into lowercase characters and returns it. Python lowercase function string to","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/","og_locale":"en_US","og_type":"article","og_title":"Python lowercase function lower() | string to lowercase example -EyeHunts","og_description":"The Python string lower() inbuild function converts all characters in a string into lowercase characters and returns it. Python lowercase function string to","og_url":"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/","og_site_name":"Tutorial","article_published_time":"2019-08-08T12:06:27+00:00","article_modified_time":"2021-08-30T13:10:22+00:00","og_image":[{"url":"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2019\/08\/Python-lowercase-function-lower-1024x445.png","type":"","width":"","height":""}],"author":"Rohit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rohit","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/","url":"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/","name":"Python lowercase function lower() | string to lowercase example -EyeHunts","isPartOf":{"@id":"https:\/\/tutorial.eyehunts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/#primaryimage"},"image":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/#primaryimage"},"thumbnailUrl":"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2019\/08\/Python-lowercase-function-lower-1024x445.png","datePublished":"2019-08-08T12:06:27+00:00","dateModified":"2021-08-30T13:10:22+00:00","author":{"@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1"},"description":"The Python string lower() inbuild function converts all characters in a string into lowercase characters and returns it. Python lowercase function string to","breadcrumb":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/#primaryimage","url":"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2019\/08\/Python-lowercase-function-lower-1024x445.png","contentUrl":"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2019\/08\/Python-lowercase-function-lower-1024x445.png"},{"@type":"BreadcrumbList","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorial.eyehunts.com\/"},{"@type":"ListItem","position":2,"name":"Python lowercase function lower()| convert string to lowercase example"}]},{"@type":"WebSite","@id":"https:\/\/tutorial.eyehunts.com\/#website","url":"https:\/\/tutorial.eyehunts.com\/","name":"Tutorial","description":"By EyeHunts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tutorial.eyehunts.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1","name":"Rohit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/image\/","url":"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777979855","contentUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777979855","caption":"Rohit"},"description":"Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology &amp; like learning technical.","url":"https:\/\/tutorial.eyehunts.com\/author\/rohit\/"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":2174,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-uppercase-function-upper-convert-string-to-uppercase-example\/","url_meta":{"origin":2160,"position":0},"title":"Python uppercase function upper() | convert string to Uppercase example","author":"Rohit","date":"August 13, 2019","format":false,"excerpt":"How do you convert a string to uppercase in Python? The answer is Using a python inbuilt function upper(). Same as used lower() function in python. An upper() function converts all strings to lowercase characters\u00a0(letters) into uppercase letters. Syntax The syntax of upper() method is: string.upper() Parameters Python upper() function\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2019\/08\/Python-uppercase-function-upper.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2019\/08\/Python-uppercase-function-upper.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2019\/08\/Python-uppercase-function-upper.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2019\/08\/Python-uppercase-function-upper.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2019\/08\/Python-uppercase-function-upper.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":17912,"url":"https:\/\/tutorial.eyehunts.com\/python\/write-a-program-to-read-a-character-in-uppercase-and-print-it-in-lowercase-in-python\/","url_meta":{"origin":2160,"position":1},"title":"Write a program to read a character in Uppercase and print it in lowercase in Python","author":"Rohit","date":"August 12, 2021","format":false,"excerpt":"Python has many methods to convert a character or string entered by the user from uppercase to lowercase. The best way is to use the lower() method. Example Program to read a character in Uppercase and print it in lowercase in Python Simple example code Uppercase to Lowercase using lower().\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Program to read a character in Uppercase and print it in lowercase in Python","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/08\/Program-to-read-a-character-in-Uppercase-and-print-it-in-lowercase-in-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":23293,"url":"https:\/\/tutorial.eyehunts.com\/python\/capitalize-function-in-python-example-code\/","url_meta":{"origin":2160,"position":2},"title":"Capitalize() function in Python | Example code","author":"Rohit","date":"December 15, 2021","format":false,"excerpt":"Python Capitalize() function is used to convert the first character in uppercase, and the rest is lowercase. Actually, this method returns a copy of the original string with the first character of the string to a capital other characters in the string lowercase letters. string.capitalize() Note: It doesn't modify the\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Capitalize() function in Python","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Capitalize-function-in-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":16452,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-list-lowercase-letters-convert-list-to-lower-case-example-code\/","url_meta":{"origin":2160,"position":3},"title":"Python list lowercase letters | Convert list to lower-case Example code","author":"Rohit","date":"July 15, 2021","format":false,"excerpt":"Simply use the Python string lower() method to convert every element in a list of strings into lowercase. It will convert given into lowercase letters in Python. str.lower() Example make the elements in a list of strings lowercase in Python Simple python code: Let's try, given list [\"a\", \"B\", \"C\"]\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python list lowercase letters","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/07\/Python-list-lowercase-letters.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":16395,"url":"https:\/\/tutorial.eyehunts.com\/python\/how-to-make-all-items-in-a-list-lowercase-python-example-code\/","url_meta":{"origin":2160,"position":4},"title":"How to make all items in a list lowercase Python | Example code","author":"Rohit","date":"July 13, 2021","format":false,"excerpt":"Use the string lower() method to convert every element in a list of strings into lowercase in Python. Python list variable that contains strings needed to iterate through the loop and add back lowercase value into a list. Make all items in a list lowercase example in Python Simple python\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"How to make all items in a list lowercase Python","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/07\/How-to-make-all-items-in-a-list-lowercase-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":16657,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-capitalize-the-first-letter-of-a-sentence-example-code\/","url_meta":{"origin":2160,"position":5},"title":"Python capitalize the first letter of a sentence | Example code","author":"Rohit","date":"August 1, 2021","format":false,"excerpt":"Use Python built-in capitalize() method to capitalize the first letter of a sentence and change the rest of the characters into lowercase. This method is used on string data in various ways without just capitalizing on the first characters. sentence .capitalize() Example of capitalizing the first letter of every sentence\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python capitalize the first letter of a sentence","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/08\/Python-capitalize-the-first-letter-of-a-sentence.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/2160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/comments?post=2160"}],"version-history":[{"count":1,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/2160\/revisions"}],"predecessor-version":[{"id":18864,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/2160\/revisions\/18864"}],"wp:attachment":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/media?parent=2160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/categories?post=2160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/tags?post=2160"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/post_series?post=2160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}