Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a simple program that calculates the number of Gs and Cs bases using the genome size and GC content from a table. In Spyder,

Create a simple program that calculates the number of Gs and Cs bases using the genome size and GC content from a table.
In Spyder, open a new file, save as
Exercise1.py
Use the input() function to read genome size and GC content from the user. Use the numbers from 'Average genome size' and 'G+C(%)' from the tablei n the 'Basics of numbers, strings, input and output' pdf. Think about the input will be instring format!
Convert Mb to bases
Calculate the number of Gs and Cs in the genome
Write a print statement that returns the following: The average genome contains X Gs and Cs.
Run your code with examples from the table in the 'Basics of numbers, strings, input and output' pdf.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What are the purposes of collection messages? (Objective 5)

Answered: 1 week ago