Ending Up


#1

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)]
else:
print 'empty'


#2

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


#3

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


#4

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