Created
September 29, 2020 22:29
-
-
Save anna-anisienia/91e075a622c6d9949f682180a4869201 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open('data.txt', 'r') as myfile: | |
data = myfile.read() | |
print(data) | |
# 'Hello from context manager!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment