I had written the code given below:
Its output datatype is integers, I want these integers to be in list. I’m new to python. Please suggest how to do it.
lineNo = 0
css = open("/Users/john/Work/html/Ribbon/header.css")
for line in css.readlines():
lineNo = lineNo + 1
if "width" in line:
print(lineNo)
1 Answer