00:01
Hello students, for the code as font n in range of 0 to 2, print file 1 read line, read line.
00:20
So the code here it attempts to read the line from the file object, file 1.
00:27
So file object here is the file 1, file object is the file 1.
00:34
So however the variable file 1 is a case sensitive.
00:40
So if the actual file object was created with a different name as the file 1, like file 1, file 2 etc.
00:48
The code might have been working expected.
00:51
So assuming that the file 1's or the file object's name is indeed file 1, so and it contains the at least two lines of the text, the provided code it would have the output within two lines of the file.
01:06
So one line it iterates the line 1 as here the range 0 to 2, 0 to 2 this will generate the sequence of the numbers from the 0 to 1.
01:20
This means that the loop will run twice...