I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
Loops
Arrays
Object Orintated
Strings
A2 programs
Week 1 - Facebook!
IF statements
Functions
Mrh Library
File access
pygame
Drawing in python
Input and output
Casting
Week 2 - Pygame
Week 3 - EasyGui
Python Tasks

In this section you can find a number of tasks for various aspects of python programming. Have a look around and have a go!

Arrays

In this section you can find tasks based on arrays.

Strings

In this section you will find tasks based on strings and sting manipulation.  

A2 programs

In this section you will find some programs which are set as part of the A2 course.

Week 1 - Facebook!

https://github.com/pythonforfacebook/facebook-sdk You are to use the python facebook API above to list out all of your friends! You will need to research how to do this by reading up on the facebook graph API http://developers.facebook.com/docs/ You need to log in or create an account to submit code!

IF statements

In this section you can find tasks based on if statements.

Functions

In this section you can find tasks based on functions.

Mrh Library

Some tasks make use of a custom library named “mrh”. You can download it from the link below – Mr h library  To use, just save it into the same folder as your python code.

File access

These tasks are all related to file access.

Drawing in python

The tasks in this section are designed to bring out the artist in you!

Input and output

This section contains tasks related to test your basic sequencing, input and output.

Casting

In this section you can find tasks based on casting.

Week 2 - Pygame

http://www.pygame.org/news.html You need to download and install pygame before doing this challenge. This is a simple challenge to create a starfield using pygame. You can find an example of what a starfield looks like at  http://codeincomplete.com/posts/2011/5/22/javascript_starfield/demo.html You can find some help on http://codentronix.com/2011/04/24/simple-starfield-with-python-and-pygame/ You will get points for submitting a working starfield which has been adapted […]

Week 3 - EasyGui

EasyGui is a python library which can allow the programmer to create very simple graphical user interface. You can download it from here –   http://easygui.sourceforge.net/download/index.html   You can find a tutorial here http://www.ferg.org/easygui/tutorial.html Challenge – To create a program using EasyGui which can allow the user to enter their name in a textbox and then […]

Leave a Reply

Your email address will not be published. Required fields are marked *

Information