i started learning python today and i had this project in mind where the code would generate a random nucleotides sequence. This is the code im using for now its its working perfectly fine
import random
import string
nuc = '*Chaine aleatoire de nucleotides (Brin transcrit)* :'
nucBNT = '*Chaine aleatoire de nucleotides (Brin non transcrit)* :'
nucleotides_length = 30
possible_characters = "ATCG"
random_character_list = [random.choice(possible_characters) for i in range(nucleotides_length)]
random_nucleotides = "".join(random_character_list)
print(nuc, random_nucleotides)
I was then thinking about it generating the completing nucleotide sequence ( replacing Adenine by Thymine, Guanine by Cytosine, Thymine by Adenine and Cytosine by Guanine) but this is my first time opening Python and i dont know any way on how to do this despite looking on internet. Any help would be highly appreciated
Have a great day