python_lists
Table of Contents
dummy
tasks
read file as list of strings
fname = "foo.txt" with open(fname, "r") as fh: lines = [line.rstrip() for line in fh]
python_lists.txt · Last modified: 2023/05/05 15:23 by admin
fname = "foo.txt" with open(fname, "r") as fh: lines = [line.rstrip() for line in fh]