Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Python

Can you create a code in Python that takes the user's input and rearange the letters or numbers, so that the output is totally another string?

14th Oct 2019, 6:26 AM
Aken
4 Answers
+ 2
= str(input("enter your name we will show reverse value : \n")) '''reverse the character which convert in lst''' a = list(reversed(a)) ''''join the list''' a = "".join(a) '''print join list it will show your reverae name''' print(a) you can use sort function also
14th Oct 2019, 8:09 AM
Akash Pawar
Akash Pawar - avatar
+ 5
We are not here to do your work. We are here to solve your problem so ask that only.
14th Oct 2019, 6:41 AM
A͢J
A͢J - avatar
14th Oct 2019, 6:44 AM
Oma Falk
Oma Falk - avatar
+ 3
u got it almost
14th Oct 2019, 6:45 AM
Oma Falk
Oma Falk - avatar