So we're going to learn to do more operations on our list.
So I'm going to remove this since we don't need it anymore and I'm going to keep this I'm going to change
my list, going in to some random numbers, let's say five eight eight, 10, 150, zero seven to 11.
Thirty six, ninety one.
OK, so I have a list of random numbers, no, how about ordering this list by ascending or descending
vowels?
In order to do that, we're going to do a very simple thing.
We're going to say my second list, Dot.
Sort of OK, and then here I'm going to be printing my second list.
So let's see what's going to happen if you click on this, it will compile one.
Here we go.
As you can see, it's picked 150 as the maximum, zero as the minimum, and it did order Miles in ascending
order.
That's great.
We got it right and algorithm's.
We just give it the list and we call this small method function on it, and that's it.
Now, how about if I wanna order them in the reverse direction so we will be descending from higher
to lower, so we're going to do.
So we're going to go here.
I'm going to say my second lowest thought, but I'm going to pass a parameter to this sort.
It's called reverse.
So reverse equals one.
Now, I'm going to reprint this one more time.
OK, so here I am ordering them in ascending order.
I'm printing it.
I'm ordering them in descending order and printing it.
Let's see, as you can see, the list was ordered in both ways, so as you can see, Python is a really
easy language and you just say what you want to do and you type it.
So it's really a human readable language because you only say what you want to do and you just write
it as you are speaking a language.
So there is no complicated syntax.
It's really simple to learn and you can do infinitely many stuff using this programming language.