#!/usr/bin/env python3 import csv rows = [] for i in range(2): filename = f"xxx{i}.csv" with open(filename) as f: reader = csv.reader(f) rows.append([row for row in reader])
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 7, in <module> FileNotFoundError: [Errno 2] No such file or directory: 'xxx0.csv'