Help a lost soul ! :(


#1


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

Traceback (most recent call last):

Traceback (most recent call last):
File "python", line 13, in
NameError: name 'MONTY' is not defined

Traceback (most recent call last):

I don't understand what it wants me to do. Shouldn't there already be a string named "monty" since it want's me to get the "Y" of the string?


Replace this line with your code. 
"""
The string "PYTHON" has six characters,
numbered 0 to 5, as shown below:

+---+---+---+---+---+---+
| P | Y | T | H | O | N |
+---+---+---+---+---+---+
  0   1   2   3   4   5

So if you wanted "Y", you could just type
"PYTHON"[1] (always start counting from 0!)
"""
fifth_letter=MONTY[4]
print fifth_letter


#2

here:

fifth_letter=MONTY[4]

MONTY is a (undefined) variable, while it should be a string


#5

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