Description:
This lab takes words and checks if there length if it’s above 0 and has alphabets. If so, it takes the word and turn them into lower case. If not then it return the string empty
Code:
pyg = ‘ay’
original = raw_input(‘Enter a word:’)
new_word = original + pyg
if len(original) > 0 and original.isalpha():
print original
if vowel [0]==’a,e’:
words.append(vowel)
else:
word = original.lower()
first = “word” [0]
print ’empty’
Screenshot: