Created
May 30, 2022 09:31
-
-
Save pointofpresence/6a7301980adae3d9038a0198b56c322b to your computer and use it in GitHub Desktop.
Read file line by line to list
This file contains hidden or 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('list.txt') as file: | |
| self.lines = [line.rstrip() for line in file.readlines()] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment