{"id":23289,"date":"2021-12-15T11:11:29","date_gmt":"2021-12-15T05:41:29","guid":{"rendered":"https:\/\/tutorial.eyehunts.com\/?p=23289"},"modified":"2023-08-14T16:36:44","modified_gmt":"2023-08-14T11:06:44","slug":"python-title-vs-capitalize-functions-difference","status":"publish","type":"post","link":"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/","title":{"rendered":"Python title vs capitalize functions | Difference"},"content":{"rendered":"\n<p>The difference between Python <strong>title <\/strong>vs <strong>capitalize <\/strong>functions is how they convert (return) a string.<\/p>\n\n\n\n<p>Where the title() function changes the first character in each word to <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-uppercase-function-upper-convert-string-to-uppercase-example\/\">Uppercase <\/a>and the remaining characters to <a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-lowercase-function-convert-string-to-lowercase-example\/\">Lowercase <\/a>in the string and returns a new string.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>str.title()<\/code><\/pre>\n\n\n\n<p>And the capitalize() method converts the first character of a string to a capital (uppercase) letter.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>str.capitalize()<\/code><\/pre>\n\n\n\n<p>Here&#8217;s a comparison of the <code>capitalize()<\/code> and <code>title()<\/code> functions in tabular format:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Function<\/th><th>Purpose<\/th><th>Example Input<\/th><th>Output<\/th><\/tr><\/thead><tbody><tr><td><code>capitalize()<\/code><\/td><td>Capitalize the first character of each word<\/td><td>&#8220;hello world&#8221;<\/td><td>&#8220;Hello world&#8221;<\/td><\/tr><tr><td><code>title()<\/code><\/td><td>Capitalize first character of each word<\/td><td>&#8220;hello world&#8221;<\/td><td>&#8220;Hello World&#8221;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Example difference title vs capitalize in Python<\/strong><\/h2>\n\n\n\n<p>A simple example code<strong> title()<\/strong> changes every word, but <strong>capitalize() <\/strong>only the first word in a sentence:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>a = 'silly question'\nprint(a.title())\n\na = 'silly question'\nprint(a.capitalize())\n<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"262\" height=\"116\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-title-vs-capitalize-functions.jpg?resize=262%2C116&#038;ssl=1\" alt=\"Python title vs capitalize functions\" class=\"wp-image-23302\"\/><\/figure><\/div>\n\n\n<p>As you can see, the <code>capitalize()<\/code> function capitalizes only the first character of the entire string, while the <code>title()<\/code> function capitalizes the first character of each word in the string.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Do comment if you have any doubts or suggestions on this Python comparison topic.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>Note:<\/strong> IDE:&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.jetbrains.com\/pycharm\/\" target=\"_blank\">PyCharm<\/a>&nbsp;2021.3.3 (Community Edition)<\/p><p>Windows 10<\/p><p><strong>Python 3.10.1<\/strong><\/p><p>All<strong>&nbsp;Python Examples&nbsp;are in&nbsp;Python&nbsp;3<\/strong>, so Maybe its different from python 2 or upgraded versions.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>The difference between Python title vs capitalize functions is how they convert (return) a string. Where the title() function changes the first character in each word to Uppercase and the remaining characters to Lowercase in the string and returns a new string. And the capitalize() method converts the first character of a string to a&hellip;&nbsp;<a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Python title vs capitalize functions | Difference<\/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":[161,265,270],"post_series":[],"class_list":["post-23289","post","type-post","status-publish","format-standard","hentry","category-python","tag-python-capitalize","tag-python-difference","tag-python-title"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python title vs capitalize functions | Difference<\/title>\n<meta name=\"description\" content=\"The difference between Python title vs capitalize functions is how they convert (return) a string. title() changes every word, but capitalize\" \/>\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-title-vs-capitalize-functions-difference\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python title vs capitalize functions | Difference\" \/>\n<meta property=\"og:description\" content=\"The difference between Python title vs capitalize functions is how they convert (return) a string. title() changes every word, but capitalize\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-15T05:41:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-14T11:06:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-title-vs-capitalize-functions.jpg\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/\",\"name\":\"Python title vs capitalize functions | Difference\",\"isPartOf\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-title-vs-capitalize-functions.jpg\",\"datePublished\":\"2021-12-15T05:41:29+00:00\",\"dateModified\":\"2023-08-14T11:06:44+00:00\",\"author\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\"},\"description\":\"The difference between Python title vs capitalize functions is how they convert (return) a string. title() changes every word, but capitalize\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-title-vs-capitalize-functions.jpg?fit=262%2C116&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-title-vs-capitalize-functions.jpg?fit=262%2C116&ssl=1\",\"width\":262,\"height\":116},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorial.eyehunts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python title vs capitalize functions | Difference\"}]},{\"@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 title vs capitalize functions | Difference","description":"The difference between Python title vs capitalize functions is how they convert (return) a string. title() changes every word, but capitalize","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-title-vs-capitalize-functions-difference\/","og_locale":"en_US","og_type":"article","og_title":"Python title vs capitalize functions | Difference","og_description":"The difference between Python title vs capitalize functions is how they convert (return) a string. title() changes every word, but capitalize","og_url":"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/","og_site_name":"Tutorial","article_published_time":"2021-12-15T05:41:29+00:00","article_modified_time":"2023-08-14T11:06:44+00:00","og_image":[{"url":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-title-vs-capitalize-functions.jpg","type":"","width":"","height":""}],"author":"Rohit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rohit","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/","url":"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/","name":"Python title vs capitalize functions | Difference","isPartOf":{"@id":"https:\/\/tutorial.eyehunts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/#primaryimage"},"image":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/#primaryimage"},"thumbnailUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-title-vs-capitalize-functions.jpg","datePublished":"2021-12-15T05:41:29+00:00","dateModified":"2023-08-14T11:06:44+00:00","author":{"@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1"},"description":"The difference between Python title vs capitalize functions is how they convert (return) a string. title() changes every word, but capitalize","breadcrumb":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/#primaryimage","url":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-title-vs-capitalize-functions.jpg?fit=262%2C116&ssl=1","contentUrl":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Python-title-vs-capitalize-functions.jpg?fit=262%2C116&ssl=1","width":262,"height":116},{"@type":"BreadcrumbList","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-title-vs-capitalize-functions-difference\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorial.eyehunts.com\/"},{"@type":"ListItem","position":2,"name":"Python title vs capitalize functions | Difference"}]},{"@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":2801,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-capitalize-string-method-first-all-every-letter-example\/","url_meta":{"origin":23289,"position":0},"title":"Python capitalize String method | First, all or every Letter example","author":"Rohit","date":"December 17, 2019","format":false,"excerpt":"Python capitalizes string method is used to converts the first character of a string (first letter of the first word in the sentence) to the capital\u00a0(uppercase)\u00a0letter. The string will same if the string has the first character capital. Syntax The\u00a0capitalize()\u00a0method returns a string where the first letter is upper case.\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\/12\/Python-capitalize-String-method-First-all-or-every-Letter-example.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2019\/12\/Python-capitalize-String-method-First-all-or-every-Letter-example.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2019\/12\/Python-capitalize-String-method-First-all-or-every-Letter-example.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2019\/12\/Python-capitalize-String-method-First-all-or-every-Letter-example.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2019\/12\/Python-capitalize-String-method-First-all-or-every-Letter-example.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":16653,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-capitalize-the-first-letter-of-every-word-in-a-string-example-code\/","url_meta":{"origin":23289,"position":1},"title":"Python capitalize the first letter of every word in a string | Example code","author":"Rohit","date":"July 30, 2021","format":false,"excerpt":"Use title() to capitalize the first letter of every word in a string in python. Python Str class provides a member function title() which makes each word title cased in string. sample_text.title() It converts the first character of each word to upper case and all remaining characters of the word\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 every word in a string","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/07\/Python-capitalize-the-first-letter-of-every-word-in-a-string.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":23289,"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":16659,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-program-to-capitalize-the-first-and-last-letters-of-each-word-of-a-given-string\/","url_meta":{"origin":23289,"position":3},"title":"Write a python program to capitalize the first and last letters of each word of a given string","author":"Rohit","date":"July 17, 2021","format":false,"excerpt":"Example program to capitalize first and last letters of each word of a given string in Python. def capitalize_first_last_letters(str1): str1 = result = str1.title() result = \"\" for word in str1.split(): result += word[:-1] + word[-1].upper() + \" \" return result[:-1] print(capitalize_first_last_letters(\"python code and example\")) Output: Another Example Take input\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\/2021\/07\/Python-program-to-convert-first-and-last-letter-of-string-to-UpperCase.gif?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/07\/Python-program-to-convert-first-and-last-letter-of-string-to-UpperCase.gif?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/07\/Python-program-to-convert-first-and-last-letter-of-string-to-UpperCase.gif?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":23320,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-capitalize-each-word-example-code\/","url_meta":{"origin":23289,"position":4},"title":"Python capitalize each word | Example code","author":"Rohit","date":"December 15, 2021","format":false,"excerpt":"Use the title() function to capitalize each word in Python. Python's Str class provides a function title(), it converts the first character of every word of a given string to upper case Example how to capitalize each word in Python Simple example code capitalizes the first character of each word\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\/2021\/12\/Python-capitalize-each-word.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":41391,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-string-methods\/","url_meta":{"origin":23289,"position":5},"title":"Python string methods","author":"Rohit","date":"August 1, 2023","format":false,"excerpt":"Python string methods are built-in functions that allow you to manipulate strings in various ways. Strings in Python are immutable sequences of characters, and these methods provide a wide range of functionalities to perform operations such as string manipulation, searching, case conversion, and formatting. Here's the list of common Python\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\/2023\/08\/Python-string-methods.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\/23289","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=23289"}],"version-history":[{"count":1,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/23289\/revisions"}],"predecessor-version":[{"id":41727,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/23289\/revisions\/41727"}],"wp:attachment":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/media?parent=23289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/categories?post=23289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/tags?post=23289"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/post_series?post=23289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}