strings

How to create a long multiline string in Python?

In this python tutorial, you will learn to create a long multi-line string in Python. Table Of Contents Create a long multi-line string using three double quotes Create a long multi-line string using three single quotes Create a long multi-line string using backslash Create a long multi-line string using brackets Create a long multi-line string

How to create a long multiline string in Python? Read More »

How to trim whitespace from a string in Python?

In this article, we will discuss how to trim whitespace from a string in Python. Table Of Contents Trim leading whitespaces from a string using lstrip() Trim trailing whitespaces from a string using rstrip() Trim leading & trailing whitespaces from a string using strip() Trim leading & trailing whitespaces from a string using regular expression

How to trim whitespace from a string in Python? Read More »

Split a String with multiple Delimiters in Python

In this python tutorial, you will learn how to split a string with multiple delimiters. Table Of Contents Split a string with a single delimiter using split() Split a string with multiple delimiters using split() with ‘|’ Split a string with multiple delimiters using split() with ‘[]’ Summary Split a string with a single delimiter

Split a String with multiple Delimiters in Python Read More »

Scroll to Top