Hello Coders,
Please can somebody tell me if this core is correct. Unsure if it works as when i run it, and type in a word, nothing happens - When i run the code, what should it print?
Thank you all.
Blockquote
pyg = ‘ay’
original = raw_input(‘Enter a word:’)
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word[0]
new_word = word + first + pyg
else:
print ‘empty’
Blockquote