# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     name: python3
# ---

# + [markdown] id="view-in-github" colab_type="text"
# <a href="https://colab.research.google.com/github/Dolcevice/Rosalind-Answers/blob/master/Rosalind_3_Reverse_Compliment_0710.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>

# + id="rfdeOSzHGPNJ" colab_type="code" colab={}
complements = { 'A' : 'T', 'T' : 'A', 'C' : 'G', 'G' : 'C'}

# + id="bzEuBDVNFfnL" colab_type="code" outputId="b464fd30-c824-43db-80f0-07a5135aa74e" colab={"base_uri": "https://localhost:8080/", "height": 71}
result = ''
target = (str(input("Yeet: ")))
target = target[::-1]
for ch in target:
  try:
    result += complements.get(ch)
  except:
    print("yeet?")
    break
    
print (result)

StarcoderdataJupyterScriptsDedupFiltered