Skip to content

Instantly share code, notes, and snippets.

@Sachin-crypto
Created January 22, 2022 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sachin-crypto/3b7f15b579738bf1b35c6c73e7ffb6dc to your computer and use it in GitHub Desktop.
Save Sachin-crypto/3b7f15b579738bf1b35c6c73e7ffb6dc to your computer and use it in GitHub Desktop.
import fileinput
with fileinput.input(files=('first.txt', 'second.txt','third.txt')) as f:
for line in f:
print(line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment