0
[::1], but the input string does not reverse itself
#your code goes here say = [input()] print(say[::-1]) the input string does not reverse itself
4 Antworten
+ 4
no [] needed
+ 4
Lee For Code
Just store the user input in a string variable then use [::-1] on that variable. No need to use [input()]
+ 4
print(input()[::-1])
+ 3
because say is a list of 1value.
say[::-1] reverses say list not say[0].
To reverse string you may use say[0][::-1]. or
say = input()