00:01
We're going to be creating a python program that calculates the volume of a rectangle using functions.
00:09
So to get started, we want to create a class.
00:12
We'll call this class.
00:17
Within this class, we want to create a function where we is basically similar to a constructor in python.
00:28
So we want to do initiate and our parameters.
00:39
Parameters are how we pass information in our program.
00:46
So within here we want to do self -length equals l.
00:58
Self -dap length equals w.
01:07
And lastly, height.
01:12
All right, it's good.
01:14
Now we want to come out.
01:15
Of that and we want to create a compute function.
01:21
This compute function we don't have any parameters to pass but instead we want to return the output return and we want to apply the formula for the volume of the rectangle.
01:42
Also do you want to add self here so the self that length times self dot width time self dot rents.
02:07
Now we can come out of there...