00:01
Hello students, based on the code i have made some modification to address the issue and improve the functionality.
00:10
So this is the updated code.
00:12
Here first the code starts by taking user input for the file name using an input function and stores in the variable of the file name.
00:25
So it first takes an user input as the enter the name and functions and stores the variables in the file name.
00:34
So next we will move to print the header.
00:38
So the header is printed using a print function with it is printed with a print function fine using a using with the format of percentage formatting syntax to align this will helps to align the columns fine.
00:58
So here i can see we are printing the header print print the header header.
01:10
So we are creating a columns of the name columns with its name as name hours and wages and also the total pay.
01:20
So after that now we will open our file.
01:24
We will open the file open the file open the file the with the with open method with open function the statement is used to open the file in read mode.
01:42
It is just used in only the read mode as the file and this ensures that the file is automatically closed when we are done with it fine when we are done with it...