1
00:00:05,280 --> 00:00:08,942
In this section, we're going to look at 
input and output in Python.

2
00:00:08,942 --> 00:00:14,560
Input/Output, I/O, just means getting data into a 
program, and getting it out again. 

3
00:00:14,560 --> 00:00:19,331
We've already seen one way to enter data into our 
programs from the keyboard, using input. 

4
00:00:19,331 --> 00:00:24,190
Often, we'll want to store that data more permanently 
– that's where disk files come in handy. 

5
00:00:24,480 --> 00:00:27,789
This section will start with the 
basics of how text files work. 

6
00:00:28,080 --> 00:00:32,421
You'll learn about what the file pointer is, and 
how it keeps track of where you are in the file. 

7
00:00:35,040 --> 00:00:40,381
Python makes working with text files very easy. 
It's rare that you need to worry about the file pointer – 

8
00:00:40,381 --> 00:00:44,800
 you can treat a text file like a list.
We'll have a look at binary data files, 

9
00:00:44,800 --> 00:00:48,775
later in the section, and see how 
we can choose which values to read. 

10
00:00:48,880 --> 00:00:52,287
We'll also see various ways 
to write data to a file. 

11
00:00:54,720 --> 00:00:58,654
I'm going to start this section with a very 
brief discussion about files and paths. 

12
00:00:58,960 --> 00:01:02,320
This will be a brief discussion, to 
introduce some of the terminology 

13
00:01:02,320 --> 00:01:07,860
used when referring to files on disk.
It won't be an in-depth course on files and paths. 

14
00:01:07,920 --> 00:01:12,267
If this is something you're not familiar with, 
you'll want to learn more about how files are stored, 

15
00:01:12,267 --> 00:01:15,360
on your operating system.
Google for something like, 

16
00:01:15,360 --> 00:01:19,743
what is a file path, if you're not 
familiar with them, and need to know more. 

17
00:01:22,400 --> 00:01:26,560
It's very hard (if not impossible) 
to learn how to program a computer, 

18
00:01:26,560 --> 00:01:30,320
if you're not comfortable using one.
So we'll start this section with a brief 

19
00:01:30,320 --> 00:01:35,520
explanation of files, directories and 
paths. If you already understand paths, 

20
00:01:35,520 --> 00:01:40,515
skip the next few videos. And I'll see 
you in whichever video you watch next.

