Question: In Python nun Write a function called 'sorted list' and line(s) to call the function. Please show your indentation clearly. This function takes one input
In Python
nun Write a function called 'sorted list' and line(s) to call the function. Please show your indentation clearly. This function takes one input argument of type string, which has letters that's separated by comma, for example: 'e,f,a,d.b,c'. First it should convert the string to a list called 'my_list, like [e', ?, 'a', 'd', b', c], also as an example. 1. 2. This function should return the sorted list, generated from 'my_list. For above example, it should return: 3. Write code to call the function 'sorted list', with input 'e,f,a.d.b.c', and prints each element in the returned 4. Note: you do not need to use 'input. In step '3' above, you'll call the function you wrote using an example sorted list, each on its own line. string as stated. def sorted_list(s): pass # your code goes here, please have nice docstring and clean code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
