Python String count()

2021 VietMX 0

In this tutorial, we will learn about the Python String count() method with the help of examples. The count() method returns the number of occurrences of a […]

Python String casefold()

2021 VietMX 0

The casefold() method is an aggressive lower() method which converts strings to case folded strings for caseless matching. The casefold() method removes all case distinctions present in […]

Python String center()

2021 VietMX 0

The center() method returns a string which is padded with the specified character. The syntax of center() method is: 1. center() Parameters The center() method takes two arguments: width […]

Python String capitalize()

2021 VietMX 0

In Python, the capitalize() method converts first character of a string to uppercase letter and lowercases all other characters, if any. The syntax of capitalize() is: 1. […]

String Hashing

2021 VietMX 0

Hashing algorithms are helpful in solving a lot of problems. We want to solve the problem of comparing strings efficiently. The brute force way of […]