Hello everyone, How can I, at each, for example, 10 iterations, insert a value into the dictionary that I give it? For example JSON:
{ "id": 1, "name": “A green door”, "price": 12, "tags": } My task is that every 10 iteration in tags will be an empty line:
for i in xrange(100) a['id'] = random.randint(100, 2000000) a['name'] = faker.name() a['price'] = random.randit(10, 20) a['tags'] = random.choice(['te', 'rara','tete', " "])