[Solved] Write each individual row of a csv as a separate list (python)


It could be as simple as

from csv import reader
from random import choice

with open(myfile, newline="") as in_f:
    rd = csv.reader(in_f)
    choices = [choice(row) for row in rd]

(no need to make individual lists)

2

solved Write each individual row of a csv as a separate list (python)