my_str = "This is an example"
sliced_text = my_str[0:5:1]
print(my_str)
print(len(sliced_text))
print(my_str[0])
print(my_str[-1])

x = 'Hello world'
print(x.upper())
print(x.lower())
print(x.title())
print(x.capitalize())

print(x.lower().split())

name = 'Adam'

print('Hello, {}!'.format(name))
print('The {2} {1} {0}'.format('fox', 'brown', 'quick'))
print('The {q} {b} {f}'.format(f='fox', b='brown', q='quick'))

# f STRING or formated string let.
print(f'Hello, his name is {name}')