efine a function named split and reverse(string) which takes a string as a parameter. The string contains values separat
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
efine a function named split and reverse(string) which takes a string as a parameter. The string contains values separat
efine a function named split and reverse(string) which takes a string as a parameter. The string contains values separated by a comma. The function splits the sentence into a list of values verses the list and then returns the reversed list. or example: Test Result print(split_and_reverse(', 4.7.4.-5,2,6'>> ['a', '2', '.5', *4', ''.'.', ' print split_and_reverse(cat, the beg, let, out,can')> [can', 'out', 'let', 'hat's the 'cat) LINE
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!