Card 1 of 14
Question
How to open a file for reading?
tap to flip
Answer
`with open("file.txt", "r") as f:` then read inside the with block
Question
How to open a file for reading?
tap to flip
Answer
`with open("file.txt", "r") as f:` then read inside the with block