Monday, May 26, 2014

Day 51

Explored Python at CodeCademy. Worked on Python tutorial 4 of 16, Strings & Console Output, Access by Index. Learned about accessing the index.

The code used:
# Assign the variable fifth_letter equal to the fifth letter of the string "MONTY."
x = "MONTY"[4]
fifth_letter = x
print fifth_letter

The interaction looked like this:

No comments:

Post a Comment