Um what?


#1



If i put in "Y" it says put in MONTY in all caps but if i put in "MONTY" it says oops looks like your value is "MONTY" instead of "Y"


"""
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 = "Y"

print fifth_letter


#2

no, you should use index to access the 5 letter from the word:

fifth_letter = "MONTY"[x]

x being the index you need


#3

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