+ 1
How to reverse the alphabets ?
How can i reverse the alphabets of a whole sentence that i got from users?
5 odpowiedzi
+ 9
Reversing any kind of string can also be done by using reversed() function:
chars = 'abcdefghijklmnopqrstuvwxyz'
chars_rev = reversed(chars)
print(''.join(chars_rev))
+ 7
print(input()[::-1])
+ 4
You mean reverse a string input by users?
+ 2
Reverse alphabet as in a -> z and A -> Z?
What you mean by "not just words"? you mean reverse each word in sentence and the alphabets also?
Is this a code coach problem?
+ 1
CarrieForle yes. And the alphabets not just words