Strings in Python are like a bunch of letters, numbers, or symbols that you can use to represent text. They are used to work with words, sentences, and any kind of textual information. You can think of strings as messages that your computer understands. For example, if you want the computer to say "Hello, World!", you put that inside a string. You can also combine or change strings, like putting two words together or turning letters into uppercase. Strings are important because they help you deal with text in your programs.
I also learned some important functions related to strings:
Len() : Len returns the length of the string( number of characters)
text = "Hello, World!"
length = len(text)
2.upper() and lower() : Converts the string into lower or upper case:;
"Hello World"
upper_text = text.upper() # "HELLO WORLD!"
lower_text = text.lower() # "hello world!"
3. Capitalize (): Capitalize the first character of the string
tex"hello, world!"
cap_text = text.capitalize() # "Hello, world!"