Extract values from csv and passed in a class

for item in items:
Item(
name=item.get(‘name’),
price=float(item.get(‘price’)),
quantity=int(item.get(‘quantity’)),
)

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.