Monday, June 2, 2014

Day 56

Explored Python at CodeCademy. Worked on Python tutorial 9 of 16, Strings & Console Output, Dot Notation. Learned about how dot notation works only with strings, while len() and str() work with other data types.

The code used:
ministry = "The Ministry of Silly Walks"
print len(ministry)
print ministry.upper()

The interaction looked like this:
THE MINISTRY OF SILLY WALKS

No comments:

Post a Comment