trans
=
{
'A'
:
'T'
,
'T'
:
'A'
,
'C'
:
'G'
,
'G'
:
'C'
}
mystring
=
"ATTGCA"
with
open
(
"data1.txt"
,
"w+"
)
as
outfile:
for
character
in
mystring:
outfile.
write
(
trans
[
character
]
)
outfile.
seek
(
0
)
print
outfile.
read
(
)