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

You are viewing a single comment's thread from:

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

in hive-101145 •  4 years ago 

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

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
  ·  4 years ago (edited)

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