{"id":14930,"date":"2021-07-28T09:17:58","date_gmt":"2021-07-28T03:47:58","guid":{"rendered":"http:\/\/www.pythonpool.com\/?p=14930"},"modified":"2021-07-28T09:18:01","modified_gmt":"2021-07-28T03:48:01","slug":"python-casefold","status":"publish","type":"post","link":"https:\/\/www.pythonpool.com\/python-casefold\/","title":{"rendered":"Demystifying the casefold() Function in Python"},"content":{"rendered":"\n<p>In general, we know that python has many built-in functions that are useful for various purposes. Here we are going to see about a casefold() function in python. It is useful to convert a string into lowercase.<\/p>\n\n\n\n<p><strong><strong>If we want to convert a string into <a href=\"http:\/\/www.pythonpool.com\/python-lowercase\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"text-decoration: underline;\">lowercase<\/span><\/a>, then we need<\/strong>&nbsp;<strong>some built-in function. For that, we are using a casefold() function. It is a built-in function that is already available in the python library. In most of the case, it is necessary to convert a string into low<\/strong>ercase. For that, the casefold() function in python is useful.<\/strong><\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_74 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #990303;color:#990303\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #990303;color:#990303\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#What_is_mean_by_casefold_function\" >What is mean by casefold() function?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#Why_are_we_using_casefold_instead_of_lowercase\" >Why are we using casefold() instead of lowercase()?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#What_are_the_syntax_parameters_and_return_type_for_casefold_function_in_Python\" >What are the syntax, parameters, and return type for casefold() function in Python?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#Syntax_of_casefold_function_in_Python\" >Syntax of casefold() function in Python<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#Parameters\" >Parameters<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#Returns\" >Returns<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#Code_Demonstrating_casefold_function_in_Python\" >Code Demonstrating casefold() function in Python<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#Comparing_using_casefold_function_in_Python\" >Comparing using casefold() function in Python<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#Code\" >Code<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#How_to_remove_case_sensitivity_from_user_input_by_casefold_attribute\" >How to remove case sensitivity from user input by casefold attribute?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#Code-2\" >Code<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#How_casefolding_algorithm_works\" >How casefolding algorithm works?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#Frequently_Asked_Questions_Related_to_casefold_Function_in_Python\" >Frequently Asked Questions Related to casefold() Function in Python<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#Trending_Right_Now\" >Trending Right Now<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-what-is-mean-by-casefold-function\"><span class=\"ez-toc-section\" id=\"What_is_mean_by_casefold_function\"><\/span>What is mean by casefold() function?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>casefold() is a built-function that is similar to <strong>lower()<\/strong> method. casefold() is used to convert a string into lowercase. It removes all the case distinction that is present in a string. This function ignores cases when comparing, which is known as caseless matching.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-why-are-we-using-casefold-instead-of-lowercase\"><span class=\"ez-toc-section\" id=\"Why_are_we_using_casefold_instead_of_lowercase\"><\/span>Why are we using casefold() instead of lowercase()?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now we all got one question casefold() string is similar to lowercase() then why casefold()? Let us now see the comparison between both functions.<\/p>\n\n\n\n<p><strong>Comparision between casefold() function and lowercase() function<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table class=\"has-white-color has-text-color has-background\" style=\"background:linear-gradient(141deg,rgb(2,3,129) 100%,rgb(40,116,252) 100%)\"><thead><tr><th><strong>casefold()<\/strong><\/th><th><strong>lowercase()<\/strong><\/th><\/tr><\/thead><tbody><tr><td>It converts all characters to lowercase in a string.<\/td><td> Converts all cased characters to lowercase in a string. <\/td><\/tr><tr><td>Suited for caseless matching for Unicode characters.<\/td><td>It is suited for caseless matching for <a href=\"http:\/\/www.pythonpool.com\/python-ascii-to-string\/\" target=\"_blank\" rel=\"noopener\">ASCII<\/a> characters.<\/td><\/tr><tr><td>Ignores cases when comparing.<\/td><td>Doesn&#8217;t ignore cases when comparing.<\/td><\/tr><tr><td>For example, <strong>\u03b2<\/strong> is equivalent to<strong> ss<\/strong> while converting into lowercase. It converts \u03b2 into ss.<\/td><td>For example, <strong>\u03b2<\/strong> is equivalent to<strong> ss<\/strong> while converting into lowercase. It keeps the \u03b2  as it is.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-india monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Trending:<\/span><span class=\"monsterinsights-inline-popular-posts-border\" ><\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\" style=\"font-size:18px;\" href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-cant-compare-datetime-datetime-to-datetime-date\/\">[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-are-the-syntax-parameters-and-return-type-for-casefold-function-in-python\"><span class=\"ez-toc-section\" id=\"What_are_the_syntax_parameters_and_return_type_for_casefold_function_in_Python\"><\/span>What are the syntax, parameters, and return type for casefold() function in Python?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-syntax-of-casefold-function-in-python\"><span class=\"ez-toc-section\" id=\"Syntax_of_casefold_function_in_Python\"><\/span>Syntax of casefold() function in Python <span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>string.casefold()<\/strong><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-parameters\"><span class=\"ez-toc-section\" id=\"Parameters\"><\/span>Parameters<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>casefold() doesn&#8217;t take any parameter<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-returns\"><span class=\"ez-toc-section\" id=\"Returns\"><\/span>Returns<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>casefolded string <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-code-demonstrating-casefold-function-in-python\"><span class=\"ez-toc-section\" id=\"Code_Demonstrating_casefold_function_in_Python\"><\/span>Code Demonstrating casefold() function in Python<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nstring1 = &quot;Cla\u00df&quot;\nstring2=&quot;CLaSs&quot;\nprint(&quot;Lower case string for Cla\u00df is:&quot;, string1.casefold())\nprint(&quot;Lower case string for CLaSs is:&quot;,string2.casefold())\n<\/pre><\/div>\n\n\n<p class=\"has-medium-font-size\" id=\"h-output\"><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Lower case string for Cla\u00df is: class\nLower case string for CLaSs is: class<\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Explanation<\/strong><\/p>\n\n\n\n<p>Here we are taking two strings to get a casefolded <a href=\"https:\/\/en.wikipedia.org\/wiki\/String\" target=\"_blank\" rel=\"noreferrer noopener\">string<\/a>. A variable <strong>string1<\/strong> holds the value <strong>Cla\u00df<\/strong>. And the<strong> <\/strong>variable <strong>string2 <\/strong>holds the value <strong>CLaSs<\/strong>. <\/p>\n\n\n\n<p>Now we will use the casefold() function to get a lowercase of the given string. Both the strings return the same value only. Because casefold() function considers \u00df as ss and it returns all the uppercase values into lowercase. So the output for both the strings is the same.<\/p>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-kilo monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Popular now<\/span><span class=\"monsterinsights-inline-popular-posts-border\" ><\/span><span class=\"monsterinsights-inline-popular-posts-border-2\" ><\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\"  href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\">[Fixed] nameerror: name Unicode is not defined<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-comparing-using-casefold-function-in-python\"><span class=\"ez-toc-section\" id=\"Comparing_using_casefold_function_in_Python\"><\/span>Comparing using casefold() function in Python<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now we are going to compare the casefold() function using the if-else statement.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-code\"><span class=\"ez-toc-section\" id=\"Code\"><\/span>Code<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nstring1 = &quot;cla\u00df&quot;\nstring2 = &quot;CLASS&quot;\nstring3 = &quot;class&quot;\nif string1.casefold() == string2.casefold()== string3.casefold():\n    print(&quot;The strings are equal.&quot;)\nelse:\n    print(&quot;The strings are not equal.&quot;)\n<\/pre><\/div>\n\n\n<p class=\"has-medium-font-size\" id=\"h-output-1\"><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">The strings are equal.<\/pre>\n\n\n\n<p class=\"has-medium-font-size\"> <strong>Explanation<\/strong> <\/p>\n\n\n\n<p>Here we are using three strings to compare the casefold() function. A variable <strong>string1 <\/strong>holds the value class with \u00df instead of ss, <strong>string2 <\/strong>holds the value class in uppercase, and <strong>string3 <\/strong>holds the value class in lowercase. <\/p>\n\n\n\n<p>Now we are going to compare all of the strings using the casefold() function. To compare the strings, we are using if-else statements. It returns the statement <strong><em>&#8220;The strings are equal&#8221;<\/em><\/strong> because all of the strings return the same value when using the casefold() function.<\/p>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-golf monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Popular now<\/span><span class=\"monsterinsights-inline-popular-posts-border\" ><\/span><span class=\"monsterinsights-inline-popular-posts-border-2\" ><\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\" style=\"font-size:18px;\" href=\"https:\/\/www.pythonpool.com\/solved-runtimeerror-cuda-error-invalid-device-ordinal\/\">[Solved] runtimeerror: cuda error: invalid device ordinal<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-remove-case-sensitivity-from-user-input-by-casefold-attribute\"><span class=\"ez-toc-section\" id=\"How_to_remove_case_sensitivity_from_user_input_by_casefold_attribute\"><\/span>How to remove case sensitivity from user input by casefold attribute?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-code-1\"><span class=\"ez-toc-section\" id=\"Code-2\"><\/span>Code<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\na=(input(&quot;Enter a string: &quot;))\nprint(a.casefold())\n<\/pre><\/div>\n\n\n<p class=\"has-medium-font-size\" id=\"h-output-2\"><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Enter a string: HAi today we Don't have Cla\u00df\nhai today we don't have class<\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong> <strong>Explanation<\/strong> <\/strong><\/p>\n\n\n\n<p>Here we are getting input from the user. The input string contains uppercase and lowercase letters. We want to remove case-sensitivity from that input string to use&nbsp;<strong>casefold()<\/strong>&nbsp;to remove the case sensitivity.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-casefolding-algorithm-works\"><span class=\"ez-toc-section\" id=\"How_casefolding_algorithm_works\"><\/span>How casefolding algorithm works?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>casefold is similar to case conversion. But the main objective of case folding is to contribute to the caseless matching of strings. On the other hand, the main objective of case conversion is to put strings to the particular cased form. Default case folding does not conserve normalization forms. <\/p>\n\n\n\n<p>After casefolded, a string in a particular normalization form may not be in the normalization form.<\/p>\n\n\n\n<p>Default case coding is based on the full case conversion operation. There are some adaptations to support caseless matching. Lowercase_Mapping(C) is used for most characters, but instead, there are instances in which the folding must be based on <a href=\"http:\/\/www.pythonpool.com\/python-uppercase\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"text-decoration: underline;\">Uppercase<\/span><\/a>_Mapping(C). As a result, a case the folded string is not necessarily lowercase.<\/p>\n\n\n<div class=\"monsterinsights-inline-popular-posts monsterinsights-inline-popular-posts-alpha monsterinsights-popular-posts-styled\" ><div class=\"monsterinsights-inline-popular-posts-text\"><span class=\"monsterinsights-inline-popular-posts-label\" >Trending<\/span><div class=\"monsterinsights-inline-popular-posts-post\"><a class=\"monsterinsights-inline-popular-posts-title\"  href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-type-numpy-ndarray-doesnt-define-__round__-method\/\">[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method<\/a><\/div><\/div><\/div><p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-frequently-asked-questions-related-to-casefold-function-in-python\"><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions_Related_to_casefold_Function_in_Python\"><\/span>Frequently Asked Questions Related to casefold() Function in Python<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1627384267232\"><strong class=\"schema-faq-question\">1. What is mean by casefold() function?<\/strong> <p class=\"schema-faq-answer\"> casefold() is used to convert a string into lowercase. It removes all the case distinction that is present in a string. This function ignores cases when comparing, which is known as caseless matching. <\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1627384319830\"><strong class=\"schema-faq-question\">2. What is the syntax for the casefold() function?<\/strong> <p class=\"schema-faq-answer\">The syntax for casefold() function is <br\/><code> <strong>string.casefold()<\/strong> <\/code><\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1627384380871\"><strong class=\"schema-faq-question\">3. Is the casefold() function takes any parameter?<\/strong> <p class=\"schema-faq-answer\">No, the casefold() function doesn&#8217;t take any parameter.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1627384445621\"><strong class=\"schema-faq-question\">4. Is \u00df and ss is same in casefold() function?<\/strong> <p class=\"schema-faq-answer\">Yes,  \u00df  and ss are the same in the casefold() function.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1627384651779\"><strong class=\"schema-faq-question\">5. What is the difference between casefold() and lower() function?<\/strong> <p class=\"schema-faq-answer\">casefold() function is similar to lower() function. But the casefold() method is more aggressive and strong.<\/p> <\/div> <\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here we have seen the casefold() function in python. The above-shown codes are just an example. We can do a lot of things using this function. We can check whether the given string is <span style=\"text-decoration: underline;\"><a href=\"http:\/\/www.pythonpool.com\/python-palindrome\/\" target=\"_blank\" rel=\"noreferrer noopener\">palindrome<\/a><\/span> or not using the casefold function and can solve many other real-world problems.<\/p>\n\n\n<div class=\"monsterinsights-widget-popular-posts monsterinsights-widget-popular-posts-charlie monsterinsights-popular-posts-styled monsterinsights-widget-popular-posts-columns-1\"><h2 class=\"monsterinsights-widget-popular-posts-widget-title\"><span class=\"ez-toc-section\" id=\"Trending_Right_Now\"><\/span>Trending Right Now<span class=\"ez-toc-section-end\"><\/span><\/h2><ul class=\"monsterinsights-widget-popular-posts-list\"><li style=\"background-color:#EEEEEE;border-color:#CD3034;\"><a href=\"https:\/\/www.pythonpool.com\/f-string-unmatched\/\"><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" style=\"color:#000000;font-size:17px;\">Frustrated with Unmatched f-strings? Master the Art of Formatting<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><\/div><\/div><\/a><\/li><li style=\"background-color:#EEEEEE;border-color:#CD3034;\"><a href=\"https:\/\/www.pythonpool.com\/supercharge-your-code-with-python-rtype\/\"><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" style=\"color:#000000;font-size:17px;\">Supercharge Your Code with Python Rtype<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><\/div><\/div><\/a><\/li><li style=\"background-color:#EEEEEE;border-color:#CD3034;\"><a href=\"https:\/\/www.pythonpool.com\/what-does-split-do-in-python\/\"><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" style=\"color:#000000;font-size:17px;\">What does split do in Python?<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><\/div><\/div><\/a><\/li><li style=\"background-color:#EEEEEE;border-color:#CD3034;\"><a href=\"https:\/\/www.pythonpool.com\/python-heapq\/\"><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" style=\"color:#000000;font-size:17px;\">Python Heapq: Boost Your Efficiency with Heap Operations!<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><\/div><\/div><\/a><\/li><\/ul><\/div><p><\/p>","protected":false},"excerpt":{"rendered":"<p>In general, we know that python has many built-in functions that are useful for various purposes. Here we are going to see about a casefold() &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Demystifying the casefold() Function in Python\" class=\"read-more button\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/#more-14930\" aria-label=\"More on Demystifying the casefold() Function in Python\">Read more<\/a><\/p>\n","protected":false},"author":22,"featured_media":14949,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[15],"tags":[4372,4371,4373],"class_list":["post-14930","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-casefold-function-in-python","tag-casefold-in-python","tag-removing-case-insensitive-duplicates-in-a-list-python-using-casefold","infinite-scroll-item"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.1 (Yoast SEO v25.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Demystifying the casefold() Function in Python - Python Pool<\/title>\n<meta name=\"description\" content=\"casefold() function in python is similar to lower() method. casefold() is used to convert a string in to lowercase. It is a built-in function\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pythonpool.com\/python-casefold\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Demystifying the casefold() Function in Python\" \/>\n<meta property=\"og:description\" content=\"In general, we know that python has many built-in functions that are useful for various purposes. Here we are going to see about a casefold() function in\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pythonpool.com\/python-casefold\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Pool\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-28T03:47:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-28T03:48:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Demystifying-the-casefold-Function-in-Python.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Priyalakshmi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:site\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Priyalakshmi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/\"},\"author\":{\"name\":\"Priyalakshmi\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/83e6e22a6c461cc1a8445bb473db2f20\"},\"headline\":\"Demystifying the casefold() Function in Python\",\"datePublished\":\"2021-07-28T03:47:58+00:00\",\"dateModified\":\"2021-07-28T03:48:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/\"},\"wordCount\":822,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Demystifying-the-casefold-Function-in-Python.webp\",\"keywords\":[\"casefold function in python\",\"casefold in python\",\"removing case insensitive duplicates in a list python using casefold\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pythonpool.com\/python-casefold\/#respond\"]}]},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/\",\"url\":\"https:\/\/www.pythonpool.com\/python-casefold\/\",\"name\":\"Demystifying the casefold() Function in Python - Python Pool\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Demystifying-the-casefold-Function-in-Python.webp\",\"datePublished\":\"2021-07-28T03:47:58+00:00\",\"dateModified\":\"2021-07-28T03:48:01+00:00\",\"description\":\"casefold() function in python is similar to lower() method. casefold() is used to convert a string in to lowercase. It is a built-in function\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384267232\"},{\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384319830\"},{\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384380871\"},{\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384445621\"},{\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384651779\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pythonpool.com\/python-casefold\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#primaryimage\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Demystifying-the-casefold-Function-in-Python.webp\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Demystifying-the-casefold-Function-in-Python.webp\",\"width\":1200,\"height\":628,\"caption\":\"python casefold\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pythonpool.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Demystifying the casefold() Function in Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pythonpool.com\/#website\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"name\":\"Python Pool\",\"description\":\"Your One-Stop Python Learning Destination\",\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pythonpool.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pythonpool.com\/#organization\",\"name\":\"Python Pool\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"contentUrl\":\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"width\":452,\"height\":185,\"caption\":\"Python Pool\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/pythonpool\",\"https:\/\/www.youtube.com\/c\/pythonpool\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/83e6e22a6c461cc1a8445bb473db2f20\",\"name\":\"Priyalakshmi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8f1aadb3b77a89fe5776d41fb52aec63200d0e68e92c71cb9aafac7fb4456696?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8f1aadb3b77a89fe5776d41fb52aec63200d0e68e92c71cb9aafac7fb4456696?s=96&d=wavatar&r=g\",\"caption\":\"Priyalakshmi\"}},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384267232\",\"position\":1,\"url\":\"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384267232\",\"name\":\"1. What is mean by casefold() function?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\" casefold() is used to convert a string into lowercase. It removes all the case distinction that is present in a string. This function ignores cases when comparing, which is known as caseless matching. \",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384319830\",\"position\":2,\"url\":\"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384319830\",\"name\":\"2. What is the syntax for the casefold() function?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The syntax for casefold() function is <br\/> <strong>string.casefold()<\/strong> \",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384380871\",\"position\":3,\"url\":\"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384380871\",\"name\":\"3. Is the casefold() function takes any parameter?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No, the casefold() function doesn't take any parameter.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384445621\",\"position\":4,\"url\":\"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384445621\",\"name\":\"4. Is \u00df and ss is same in casefold() function?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes,  \u00df  and ss are the same in the casefold() function.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384651779\",\"position\":5,\"url\":\"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384651779\",\"name\":\"5. What is the difference between casefold() and lower() function?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"casefold() function is similar to lower() function. But the casefold() method is more aggressive and strong.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Demystifying the casefold() Function in Python - Python Pool","description":"casefold() function in python is similar to lower() method. casefold() is used to convert a string in to lowercase. It is a built-in function","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:\/\/www.pythonpool.com\/python-casefold\/","og_locale":"en_US","og_type":"article","og_title":"Demystifying the casefold() Function in Python","og_description":"In general, we know that python has many built-in functions that are useful for various purposes. Here we are going to see about a casefold() function in","og_url":"https:\/\/www.pythonpool.com\/python-casefold\/","og_site_name":"Python Pool","article_published_time":"2021-07-28T03:47:58+00:00","article_modified_time":"2021-07-28T03:48:01+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Demystifying-the-casefold-Function-in-Python.webp","type":"image\/webp"}],"author":"Priyalakshmi","twitter_card":"summary_large_image","twitter_creator":"@pythonpool","twitter_site":"@pythonpool","twitter_misc":{"Written by":"Priyalakshmi","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pythonpool.com\/python-casefold\/#article","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/python-casefold\/"},"author":{"name":"Priyalakshmi","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/83e6e22a6c461cc1a8445bb473db2f20"},"headline":"Demystifying the casefold() Function in Python","datePublished":"2021-07-28T03:47:58+00:00","dateModified":"2021-07-28T03:48:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pythonpool.com\/python-casefold\/"},"wordCount":822,"commentCount":0,"publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"image":{"@id":"https:\/\/www.pythonpool.com\/python-casefold\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Demystifying-the-casefold-Function-in-Python.webp","keywords":["casefold function in python","casefold in python","removing case insensitive duplicates in a list python using casefold"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pythonpool.com\/python-casefold\/#respond"]}]},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/www.pythonpool.com\/python-casefold\/","url":"https:\/\/www.pythonpool.com\/python-casefold\/","name":"Demystifying the casefold() Function in Python - Python Pool","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pythonpool.com\/python-casefold\/#primaryimage"},"image":{"@id":"https:\/\/www.pythonpool.com\/python-casefold\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Demystifying-the-casefold-Function-in-Python.webp","datePublished":"2021-07-28T03:47:58+00:00","dateModified":"2021-07-28T03:48:01+00:00","description":"casefold() function in python is similar to lower() method. casefold() is used to convert a string in to lowercase. It is a built-in function","breadcrumb":{"@id":"https:\/\/www.pythonpool.com\/python-casefold\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384267232"},{"@id":"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384319830"},{"@id":"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384380871"},{"@id":"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384445621"},{"@id":"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384651779"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pythonpool.com\/python-casefold\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/python-casefold\/#primaryimage","url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Demystifying-the-casefold-Function-in-Python.webp","contentUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/07\/Demystifying-the-casefold-Function-in-Python.webp","width":1200,"height":628,"caption":"python casefold"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pythonpool.com\/python-casefold\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pythonpool.com\/"},{"@type":"ListItem","position":2,"name":"Demystifying the casefold() Function in Python"}]},{"@type":"WebSite","@id":"https:\/\/www.pythonpool.com\/#website","url":"https:\/\/www.pythonpool.com\/","name":"Python Pool","description":"Your One-Stop Python Learning Destination","publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pythonpool.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.pythonpool.com\/#organization","name":"Python Pool","url":"https:\/\/www.pythonpool.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","contentUrl":"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","width":452,"height":185,"caption":"Python Pool"},"image":{"@id":"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/pythonpool","https:\/\/www.youtube.com\/c\/pythonpool"]},{"@type":"Person","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/83e6e22a6c461cc1a8445bb473db2f20","name":"Priyalakshmi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8f1aadb3b77a89fe5776d41fb52aec63200d0e68e92c71cb9aafac7fb4456696?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8f1aadb3b77a89fe5776d41fb52aec63200d0e68e92c71cb9aafac7fb4456696?s=96&d=wavatar&r=g","caption":"Priyalakshmi"}},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384267232","position":1,"url":"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384267232","name":"1. What is mean by casefold() function?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":" casefold() is used to convert a string into lowercase. It removes all the case distinction that is present in a string. This function ignores cases when comparing, which is known as caseless matching. ","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384319830","position":2,"url":"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384319830","name":"2. What is the syntax for the casefold() function?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"The syntax for casefold() function is <br\/> <strong>string.casefold()<\/strong> ","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384380871","position":3,"url":"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384380871","name":"3. Is the casefold() function takes any parameter?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"No, the casefold() function doesn't take any parameter.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384445621","position":4,"url":"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384445621","name":"4. Is \u00df and ss is same in casefold() function?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Yes,  \u00df  and ss are the same in the casefold() function.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384651779","position":5,"url":"https:\/\/www.pythonpool.com\/python-casefold\/#faq-question-1627384651779","name":"5. What is the difference between casefold() and lower() function?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"casefold() function is similar to lower() function. But the casefold() method is more aggressive and strong.","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/14930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/comments?post=14930"}],"version-history":[{"count":29,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/14930\/revisions"}],"predecessor-version":[{"id":24456,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/14930\/revisions\/24456"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media\/14949"}],"wp:attachment":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media?parent=14930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/categories?post=14930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/tags?post=14930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}