1 00:00:00,000 --> 00:00:03,923 Alright, and now it's time for a few exercises to practice on 2 00:00:03,935 --> 00:00:08,000 everything you have seen in this section, especially variables. 3 00:00:08,001 --> 00:00:10,925 So I'm going to give you three small exercises 4 00:00:10,937 --> 00:00:14,000 here and the solution will be on the next video. 5 00:00:14,001 --> 00:00:17,918 If something is not clear for you, I encourage you to go 6 00:00:17,930 --> 00:00:22,000 back to the previous lessons and watch them one more time. 7 00:00:22,001 --> 00:00:24,000 And now let's see what are the exercises. 8 00:00:24,001 --> 00:00:27,047 So the first exercise, for all the exercises you are 9 00:00:27,059 --> 00:00:30,000 going to use the Python shell, like we did before. 10 00:00:30,001 --> 00:00:33,595 And here you are going to ask for the name and then 11 00:00:33,607 --> 00:00:37,000 for the age of a user and print the information. 12 00:00:37,001 --> 00:00:40,000 So you will need to use the input function twice. 13 00:00:40,001 --> 00:00:43,989 The second exercise, you will ask the user for two 14 00:00:44,001 --> 00:00:48,000 integer numbers, so still with the input function, 15 00:00:48,001 --> 00:00:52,000 and then you will add those numbers and print the result. 16 00:00:52,001 --> 00:00:56,000 So print the numbers and also the sum of the numbers. 17 00:00:56,001 --> 00:01:00,399 So as a tip here, don't forget to cast the values 18 00:01:00,411 --> 00:01:05,000 you get from the input function to integer numbers. 19 00:01:05,001 --> 00:01:11,000 And the third exercise, you are going to create a list containing four float numbers 20 00:01:11,001 --> 00:01:17,000 and you are going to compute the average of the list and also print this average. 21 00:01:17,001 --> 00:01:22,000 So for this I'm going to give you a new Python functionality you can use. 22 00:01:22,001 --> 00:01:29,000 You can directly use the sum, so sum function with the list as a parameter. 23 00:01:29,001 --> 00:01:32,000 This will sum all the elements in the list. 24 00:01:32,001 --> 00:01:38,000 And the average is the sum of the elements divided by the number of elements. 25 00:01:38,001 --> 00:01:40,956 And with that, I encourage you to really take 26 00:01:40,968 --> 00:01:44,000 the time to do the three small exercises here. 27 00:01:44,001 --> 00:01:48,000 And I will see you in the next lesson for the solution.