Skip to content

Instantly share code, notes, and snippets.

@sidharthshah
Created April 24, 2018 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sidharthshah/d3f019069aea0166e9b7778473750b46 to your computer and use it in GitHub Desktop.
Save sidharthshah/d3f019069aea0166e9b7778473750b46 to your computer and use it in GitHub Desktop.
gnome.py
def numeric_encoding(some_string):
mappings = {"A": "1", "G": "2", "C": "3", "T": "4"}
results = ""
for current in some_string:
results += mappings[current]
return results
numeric_encoding("AGCTTCA")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment