I completed the tutorial, but I wanted to change the code to work for sentences, not just single words.
Code not changing the first letter of the sentence to uppercase.
I expected that the first character of the first string in word_list would become uppercase.
original = raw_input('Enter a word:') lowercase = original.lower() word_list = lowercase.split() for word in word_list: if len(word) > 0 and word.isalpha and word not in 'aeiou': while word not in 'aeiou': first = word word = word[1:len(word)] + first if word == word_list: print word_list.upper() + word[1:] + 'ay', else: print word + 'ay',
Enter a word: Draco is a smart boy
acodray isway away artsmay oybayNone