Skip to content

Instantly share code, notes, and snippets.

@popey456963
Created November 4, 2015 18:46
Show Gist options
  • Select an option

  • Save popey456963/af5a05d431e783d42a99 to your computer and use it in GitHub Desktop.

Select an option

Save popey456963/af5a05d431e783d42a99 to your computer and use it in GitHub Desktop.
Counting DNA
s=input()
a=s.count("A")
b=s.count("C")
c=s.count("G")
d=s.count("T")
print(str(a) + " " + str(b) + " " + str(c) + " " + str(d))
@popey456963
Copy link
Copy Markdown
Author

s=input()
print(s.count("A"),s.count("C"),s.count("G"),s.count("T"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment