Quiz Catalog

Catalog of quizzes

template = { "i": 0 }
values = []

for i in range(5):
  if i > 2:
  template["i"] = i
  values.append(template)

print(values)
[{'i': 4}, {'i': 4}]
  • dict/lvalue