And let's do some more exercises to practice
on everything you have seen in this section
and more specifically on conditions and loops.
So the first exercise is to compute the Max value inside a list of numbers.
So you create a list of numbers and then you're
going to create a function, pass the list
as a parameter, compute the Max value inside
the function and then return that Max value.
The second exercise you are going to create an empty list.
So to create an empty list you just create a list
with brackets and you don't add any element in that.
Okay, that's very simple.
And then you ask the user to give you five numbers.
You compute and you print the average.
So you will need to think of what kind of loop do you need.
Do you need a for loop or do you need a while loop?
And also to print the average of the list you don't need to rewrite the code.
We already had one function that prints the average.
So you can use that function.
And the third exercise is actually the same
as the second one but with a slight variation.
Instead of asking the user to give you five
numbers, you ask the user to give you numbers and you continue to read numbers.
And you just stop when the user gives you the number zero.
So once again what I advise you to do is if you just watched once the previous lessons
then you can watch them once again and then do the exercise
and I will see you in the next video for the solution.