Page 1 of 1

efine a function named split and reverse(string) which takes a string as a parameter. The string contains values separat

Posted: Mon May 09, 2022 6:12 am
by answerhappygod
Efine A Function Named Split And Reverse String Which Takes A String As A Parameter The String Contains Values Separat 1
Efine A Function Named Split And Reverse String Which Takes A String As A Parameter The String Contains Values Separat 1 (17.08 KiB) Viewed 26 times
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