Untitled

Anonymous
python
01/02/2023 3:10 PM
200 B
23
Indexable
pet = Animal('Emirat', 10)
pet_obj = [vars(pet)]
print(pet_obj)

session.add_all((Animals(**pet) for pet in pet_obj))
session.commit()
session.close()
Editor is loading...