Skip to content

Instantly share code, notes, and snippets.

@filiptronicek
Created May 18, 2019 18:16
Show Gist options
  • Save filiptronicek/08301660a0a0be48ac67739240e9679e to your computer and use it in GitHub Desktop.
Save filiptronicek/08301660a0a0be48ac67739240e9679e to your computer and use it in GitHub Desktop.
name = input("What is the txt file name? ")
lines = [line.rstrip('\n') for line in open(name, encoding="UTF-8")]
print(lines)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment