How can I print all of the output on the same line? Something like ",,,key, value". The below creates a newline for every preceding ','.
for i in range(0, depth):
print(',')
print("{}, {}".format(key, value))
How can I print all of the output on the same line? Something like ",,,key, value". The below creates a newline for every preceding ','.
for i in range(0, depth):
print(',')
print("{}, {}".format(key, value))