Creation and use of lists in Python
Creation and use of ranges in Python
In this last assignment we had to combine our work with files and dictionaries.The details of the assignment can be found HERE. I tried. You can find the code HERE
Use of recursion for repetitive algorithms
When to use what type of repetition in a program
Use of loops with “while” Use of loops with “for”
Python conventions (Zen of Python)
Reading and writing of files in Python
For this assignment I had to write a program that opens and reads the file 93cars.dat.txt and produces the average gas mileage in city (City MPG), average gas mileage on highway (Highway MPG), average midrange price of the vehicles in the set. You can find the code HERE.
I had to write a program that asks the user for the name of an image file then performs any of the following operations and outputs the new image to a new file. Rotate (90,180,270) Flip (horizontal, vertical) resize (user specifies new size) You can find the code HERE
In this assignment I had to create a function that calculated the euler number with a number of decimals specified by the user.
You can find the code HERE
In this assignment I had to write a function to calculate the square root of a number using the Babylonian method. This page was really useful, I just had to translate it to python. The code is here.