Strings & Console Outputs


#1

Help meh

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

Oops, try again. Remember to use the string "MONTY" (all caps!) in 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 = "Y"

print fifth_letter

https://gyazo.com/e38e010989745b66734b7cb50c8f7920


#2

What does the example show? Therein lies the hint you need.


#3

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