Hello -- am stuck again on this exercise, I keep receiving a Syntax Error when trying to create a variable called word... Any suggestions/explanation greatly appreciated! Thank you in advance!
1. Make all letters lowercase
2. Grab first letter of the word
Inside your if statement:
Create a new variable called word that holds the .lower()-case conversion of original.
Create a new variable called first that holds word, the first letter of word.
pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha() and word = original.lower() and first = word: print original else: print 'empty'
File "python", line 4
if len(original) > 0
SyntaxError: invalid syntax