
pigLatin- error
Publicado por marta (3 intervenciones) el 03/08/2017 21:23:31
Buenas! intento hacer un juego en python que trata de pasar la primera letra al final y luego añadirle las letras 'ay' pero me da un error que no logro entender bien:
el error que me da es "It looks like you printed the correct translation of "kuku", but make sure to set new_word equal to the slice as well."
Gracias
1
2
3
4
5
6
7
8
9
10
11
12
pyg = 'ay'
original = raw_input('Enter a word:')
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word[0]
new_word = word + first + pyg
print new_word[1:]
else:
print 'empty'
el error que me da es "It looks like you printed the correct translation of "kuku", but make sure to set new_word equal to the slice as well."
Gracias
Valora esta pregunta


0