Question

Please answer this question by using PYTHON: Create a list called sequences that is initialized to...

Please answer this question by using PYTHON:

Create a list called sequences that is initialized to the following:

    ['tagtacta', 'catgat', 'gattaca', 'acta', 'gag']

    for each item in the list use a function to transcribe it to RNA.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

CODE IN PYTHON:

dnaSeq = ['tagtacta', 'catgat', 'gattaca', 'acta', 'gag']
n = len(dnaSeq)
for i in range(0,n):
dnaSeq[i] = dnaSeq[i].replace('t', 'u')
print("Corresponding RNA sequence is:")
for seq in dnaSeq:
print(seq)

INDENTATION:

OUTPUT:

Add a comment
Know the answer?
Add Answer to:
Please answer this question by using PYTHON: Create a list called sequences that is initialized to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Python Suppose a list called groceries has been initialized to [“milk”,”eggs”,”oranges”]. A programmer uses the list...

    Python Suppose a list called groceries has been initialized to [“milk”,”eggs”,”oranges”]. A programmer uses the list method sort() to arrange the items alphabetically. The sort() method Question 1 options: 1) is a mutator method – it physically changes the order of the items in the list 2) is an accessor method – it doesn’t change the order of the items in the original list, but returns a new list with the sorted items. 3) none of these 4) is a...

  • l Question 2 -JS and Python a) Write JavaScript code to create a function called "sortstingsDesc"...

    l Question 2 -JS and Python a) Write JavaScript code to create a function called "sortstingsDesc" that will sort an array of string suppiied as a parameter in descending order. (4) Write Python code to create a function called "addToFront" that will accept two parameters the list of information and the value to be added and place the value to the beginning of the list. [4) b)

  • Create a python file named FQ2 to do the following: - Create a list L. L...

    Create a python file named FQ2 to do the following: - Create a list L. L = [{'name': 'Sami', 'children': ['Fahad', 'Salwa', 'Khaled']}, {'name': 'Ahmed', 'children': ['Adel', 'Abeer']}, {'name': 'Samia', 'children': []}, {'name': 'Jameela', 'children': ['Najla', 'Salwa', 'Jamal']}] - Create a function called Populate that takes a list as a parameter. - The function will add each parent along with his children to the Database.   

  • In python: Create a list called numten that contains ten numbers go through the list and...

    In python: Create a list called numten that contains ten numbers go through the list and list the even and odd numbers

  • Assignment: USING PYTHON Expected submission: TWO (2) Python files, main.py and HelperClasses.py Make a file called...

    Assignment: USING PYTHON Expected submission: TWO (2) Python files, main.py and HelperClasses.py Make a file called HelperClasses and create a class inside it called Helpers Inside Helpers, create 8 static methods as follows: 1.) Max, Min, Standard_Deviation, Mean a.) Each of these should take a list as a parameter and return the calculated value 2.) Bubble a.) This should take a list as a parameter and return the sorted list 3.) Median a.) This should take a list as a...

  • Write a few lines of Python that will do the following: - Create an empty list...

    Write a few lines of Python that will do the following: - Create an empty list called all_numbers - Use a for loop to ask the user for 20 numbers (ints.). Add each number to all_numbers. - Use another loop to print each number in all_numbers that is between 10 an 20.

  • Python For this one use the random library. First, create a function called getRands that will...

    Python For this one use the random library. First, create a function called getRands that will have a parameter called ceiling. Within that function, create a loop that will loop the 10 times and in each loop, it creates a variable that is an integer between 1 and the number in the variable ceiling. Then test if that integers is less than 3. If it is, print that number. Now call getRands and pass in the argument: 10. You must...

  • Using Python Create a simple linked list by defining a struct (in C/C++) or a class...

    Using Python Create a simple linked list by defining a struct (in C/C++) or a class (in Python3). For example, in C/C++: struct singly_linked_list { int data; singly_linked_list *next; }; (Make sure you understand the concept of pointers - or lack thereof - in Python.) Write a function to determine if there is a cycle in the singly linked list. Return 1 if there is a cycle in the list, 0 if no cycle. This is a very common interview...

  • Answer in python 3 and can you please include a screenshot of the code and the...

    Answer in python 3 and can you please include a screenshot of the code and the output Problem 4 (Quicksort) For this problem you must implement the recursive quicksort algorithm covered in lecture to sort points based on their distance from the point (0, 0). Crete a Python file called quicksort.py and implement a function called quicksort(list) that does the following: COMP 1005/1405A – S19 – A5 Due Saturday, June 15th at 11:59 PM 3 1. Takes a 2D list...

  • Python Question? Write a function called reverse(user_list, num = -1) that takes a list and a...

    Python Question? Write a function called reverse(user_list, num = -1) that takes a list and a number as parameters. The function returns a copy of the list with the first number of items reversed. Conditions: The number parameter must be a default argument. -      If the default argument for number is given in the function call, only the first number of items are reversed. -      If the default argument for number is not provided in the function call, then the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT