You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
programming-basics-2022/09_python/lzy_load.py

20 lines
325 B

from typing import List
def load_files(paths: List[str]):
for path in paths:
with open(path) as f:
yield f.readlines()
paths = [
"dict_gen.py",
"enum.py",
"for_loop.py",
"gen.py",
"lzy_load.py",
]
for cont in load_files(paths):
# code working with content
print(cont)