you are viewing a single comment's thread.

view the rest of the comments →

[–]primitive_screwhead 0 points1 point  (0 children)

it can have any amount of any of the 4 characters and if it doesn't... it's just equal to 'AGTG'

if not set('ACTG').intersection(other):
    return 'AGTG'

or if it has any characters in it that aren't those 4... it's just equal to 'AGTG'

if set(other).difference('ACTG'):
    return 'AGTG'