CBSE Class 11 Comprehensive Notes of Strings in Python with Questions
What is String in Python? Strings are contiguous series of characters enclosed in single or double quotes. Python doesn’t have any separate data type for characters so they are represented as a single character string. For eg: >>> s_name = “Amit” # s_name is a variable storing a string. >>>s = ‘a’ #String can also be enclosed in single quotes … Read more