A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.tutorialspoint.com/python/case_conversion.htm below:

Case Conversion Methods

Case Conversion Methods

This category of built-in methods of Python's str class deal with the conversion of alphabet characters in the string object. Following methods fall in this category −

Sr.No. Method & Description

1

capitalize()

Capitalizes first letter of string

2

casefold()

Converts all uppercase letters in string to lowercase. Similar to lower(), but works on UNICODE characters alos

3

lower()

Converts all uppercase letters in string to lowercase.

4

swapcase()

Inverts case for all letters in string.

5

title()

Returns "titlecased" version of string, that is, all words begin with uppercase and the rest are lowercase.

6

upper()

Converts lowercase letters in string to uppercase.

python_string_methods.htm


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4