Strings & Console Output


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."


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


Thanks! I was confused for second!