News for hackers. Stuff that matters.
Re:Advanced Python Mastery – A Course by David Beazley by WesolyKubeczek on Wednesday July 19, 2023 @11:15AM (#36787826)

    with open(filename) as f:
        rows = csv.reader(f)
        next(rows)
        return [
            {
                'name': row[0],
                'shares': int(row[1]),
                'price': float(row[2]),
            } for row in rows
        ]

There are no comments on this comment yet.