INNER CODE UNIT · Python
DNA_nucleotide_count
dataprofessor/streamlit_freecodecamp · app_2_simple_bioinformatics_dna/dna-app.py:55
def DNA_nucleotide_count(seq):
d = dict([
('A',seq.count('A')),
('T',seq.count('T')),
('G',seq.count('G')),
('C',seq.count('C'))
])
return d
X = DNA_nucleotide_count(sequence)
#X_label = list(X)
#X_values = list(X.values())
X
### 2. Print text
st.subheader('2. Print text')