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
Drag the tiles to the correct boxes to complete the pairs.
LiRa [457]

The matchup are:

  • information support and services - providing technical assistance to users
  • network systems - creating interactive materials
  • programming and software development - designing and developing applications for an organization's use
  • web and digital communications -developing and implementing an
  • organization's technology infrastructure

<h3>What is network system?</h3>

A network is known to be made up of a set of computers, servers, network devices, and other devices that are linked so that it can allow data sharing.

Therefore, The matchup are:

  • information support and services - providing technical assistance to users
  • network systems - creating interactive materials
  • programming and software development - designing and developing applications for an organization's use
  • web and digital communications -developing and implementing an
  • organization's technology infrastructure

Learn more about network systems from

brainly.com/question/1326000

#SPJ1

6 0
2 years ago
How do you add a section break that would start the new section on the same page?
Maksim231197 [3]
Leave a line and that will make a section break
8 0
4 years ago
Read 2 more answers
What are the advantages of upgrading computer hardware?
babymother [125]
Depends What type of Hardware you are talking about there it depends what you upgrade in a computer for example if you upgrade your ram it make it run and preform faster.
5 0
4 years ago
Read 2 more answers
Usted repetir la pregunta?<br>O A. Es<br>B. Puede<br>C. Puedes<br>O D. Está​
puteri [66]

Answer:

I believe the answer is B. Puede

5 0
3 years ago
Read 2 more answers
How can properly formatting an electronic résumé give an applicant a competitive edge over other applicants?
Yakvenalex [24]
Applicants can better present themselves in a well-formatted resume. It can easily let the employer see the best details about the applicants. This can also add more interest on the applicant's abilities and skills through direction and emphasis.
8 0
4 years ago
Read 2 more answers
Other questions:
  • The ____ cell on the worksheet is the one into which you can enter data.â
    15·2 answers
  • Which of the four basic functions of a computer refers to the collection of data by a computer?
    11·2 answers
  • A flowchart that depicts the relationships among the input, processing, and output of an AIS is
    6·1 answer
  • In the Word 2016 window, where is the Status bar located?
    11·1 answer
  • A device which lets you interact with the computer
    6·2 answers
  • What is the meaning of the concept (atomically)
    11·1 answer
  • Classify the following skills: communication, creativity, and independence.
    15·1 answer
  • Where is the best place to self learn c++ or c# that is free?
    6·2 answers
  • Example of vector image format​
    12·1 answer
  • Exactly how many times must the merge function call each of read and write to merge two arrays of size n/2 into an array of size
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!