Strings & Console Output


#1

I need some help i dont understand these instructions "On line 13, assign the variable fifth_letter equal to the fifth letter of the string "MONTY".Remember that the fifth letter is not at index 5. Start counting your indices from zero."


#2

it wants you to make a variable called fifth_letter and set it equal to the 5th letter in monty

fifth_letter = "MONTY"[4]

it would be 4 because indexes start counting from 0
also the 4 at the end looks through the string "MONTY" and gets the 4th index spot which would be "Y" in this case


#3

Thanks! I was confused for second!