please write the incorrect line correctly
or the missing line please
Copy and paste gone horribly wrong, I'm afraid. Had one been following the instructions and actually writing the code there is no possible way it would look like this, not even by mistake. This is a mash-up.
Admit it. Or not. Either way.
so what to do now please help
The first line is fine, it initializes a global variable. Immediately following you want to get the raw input. That will give you something for
original. Once confirmed as word characters with some length we store the first letter. Now we have enough to construct a new string, with
word being defined as the lower of original.
new_word = word + first + pyg
The only step remaining is to take a slice of new_word and copy it back into that variable.
but i am not able to do that
can you please write the whole code please
No. You post yours, first, so we can copy and test it. A picture will not do.
ok i will type mine>>>>>>>>
pyg = 'ay'
new_word =word + first + pyg
original = raw_input('Enter a word:')
if len(original) > 0 and original.isalpha():
any replies ?????
i have typed my code
please can you reply now i have written my code