Skip to content

Instantly share code, notes, and snippets.

@danyashorokh
Last active May 4, 2019 01:35
Show Gist options
  • Save danyashorokh/31743e4f19bd7eb0bdb31e95060defcc to your computer and use it in GitHub Desktop.
Save danyashorokh/31743e4f19bd7eb0bdb31e95060defcc to your computer and use it in GitHub Desktop.
[Python] Open file python
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