Strings in python:
Simply put, a string is a sequence of characters. We use strings almost
everywhere in Python code. Python supports both ASCII and Unicode
strings. Let us explore strings in more detail.
Single Quote - We can specify a string using single quotes such as 'Python
is an easy programming language!'. All spaces and tabs within the
quotes are preserved as-is.
Double Quotes - We can also specify string using double quotes such as
"Yes! Indeed, Python is easy.". Double quotes work the same way
single quotes works. Either can be used.
Triple Quotes - This is used as a delimiter to mark the start and end of a
comment. example of triple quotes are '''hello! dear , Welcome to my city.'''
Strings are immutable - This means once we have created a string we cannot
change it.
Consider the following example.
In []: month_name = 'Fanuary'
In []: month_name[0] = 'J'