batman = "Bruce Wayne"

# first character
first_char = batman[0]

# last character
last_char = batman[len(batman) - 1]

# print(batman, first_char, last_char)


# reverse indiciing: last character index
# print(batman[-1])

#  slicing template: string[start:end]
# start is the index where we want to start, end is where we want to end


my_string = "This is my string"

# print(my_string[0:4])
# print(my_string[1:7])
# print(my_string[8 : len(my_string)])


# skip characters with a step: string[start:end:step]

reverse_string = "Reverse this string"
print(reverse_string[::-1])


# Mileage converter
