00:01
So we will start by writing from pretty table.
00:12
This pretty table is a library in python that is used for visual representations of data in tabular form.
00:19
So from this library, we are importing a class called pretty table.
00:32
Now over here we can see the name of the library and name of the class is same.
00:36
But in the library name everything is a small letters and in the class name the p and t are in capital letters.
00:42
Next since we have imported this class from the library, next we are going to create an object called let's call it x.
00:52
So in order to use any method from this class, we need to create the object of this class.
01:02
We have created the object.
01:04
Next as it is given in the questions course, it is a nested list.
01:09
The first one is jack, josh and joe.
01:27
The next is the scores that is 90, 88 and 56, 67, 88, 87 and then we have 88, 99 and 78.
01:55
So these are the scores.
01:58
Next we have, we will take a variable called r and using the length function, we will store the number of rows that the table will consist of.
02:08
So we are calculating the scores, length of the scores.
02:13
Next we will write x .header equals to false.
02:21
So this header method is present in pretty table that is that shows the column name or let's say the field name.
02:30
So we do not want to give any field name or column name.
02:32
If we are giving header, x .header is equals to false.
02:35
Next we will use the for loop for i in range r.
02:47
So it will go to this range number of rows and it will keep adding the rows using the addrow function...