00:01
Okay, this one says, a complete program that asks the user to enter the name of a text file.
00:06
Using a function, open and read the content of the file, count how many lines exist in the file.
00:12
Play only the number of lines counted to the user do not display any message from the count lines function.
00:21
I'm not familiar with that function, so i guess that's fine.
00:27
Clear a function.
00:28
Oh, i guess that's our function.
00:30
Okay.
00:31
So they want us to make a function, and we're going to call it a function.
00:33
Count lines.
00:36
It's going to take string, file name.
00:42
But since this is python, we don't need to say string, actually.
00:45
So we're just going to do that.
00:46
And we're going to say f equals open.
00:50
Looks like we have a file called text of txc.
00:53
And we're going to say f.
00:55
Read.
00:57
And we're going to say for, we're going to say text equals f .reed...