Friday, July 4, 2014

Day 90

Python at CodeCademy. Worked on Python tutorial 8 of 11, PygLatin, Word Up! Worked on the ".lower()" function.

The code used:
pyg = 'ay'

original = raw_input('Enter a word:')

if len(original) > 0 and original.isalpha():
    print original
    word = original.lower()
    first = word[0]

    print 'empty'

The interaction for this code looked like this:
Enter a word: Word

No comments:

Post a Comment