Mihaela Malita
Python Programs. Tested on
Python
v.3.4.3
Textbooks used:
Python Programming
by John M. Zelle and
Learn to program using Python
by Alan Gauld
by Erin Boudreau, Student, Spring 2013
Week 1: Basics.
Hello World
||
Factorial
Week 2: Loops and Math Functions.
For Loop
While Loop
Multiplication Table
Check if Even
Prime Numbers
Week 3: Lists.
Lists
Sum of integers in a List
Alphabet
Set intersection
Week 4: Strings.
String0
String Functions
Moving X
Week 5: Input and Output. Files.
Input
Writing to a file
Reading from a file
File of Random Ints
randMax
©
Mihaela Malita
Computer Graphics in PYTHON
Examples from
Zhigang Xiang's
textbook
Week3: Ccurve0
||
Week3: Ccurve
Week2: circle0
||
Week2: circle1
Week2: colorsRand
||
Week1: cosLaw
||
Week1: distance
Mouse: entry0
Week2: line0
||
Week2: line0bis
||
Week2: line1
Week2: line2
Week1: matrix0
||
Week1: matrixAdd
||
Week1: matrixMult
move0
||
move1
||
move2
Week1: oo1
||
Week1: oo2
Week2: pixel0
||
Week2: pixel1
Week2: pixel2
||
Week2: screen
Week1: slope
||
Week1: slopeTan
Week2: window1