def prettytuple(t):
 return (('(' + ', '.join((str(f) for f in t))) + ')')

def prettytuple ( t ) : return ( ( '(' + ', ' . join ( ( str ( f ) for f in t ) ) ) + ')' )
use the string representation of objects in a tuple .