Question: Question 2 Create a function named `get_strings` that takes an argument called `mylist` and returns a new list that only contains strings. The strings should

Question 2

Create a function named `get_strings` that takes an argument called `mylist` and returns a new list that only contains strings. The strings should also be sorted in ascending order

**Function argument:** This function takes one argument named `mylist`

**What does it do?:** This function takes the `mylist` argument that may have numbers and strings and removes the numbers from it and returns a new list with just strings

**What it returns?:** Returns a new sorted list with strings.

For instance,

`mylist = ['zara', '124, 'jane', 5]`

`get_strings(mylist)`

should return

`['jane', 'zara']`

**Note:** Your code goes in the below cell.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!