00:01
Hello, welcome to this lesson.
00:01
In this lesson, we would have a function called calculate that would take 5 using goods, then give a rate a to f using the average of the 5.
00:23
Alright, so let's go on.
00:27
Now let's define the function calculate, and let's give it a the 5 user inputs, score 1 to score 5.
00:49
So here we'll take the grid, which is important to the sum, some of all the scores, the sum of all the scores divided by 5.
01:16
That will give us the outreach of the scores.
01:24
Now we check if the grid is equal to 90.
01:34
We would break.
01:42
Let's say, we do the else if.
01:57
So else if grade is greater than or equal to 80.
02:15
Okay.
02:27
And grade is less than or equal to 89.
02:49
Okay.
02:51
With this two will print.
02:59
So i would have to copy this.
03:19
Then change it from 70 to 79.
03:32
Print a c.
03:45
Then a d for 60 to 69.
03:51
That would be a d.
04:09
Then else.
04:12
If none of the cases, print f.
04:24
I mean the ones that we have...