first = "tHiS Is "
last = "A sENtenCe."
text = first + last

print(text)
print(text.upper())
print(text.lower())
print(text.capitalize())
print(text.swapcase())

print(len(text))
print(text[0])
print(text[len(text)-1])
print(text[13:15])
print(text[:5]+text[10:])

if ("ten" in text):
    print("The string contains the sample.")

for c in text:
    print(c, end="")
print("")

p = text.find("Is")
print(text[p:p+2])

words = text.split()
print(words)

s1 = input()
s2 = input()
if (s1 < s2):
    print(s1+" is before "+s2+" in alphabetical order")
else:
    print(s1+" is after "+s2+" in alphabetical order")

text[0] = 'T'  # ERROR! String is immutable.
