0% found this document useful (0 votes)
239 views1 page

Python Programming Assignments-1

This document contains Python programming exercises including evaluating quadratic equations, calculating video game purchases based on money amount, computing factorials, counting factors of numbers, performing rotation cipher encryption, analyzing DNA files to count C and G percentages, and drawing geometric figures.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
239 views1 page

Python Programming Assignments-1

This document contains Python programming exercises including evaluating quadratic equations, calculating video game purchases based on money amount, computing factorials, counting factors of numbers, performing rotation cipher encryption, analyzing DNA files to count C and G percentages, and drawing geometric figures.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Python Programming Assignments

 Exercise: Evaluate the quadratic equation for a given a, b, and c.

 Exercise: Write a Python program that prompts the user for his/her amount of money, then
reports how many video game the person can afford, and how much more money he/she will
need to afford a video game.

 Exercise: Write a Python program that computes the factorial of an integer.

 Exercise: Write code to display and count the factors of a number.

 Exercise: Write a program that performs a rotation cypher.


e.g. "Attack" when rotated by 1 becomes "buubdl"

 Exercise: Write a program to process a file of DNA text, such as:


ATGCAATTGCTCGATTAG
Count the percent of C+G present in the DNA.

 Exercise: Draw the figure at right.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy