files Flashcards

(4 cards)

1
Q

Required capacity calculation

A

Required capacity = number of
files
files × size of a single file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

open a text file to read

A

f = open(“name.txt”,”r”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

close a text files

A

f.close()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

open text file to write

A

f = open(“name.txt”,”a”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly