1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Soloha48 [4]
3 years ago
7

Write a program that prompts the user to enter an oligonucleotide sequence, such as TATGAGCCCGTA.

Computers and Technology
1 answer:
Alexxx [7]3 years ago
7 0

Answer:

Explanation:

The following code is written in Python. It continues looping and asking the user for an oligonucleotide sequence and as long as it is valid it outputs the reverse complement of the sequence. Otherwise it exits the loop

letters = {'A', 'C', 'G', 'T'}

reloop = True

while reloop:

   sequence = input("Enter oligonucleotide sequence: ")

   for x in sequence:

       if x not in letters:

           reloop = False;

           break

   if reloop == False:

       break

   newSequence = ""

   for x in sequence:

       if x == 'A':

           newSequence += 'T'

       elif x == 'T':

           newSequence += 'A'

       elif x == 'C':

           newSequence += 'G'

       elif x == 'G':

           newSequence += 'C'

   print("Reverse Complement: " + newSequence)

You might be interested in
3 items that were on Ken’s “big human bee movie
Pie

Answer:

all my special skills, my top 10 favorite movies, I predicted global warming

hope it helped

Explanation:

6 0
4 years ago
How to fix 500 internal server error youtube?
DedPeter [7]
Just shut everything down.

Hope this was helpful :) 
5 0
3 years ago
Read 2 more answers
Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter a value for one edge of a
morpeh [17]

Answer:

I'll answer this question with a Pseudocode

<em>1. Start</em>

<em>2. Input Length</em>

<em>3. Surface Area1 = Length * Length</em>

<em>4. Surface Area2 = 6 * Surface Area1</em>

<em>5. Volume = Length * Length * Length</em>

<em>6. Print Surface Area1</em>

<em>7. Print Surface Area2</em>

<em>8. Print Volume</em>

<em>9. Stop</em>

<em />

Explanation:

The first line starts the Pseudocode

The second line accepts input for Length of the cube

The third line calculates the surface area of 1 side

The fourth line calculates the surface area of the cube

The fifth line calculates the volume of the cube

The sixth to ninth line prints the calculated parameters

The Pseudocode ends on line 9

8 0
4 years ago
Fedora operating system
jonny [76]
Fedora is a Linux-based Operating System which is free and open-source, <span>developed by the community-supported </span>Fedora<span> Project and sponsored by Red Hat.</span><span />
4 0
3 years ago
What does it mean when my modem has a orange light on my ethernet?
Nookie1986 [14]
You need to reboot the modem to reconnect to the ethernet
8 0
4 years ago
Other questions:
  • Using commands you learned in lessons 1 and 2. Get your IP address, netmask, DNS hostname, and MAC address. Compare these with y
    5·1 answer
  • The Active Directory Users and Computers tool can be used to:______.
    11·1 answer
  • A ________ provides quick access to context indicators, email, secure instant messaging, voice and video calling, conference cal
    10·1 answer
  • The vast majority of the population associates Blockchain with cryptocurrency Bitcoin; however, there are many other uses of blo
    12·1 answer
  • How can I get more views on my you tube channel "Braeden Eischen" without paying anything
    5·1 answer
  • Provide a class Letter for authoring a simple letter. In the constructor, supply the names of the sender and the recipient: def
    11·1 answer
  • True or false? Software application packages function as the interface between the operating system and firmware.
    7·1 answer
  • In what ways can you modify the location of the neutral point?
    12·1 answer
  • &lt;BUTTON TYPE="BUTTON" VALUE="SUBMIT"&gt;SUBMIT YOUR FORM&lt;/BUTTON&gt;
    7·1 answer
  • what is the keyboard shortcut to display formulas on the worksheet : a. CTRL+ B. CTRL+: C. CTRL+; D. ALL THE ABOVE
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!