Python has built-in methods to support different manipulations
of string data types. Answer what the following code will print
following each Python method.
Str = "Tennessee State University"
print(len(str))
print(str.lower())
print(str.upper())
substr = “State”
print (str.index(substr))
print (str.startswith(“State”))
print (str.split())
print (str.find(substr))
print (str.partition(“State”))
myList = str.split()
for words in myList:
print (words)
newStr = “TN, TX, NY, MA, VA, PA, LA, CA”
myStates = newStr.split(‘,’)
print (myStates)
Show with examples if the above string operations are supported by C++...