How exactly can you take a string, split it, reverse it and join it back together again without the brackets, commas, etc. using python?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
or simpler:
The important parts here are the split function and the join function. To reverse the list you can use
reverse(), which reverses the list in place or the slicing syntax[::-1]which returns a new, reversed list.