SyntaxFix
Write A Post
Hire A Developer
Questions
For Python 3.4+:
import csv from pathlib import Path base_path = Path(__file__).parent file_path = (base_path / "../data/test.csv").resolve() with open(file_path) as f: test = [line for line in csv.reader(f)]