BIT BY BYTE
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