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:
x = "MONTY"[4]
fifth_letter = x
print fifth_letter
The interaction looked like this:
Y
No comments:
Post a Comment