Helpppppppppp


#1


I dont know where i put the "[1:len(new_word)]" plese someone help me!!!

there is my code:

pyg = 'ay'

original = raw_input('Coloque uma palvra:')

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

else:
print 'empty'

`


#2

You'd need to consider what action you are trying to describe and when you want that action to be carried out. Figuring out when it should happen relative to other actions in your programs should say a lot about where to put your code.

If you think you need more information about list slicing, then why not google a bit on the topic to get more examples on how it can be used?


#3

Thanks, realy realy thanks ,because of you said now it works,thank you.:ok_hand::slight_smile::+1:


#4

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