Chapter 4 Data Flashcards
1
Q
Where does Data Structures come from?
A
data comes from a file stored on a hard disk
2
Q
What does Iterate mean?
A
To go through a line of code
3
Q
What kind a statement is this “result_f = open(“results.txt”)”
A
Open the file and give it a file handle
4
Q
What does this mean open()
A
file handle
5
Q
What do you call when you read one line at a time
A
For Loop
6
Q
Each time the body of the for loop runs what happens
A
variable is set to a string containing the current line of text in the file. This is referred to as iterating
through the data in the file
7
Q
What does this mean result_f.close()
A
Close the file
8
Q
What does split() method mean?
A
cuts the string