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.   

  • 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...

  • Python 3 Problem: I hope you can help with this please answer the problem using python...

    Python 3 Problem: I hope you can help with this please answer the problem using python 3. Thanks! Code the program below . The program must contain and use a main function that is called inside of: If __name__ == “__main__”: Create the abstract base class Vehicle with the following attributes: Variables Methods Manufacturer Model Wheels TypeOfVehicle Seats printDetails() - ABC checkInfo(**kwargs) The methods with ABC next to them should be abstracted and overloaded in the child class Create three...

  • Please use python Programming Language: Select one of the following topics: Band Character Account Create a...

    Please use python Programming Language: Select one of the following topics: Band Character Account Create a class based on your chosen topic. Make sure to include at least four attributes of varying types, a constructor, getters/setters for each attribute w/input validation, a toString, a static attribute, and a static method. Then, create a function (outside of your class) that connects to a text file which should contain the attributes of several objects. Read the data from the file, use the...

  • "please help asap" Create a function called GetTotal that will take in to it the price...

    "please help asap" Create a function called GetTotal that will take in to it the price per pound of an item and how much an item weighs. This weight is in pounds and ounces. Make sure when you write your function that your define your parameters in the right order (price, pounds, ounces). Your function needs to return the total cost of the item. You will need the following formula: Total Price = Price per pound * (Pounds + ounces/16)...

  • Write in C++: Please create a shopping list using the STL list container, then follow the...

    Write in C++: Please create a shopping list using the STL list container, then follow the following instructions. Create an empty list. Append the items, "eggs," "milk," "sugar," "chocolate," and "flour" to the list. Print the list. Remove the first element from the list. Print the list. Insert the item, "coffee" at the beginning of the list. Print the list. Find the item, "sugar" and replace it with "honey." Print the list. Insert the item, "baking powder" before "milk" in...

  • ** Language Used : Python ** PART 2 : Create a list of unique words This...

    ** Language Used : Python ** PART 2 : Create a list of unique words This part of the project involves creating a function that will manage a List of unique strings. The function is passed a string and a list as arguments. It passes a list back. The function to add a word to a List if word does not exist in the List. If the word does exist in the List, the function does nothing. Create a test...

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
ADVERTISEMENT