File Access Modes Flashcards Preview

Python > File Access Modes > Flashcards

Flashcards in File Access Modes Deck (5)
Loading flashcards...
1
Q

Opens a file for reading only

A

r

2
Q

Opens a file in binary format

A

b

3
Q

Opens a file for appending; if the file does not exist, it creates a new file

A

a

4
Q

Opens a file for writing only and overwrites the existing file

A

w

5
Q

Adds a read or write operation depending on the one selected

A

+