Introduction
Python Data Types & Operators
Conditional Statements
Python Loops
Python Strings
Python Lists
Python Tuple
Python Strings
In python, anything that you enclose between single or double quotation marks is considered a string. A string is essentially a sequence of characters where each character is known as element.
Strings are used when working with Unicode characters.
Example:
str1="dipanshu" # set of characters
print(str1)
print(type(str1))
print(len(str1)) # no of characters in a string
dipanshu
<class 'str'>
8