Category: New Python tutorial

python tutorials and learn python

Created with Sketch.

Python String casefold()

Python String casefold() Summary: in this tutorial, you’ll learn how to use the Python string casefold() method to carry a case-insensitive string comparison. Introduction to the Python string casefold() method The Python string casefold() method returns a casefolded copy of the string. Casefolding is like case lowering. However, casefolding is more aggressive because it’s intended…
Read more

Python String isupper()

Python String isupper() Summary: in this tutorial, you’ll learn how to use the Python string isupper() method to check if all cases characters in a string are uppercase. Introduction to the Python String isupper() method Here is the syntax of the isupper() method: str.isupper()   The string isupper() method returns True if all cased characters…
Read more

Python String istitle()

Python String istitle() Summary: in this tutorial, you’ll learn how to use the Python string istitle() method to check if a string follows the title case rules. Introduction to the Python String istitle() method The following show the syntax of the string istitle() method: str.istitle()   The string istitle() method returns True if the string…
Read more

Python String islower()

Python String islower() Summary: in this tutorial, you’ll learn how to use the Python string islower() method to check if all cases characters are lowercase. Introduction to the Python String islower() method The following shows the syntax of the string islower() method: str.islower()   The string islower() method returns True if all cased characters are…
Read more

Python String capitalize()

Python String capitalize() Summary: in this tutorial, you’ll learn how to use the Python string capitalize() method to return a copy of a string with its first character capitalized. Introduction to the Python capitalize() method The capitalize() is a built-in string method with the following syntax: str.capitalize()   The capitalize() method takes no argument and…
Read more

Python String Titlecase

Python String Titlecase Summary: in this tutorial, you’ll learn how to use the Python string title() method to convert a string to titlecase. Introduction to the Python title() method The titlecase is a capitalization style used for titles so that the first letter of each word is uppercase and the remaining letters are lowercase. For…
Read more

Python String upper()

Python String upper() Summary: in this tutorial, you’ll learn how to use the Python String upper() method to return a copy of a string with all characters converted to uppercase. Introduction to the Python String upper() method The upper() is a string method that allows you to return a copy of a string with all…
Read more

Python String lower()

Python String lower() Summary: in this tutorial, you’ll learn how to use the Python String lower() method to return a copy of a string with all characters converted to lowercase. Introduction to the Python String lower() method The lower() is a string method that allows you to return a copy of a string with all…
Read more

Python String endswith()

Python String endswith() Summary: in this tutorial, you’ll learn how to use the Python string endswith() method to check if a string ends with another string. Introduction to the Python string endswith() method The endswith() is a string method that returns True if a string ends with another string. Otherwise, it returns False. The following…
Read more

Python String startswith()

Python String startswith() Summary: in this tutorial, you’ll learn how to use the Python string startswith() method to check if a string begins with another string. Introduction to the Python string startswith() method The startswith() method returns True if a string starts with another string. Otherwise, it returns False. The following shows the syntax of…
Read more