Skip to content

Commit 07d46ad

Browse files
authored
Update README.md
Create list without append
1 parent 8a5db17 commit 07d46ad

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ Batch create a list of objects:
145145
customer2 = Customer()
146146
customer2.CompanyName = "Test Company 2"
147147

148-
customers = []
149-
customers.append(customer1)
150-
customers.append(customer2)
148+
customers = [customer1, customer2]
151149

152150
results = batch_create(customers, qb=client)
153151

0 commit comments

Comments
 (0)