nl: replace %s in string ' %s%s' with: line and character ',' if i is lesser than length of table_output decremented by one,
code: full_statement . append ( ' %s%s' % ( line , ',' if i < len ( table_output ) - 1 else '' ) )