def print_rows(results):
 print('Rows:')
 if results.get('rows', []):
  for row in results.get('rows'):
   print(' DCTB '.join(row))
 else:
  print('No Rows Found')

def print_rows ( results ) : print ( 'Rows:' ) if results . get ( 'rows' , [ ] ) : for row in results . get ( 'rows' ) : print ( ' DCTB ' . join ( row ) ) else : print ( 'No Rows Found' )
prints all the rows of data returned by the api .