What is String manipulation?
How do you get the return the lenght of a string in python?
string= ‘hello’.
print(len(string))
How do you convert a string to all capitals?
string=’hello’
string.upper()
returns HELLO.
How do you convert a string to all lowercases?
string=’hello’
string.lower()
returns
hello.
How do you return certain letters of a word?
string='hello' each letter starts from 0. so h= 0 string[0] returns 'h' string[1:5] returns 'ello'