DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR TYPESCRIPT
Modify the program so it also prints the number of A, T, C, and G characters in the sequence in python
A
=
"GATTACA"
for
i
in
[
'A'
,
'C'
,
'G'
,
'T'
]
:
n
=
0
for
j
in
A
:
if
(
i
==
j
)
:
n
+=
1
print
(
i
,
"="
,
n
)
Source by hackmd.io #
PREVIOUS
NEXT
Tagged:
#Modify
#program
#prints
#number
#G
#characters
#sequence
#python
ADD COMMENT
Topic
COMMENT
Name
6+9 =
Submit