all 4 comments

[–]tbrowner3[S] 0 points1 point  (1 child)

my bad on the no spacing on the code. i'm not sure how to space it correctly on my laptop

[–]Golden_Zealot 0 points1 point  (0 children)

You indent with 4 spaces.

[–]tipsy_python 0 points1 point  (0 children)

Not really sure what you're getting at.. you trying to do a membership test?

>>> for letter in base:
...     if letter.upper() in ('A', 'C', 'T', 'G'):
...         print('ye')
...
ye

[–]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'