virus is supposed to be a string of nucleotides, and the function should return a string consisting of the same amount of nucleotides, but one is changed.
def mutate(virus):
mutations = ['A', 'T', 'C', 'G']
virus.split
random.randrange(1, stop=len(virus), step=1) = random.choice(mutations)
so for example if the virus is ATCG it should return something like ATCC or GTCG, how can I go about this, I tried making virus into a list, and replacing a random variable in it with a random of my possible mutations list.
So it should probably make a list from the string virus, do a mutation, put the list back into a string and return the string.