What's wrong with this code?


#1

s="Charlie"
pyg="ay"

original = raw_input('Enter a word:')
word= original.lower()
first= original[0].lower()

second = s[14]

third = word[2]

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


#2

Is there something wrong? One would need to establish the issue before looking for causes.
Also, make sure that the code you're sharing is identical to what you're running, looks like there are some formatting issues that change the outcome of running your code.


#3

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