Strings in python
Strings in python
String are identified as a contiguous set of characters represented in the quotation marks. Python allows for either
pairs of single or double quotes.
Strings are immutable sequence data type, i.e each time one makes any changes
to a string, completely new string object is created.
Eg:
greet = "Hello, world"
print(greet)
#output: Hello, world
Comments
Post a Comment