Answers for "how to read multiple files in a loop in python"

0

how to read multiple files in a loop in python

import numpy as np
files = ["a.txt", "b.txt"]
for file in files:
  print(np.loadtxt(file, skiprows=1))
Posted by: Guest on October-25-2021

Code answers related to "how to read multiple files in a loop in python"

Python Answers by Framework

Browse Popular Code Answers by Language