Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement