Help with Python - Beginning course


#1


Hello everyone!
I am brand new to coding, and have started to learn Python. However I am stuck on the following exercise: https://www.codecademy.com/courses/python-beginner-sRXwR/0/4?curriculum_id=4f89dab3d788890003000096#

Here is my code:

Y = "MONTY"[4]
fifth_letter = [4]
print fifth_letter

Why is this not working and returning [4] instead of Y?

Thank you!


#2

here:

Y = "MONTY"[4]

you store the result of accessing by index in a variable called Y, while you should store it in fifth_letter


#3

Thanks for your reply! I actually cracked it...!


#4