1 00:00:00,000 --> 00:00:03,022 And let's do some more exercises to practice 2 00:00:03,034 --> 00:00:06,000 on everything you have seen in this section 3 00:00:06,001 --> 00:00:10,000 and more specifically on conditions and loops. 4 00:00:10,001 --> 00:00:14,000 So the first exercise is to compute the Max value inside a list of numbers. 5 00:00:14,001 --> 00:00:16,659 So you create a list of numbers and then you're 6 00:00:16,671 --> 00:00:19,000 going to create a function, pass the list 7 00:00:19,001 --> 00:00:22,989 as a parameter, compute the Max value inside 8 00:00:23,001 --> 00:00:27,000 the function and then return that Max value. 9 00:00:27,001 --> 00:00:31,000 The second exercise you are going to create an empty list. 10 00:00:31,001 --> 00:00:36,000 So to create an empty list you just create a list 11 00:00:36,001 --> 00:00:37,000 with brackets and you don't add any element in that. 12 00:00:37,001 --> 00:00:38,000 Okay, that's very simple. 13 00:00:38,001 --> 00:00:42,000 And then you ask the user to give you five numbers. 14 00:00:42,001 --> 00:00:45,000 You compute and you print the average. 15 00:00:45,001 --> 00:00:48,000 So you will need to think of what kind of loop do you need. 16 00:00:48,001 --> 00:00:50,000 Do you need a for loop or do you need a while loop? 17 00:00:50,001 --> 00:00:54,000 And also to print the average of the list you don't need to rewrite the code. 18 00:00:54,001 --> 00:00:57,000 We already had one function that prints the average. 19 00:00:57,001 --> 00:01:00,000 So you can use that function. 20 00:01:00,001 --> 00:01:02,887 And the third exercise is actually the same 21 00:01:02,899 --> 00:01:06,000 as the second one but with a slight variation. 22 00:01:06,001 --> 00:01:08,432 Instead of asking the user to give you five 23 00:01:08,444 --> 00:01:14,000 numbers, you ask the user to give you numbers and you continue to read numbers. 24 00:01:14,001 --> 00:01:19,000 And you just stop when the user gives you the number zero. 25 00:01:19,001 --> 00:01:24,000 So once again what I advise you to do is if you just watched once the previous lessons 26 00:01:24,001 --> 00:01:29,000 then you can watch them once again and then do the exercise 27 00:01:29,001 --> 00:01:31,000 and I will see you in the next video for the solution.