def __repr__(self):
        '''String to print when object is called directly.'''
        display_bases = 40
        if len(self.seq) < 90:
            sequence = self.seq
        else:
            sequence = ''.join([self.seq[:display_bases], ' ... ',
                                self.seq[-display_bases:]])
        return str(sequence)
def __repr__ ( self ) : display_bases = 40 if len ( self . seq ) < 90 : sequence = self . seq else : sequence = '' . join ( [ self . seq [ : display_bases ] , ' ... ' , self . seq [ - display_bases : ] ] ) return str ( sequence )
String to print when object is called directly.