Entering edit mode
4.0 years ago
ran
•
0
Hello,
I'm new to the world of python and im trying to solve a question which I am given a few dna sequences, for example:
sequences = ["GAGGTAAACTCTG", "TCCGTAAGTTTTC", "CAGGTTGGAACTC", "ACAGTCAGTTCAC",
"TAGGTCATTACAG", "TAGGTACTGATGC"]
I want to know how many times the nucleotide "A" is in the first position [0] of all of those sequences (the answer should be 1 in that case). Im trying to use for loop but don't really know how to move forward. Ill appreciate any help, Thank you!
Hi, It is not a norm but it is a good practice to post an attempted resolution first and then other members try to correct it or suggest another answer. You said you are a python beginner so don't worry about judgments you can post any attempt no matter how bad it went. ;)
cross posted: https://stackoverflow.com/questions/67060118/
[0, 0, 0, 1, 0, 0]
1