Question: Create a function named `get_numbers` that takes an argument called `mylist` and returns a new list that only contains numbers. The returned list must be

Create a function named `get_numbers` that takes an argument called `mylist` and returns a new list that only contains numbers. The returned list must 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 strings from it and returns a new list with just numbers

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

For instance,

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

`get_numbers(mylist)`

should return

`[5, 124]`

**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!