UMPython Wiki

Welcome to the U of M Python Wiki
This wiki was created to help students in COMP 1012 at the University of Manitoba learn Python. We feel that the time spent on assignments should be used for actually learning to program, rather than struggling with Python syntax.

The UMPython Wiki solves both issues - it shows clear examples of how to write Python so students can learn by example and describes the basic principles of programming, such as assignment and loops.

Although the target audience for the UMPython Wiki is University of Manitoba students that are learning to program, we hope that non-students find this wiki just as useful!

Important Note: In order to help learn the code examples provided, we highly suggest that you try typing them out and running them yourselves as you read along throughout the wiki.

For The Markers: Each group members responsibilities can be found here.

Topic Outline

 * 1) Installing and Using Python
 * 2) On Windows
 * 3) On Mac
 * 4) Writing Your First Python Script
 * 5) Comments
 * 6) Variables
 * 7) Assignment
 * 8) Types
 * 9) Math Operators
 * 10) Addition
 * 11) Subtraction
 * 12) Multiplication
 * 13) Division
 * 14) Powers
 * 15) Remainder
 * 16) Boolean Operators
 * 17) If and Else-If Blocks
 * 18) The If Statement
 * 19) The Elif and Else Blocks
 * 20) Data Structures
 * 21) Lists
 * 22) Tuples
 * 23) Sets
 * 24) Dictionaries
 * 25) Loops
 * 26) The For Loop
 * 27) The Foreach Loop
 * 28) The While Loop
 * 29) Defining Functions
 * 30) Creating a Function in Python
 * 31) Calling a Function
 * 32) Function Scope
 * 33) Built-In Functions
 * 34) FAQ's