Last active
May 4, 2019 01:35
-
-
Save danyashorokh/31743e4f19bd7eb0bdb31e95060defcc to your computer and use it in GitHub Desktop.
[Python] Open file python
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
fi = open('input.txt','r') | |
e_list = [] | |
my_str = "" | |
for line in fi: | |
my_str += line | |
e_list = my_str.split("\n") | |
print(e_list) | |
fi.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment