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

Function

How to create a function that converts a string to the reverse order. For example, "hello world" on "world hello"

7th May 2020, 9:49 AM
_nrkvv_
_nrkvv_ - avatar
2 Answers
+ 1
Take in a string. Split it into a list using the spaces. Print the list in reverse.
7th May 2020, 10:02 AM
Justus
Justus - avatar
+ 2
Please Show us your attempt
7th May 2020, 9:55 AM
ANJALI SAHU