The script is generating a dictionary name result
# Display headers.
for header in result['headers']:
print('%25s' % header['name'], end=''),
print()
# Display results.
if 'rows' in result:
for row in result['rows']:
for cell in row['cells']:
print('%25s' % cell['value'], end='')
print()
How can I store the header on the top row and store the results without overwriting & duplicate in google sheets. I've already connected CGP and everthing