I got this error when I tried to open the csv file where I made the changes I wanted to know the reason for this error (FileNotFoundError : [Errno 2] No such file or directory: 'bahal.csv')
import csv
from statistics import mean
with open('bahal.csv') as f:
reader = csv.reader(f)
for row in reader:
name = row[0]
average = statistics.mean(row[1:])
javab = name , average
print(javab)