0
What is mean of this method print(input()[::-1]) in python
Anyone tell me why, without using loop it print all letter of string.
2 ответов
+ 2
input() returns the input string, and [::-1] reverses it.
Info about [::-1] can be found here: https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2453/
0
Can I use this method in JavaScript