Use code tag.
There are several problems here invalid Python syntax
Do not use single
There are several problems here invalid Python syntax
%precision 2
,missing :
and '
.Do not use single
\
backslash in path,see raw string in code r''
.import csv # %precision 2 ## Not a Python syntax with open(r'C:\Users\LENOVO\Documents\mpg.csv') as csvfile: mpg = list(csv.DictReader(csvfile))