How to create an empty string in Python?

In this tutorial you will learn how to create an empty string in python. String is primitive data type in python and used to stored characters value in python.

Creating an empty string sound us confusing but sometime we required to create an empty string in python, because in future we required to used that string variable.

You can create empty string by initialing variable containing no character.

Example:

empty_string = ""
Was this article helpful?
YesNo

1 thought on “How to create an empty string in Python?”

  1. Pingback: buy links

Leave a Comment