What is wrong with this line


#1



https://www.codecademy.com/courses/python-beginner-sRXwR/0/4?curriculum_id=4f89dab3d788890003000096#


Oops, try again. The value of fifth_letter is "MONTY[4]" instead of "Y".


I literally looked up this on the forums and put the exact code suggested and it's wrong


fifth_letter = 'MONTY[4]'


#2

Remove the quotes to wrap only the string.

str[subscript]

'MONTY'[4]

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.