Patrick B. answered 03/13/21
Math and computer tutor/teacher
data = "Python rules!" # OUTPUT
########################################################3
tokens = data.split(" ") # ['Python','rules!']
print(tokens)
upperCaseData = data.upper() # PYTHON RULES!
print(upperCaseData)
iIndexPos = data.index("rules") # 7
print(iIndexPos)
tweakedData = data.replace("!","?") #Python rules?
print(tweakedData)
print(data.endswith("i")) #False
print(data.endswith("!")) #True
totally = " totally "
outbuff = totally.join(tokens) #Python totally rules!
print(outbuff)