switch to ras-dan-01
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after -56s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after -56s
This commit is contained in:
10
files/read_cat.py
Normal file
10
files/read_cat.py
Normal file
@@ -0,0 +1,10 @@
|
||||
def read_cat_file(filename="cat_file"):
|
||||
out_list = []
|
||||
with open(filename, "r") as cat:
|
||||
for line in cat:
|
||||
out_list.append(line.rstrip())
|
||||
return out_list
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(read_cat_file())
|
||||
Reference in New Issue
Block a user