You are viewing a single comment's thread from:

RE: [Python] 文字列を区切ってみる

Thanks to python I met you. Thank you for sharing your knowledge. I made some problems for children to whom I give free python classes. I remembered it with your publication. I learn every day something new about python

#.................................................
# Ejercicio resuelto N094
palabra = input('Introduzca una palabra: ')
print(palabra[0:])  # equivale a toda la palabra
print(palabra[::]) # equivale a toda la palabra
print('Palabra original: ', palabra)
print('Palabra inversa: ', palabra[::-1])

I speak Spanish, I am from Venezuela. I used English to show you what I did. Greetings!

link

Sort:  

Thank you for your comment.
I didn't know the expression of array [::]