Ending Up


Please can I have the correct code?

Here is mine:
pyg = 'ay'
word = 'pop'
first = word[0]

original = raw_input('Enter a word:')

if len(original) > 0 and original.isalpha():
first = word[0]
word = original.lower()
new_word = word + first + pyg
new_word = word[1:len(new_word)]
print new_word[1:len(new_word)]
print 'empty'


You need to learn to fix your code, because you will rarely get it right the first time around. Compare what it does to what it should do


A post was split to a new topic: Can you help me? I don't know what is wrong with this


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.