Python Lab - May 2017
Week | Name | Description |
---|---|---|
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 |
||
These are some extra resources that you can use to go further than our course. |
||
Project Euler |
||
Week 1 - May 6 | 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/ |
|
In case that you haven't installed python, you can use the python's online CLI. |
||
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. |
||
In this second section we will start to learn how to control the flow of the algorithm using the if statement |
||
You can view a sample answer of the code for calculating the area of a trapezoid. |
||
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 | ||
Concepts of week one repeated. |
||
This is a worksheet with 21 extra exercises. |
||
In this second section we will start to learn how to control the flow of the algorithm using the if statement |
||
Solution of W2S1P1 |
||
Solution of greatest of three |
||
Nested Loops solution W2S1P3 |
||
This is a worksheet with 11 extra exercises. |
||
You can view a sample answer of the code for playing 'Heads' or 'Tails' |
||
You can view a sample answer of the code for playing 'Rock', 'Paper' or 'Scissors' |
||
Week 3 - May 20 | Welcome to 3rd week |
|
In this section we will learn about lists and tuples and we will scratch the surface of pygame. Be prepared for excitement. |
||
In this section we will learn about lists and tuples and we will scratch the surface of pygame. Be prepared for excitement. |
||
Solution of W3S1P1 |
||
Solution of W3S1P2
|
||
This is a worksheet with 11 extra exercises in loops |
||
In this section we will learn about Graphics |
||
Pygame Basic Template |
||
Moving Rectangle |
||
Bouncing Square |
||
How to bounce a ball in Pygame |
||
Week 4 - May 27 | Welcome to 4th week |
|
In this section we will learn about Graphics |
||
Pygame Basic Template |
||
Moving Rectangle |
||
Bouncing Rectangle |
||
Moving Stick Figure |
||
This is a worksheet with 5 extra exercises in drawing and moving objects |
||
In this section we will learn about Graphics |
||
Spaceship PNG |
||
Meteor PNG |
||
Avoid the Rocks 0.1 |
||
Avoid the Rocks 0.2 |
||
Avoid the Rocks 0.9 |
||
Avoid the Rocks - Final |
||