filmov
tv
Easy read and search through TXT files for Python

Показать описание
I shortened the code as far as I could to read and prep text files for iteration without module imports. This is primarily. for those new to Python, Code Below:
fh = open(fname).read().strip().split()
[x for x in fh if "@" in str(x)]
#fileread #python #iteration
fh = open(fname).read().strip().split()
[x for x in fh if "@" in str(x)]
#fileread #python #iteration