3 ms·
That's not a very big hurdle to overcome, though: print("{") contents = "" for elem in list: contents += '"key": "value",' print(content
by alwaysbeconsing 3y ago
That's not a very big hurdle to overcome, though:
print("{")
contents = ""
for elem in list:
contents += '"key": "value",'
print(contents[:-1])
print("}")