233k views
5 votes
Choose the character you would use in the blank for the mode described.

Choose the character you would use in the blank for the mode described.-example-1
User Ashraful
by
7.3k points

1 Answer

3 votes

Answer:

To write to a new file, use ‘w'

To read to a fine, use ‘r'

To add text to an existing file , use ‘a'

Step-by-step explanation:

I would recommend viewing the python documentation to understand more on why were using these specific characters :)

User Danyun Liu
by
8.0k points