I'm new to python.
I'm want to open multiple files in Python. I'm can open each of them with open()
function.
I'm not sure about formatting.
with open("/test/filename.css", "r") as f:
s = f.readlines()
print(s)
I'm can open one file, but I'm not sure how to open multiple files.
This is the code that I have. In live_filename()
function have many files.
inputfiles = live_filename()
for live in inputfiles:
with open("/test/............. .css, "r") as f:
I don't know how to put code formatting in space. and I think the live
variable is a tuple can't concatenate str. what should i do?
print
ing the return value oflive_filename()
.print(inputfiles)