Python Lab - May 2017
Week | Name | Description |
---|---|---|
Installation of Python | This is a guide for installing python and pygame to your operating system. For the purpose of this lessons the installation procedure guides you to install python version 3.x and pygame version 1.9.x |
|
Extra Resources | These are some extra resources that you can use to go further than our course. |
|
Project Euler | Project Euler |
|
Week 1 - May 6 | Think Python - Allen Downey - Green Tea Press - 2nd Edition, Version 2.2.20 | This is a book for learning Python and "How to Think Like a Computer Scientist". It starts from the beginning (what is a program) and goes up to high level analysis of algorithms. It is published under Creative Commons Attribution-NonCommercial 3.0 Unported License, and you can find it with other books of the author in the authors web site http://greenteapress.com/wp/think-python-2e/ |
Online Python Shell | In case that you haven't installed python, you can use the python's online CLI. |
|
Week 1 - Section 1 - Input and Output | In the first section of the first week we will learn how to send the output of a program to the screen and how to read from the keyboard. |
|
Week 1 - Section 2 - Controlling the flow v1 | In this second section we will start to learn how to control the flow of the algorithm using the if statement |
|
Assignment 1.1 - Answer | You can view a sample answer of the code for calculating the area of a trapezoid. |
|
Assignment 1.2 - Answer | You can view a sample answer of the code for calculating the solutions of the quadratic equation. I am sure that you have made a good effort and many of you surprised us. |
|
Week 2 - May 14 | Welcome to 2nd week | |
Week 2 - Section 0 - Repetition is the mother of knowledge | Concepts of week one repeated. |
|
Worksheet 01 | This is a worksheet with 21 extra exercises. |
|
Week 2 - Section 1 - Controlling the flow v2 | In this second section we will start to learn how to control the flow of the algorithm using the if statement |
|
Temperature solution W2S1P1 | Solution of W2S1P1 |
|
Greatest of three solution W2S1P2 | Solution of greatest of three |
|
Nested Loops solution W2S1P3 | Nested Loops solution W2S1P3 |
|
Worksheet 02 | This is a worksheet with 11 extra exercises. |
|
Assignment 2.1 - Answer | You can view a sample answer of the code for playing 'Heads' or 'Tails' |
|
Assignment 2.2 - Answer | You can view a sample answer of the code for playing 'Rock', 'Paper' or 'Scissors' |
|
Week 3 - May 20 | Welcome to 3rd week | Welcome to 3rd week |
Week 3 - Section 0 - Those who forget the lessons of Python are doomed to repeat them :-) | In this section we will learn about lists and tuples and we will scratch the surface of pygame. Be prepared for excitement. |
|
Week 3 - Section 1 - Data types and a bit of gaming | In this section we will learn about lists and tuples and we will scratch the surface of pygame. Be prepared for excitement. |
|
Sum of a list W3S1P1 | Solution of W3S1P1 |
|
Name and Color W3S1P2 | Solution of W3S1P2
|
|
Worksheet 03 | This is a worksheet with 11 extra exercises in loops |
|
Week 3 - Section 2 - Graphics | In this section we will learn about Graphics |
|
Pygame Basic Template | Pygame Basic Template |
|
Moving Rectangle | Moving Rectangle |
|
Bouncing Square | Bouncing Square |
|
Assignment 3.1 - Answer | How to bounce a ball in Pygame |
|
Week 4 - May 27 | Welcome to 4th week | Welcome to 4th week |
Week 4 - Section 1 - Graphics | In this section we will learn about Graphics |
|
Pygame Basic Template | Pygame Basic Template |
|
Moving Rectangle | Moving Rectangle |
|
Bouncing Rectangle | Bouncing Rectangle |
|
Moving Stick Figure | Moving Stick Figure |
|
Worksheet 04 | This is a worksheet with 5 extra exercises in drawing and moving objects |
|
Week 4 - Section 2 - The Game | In this section we will learn about Graphics |
|
Spaceship PNG | Spaceship PNG |
|
Meteor PNG | Meteor PNG |
|
Avoid the Rocks 0.1 | Avoid the Rocks 0.1 |
|
Avoid the Rocks 0.2 | Avoid the Rocks 0.2 |
|
Avoid the Rocks 0.9 | Avoid the Rocks 0.9 |
|
Avoid the Rocks - Final | Avoid the Rocks - Final |
|
Certificate |