Introduction to Python

Introduction

This is the course page for the introduction to python programming workshop given March 17, 24, and 31 2012 at UPR-RRP for the Association of Computer Science Students.

Python is an open source, object-oriented, interpreted high level language. It has a vibrant online community, and is used in many application areas and companies. I love it because it lets you write very compact code and test many ideas out interactively.

Learning python

Saturday, March 17 and October 20, 2012

First we set up a working python environment: Installing and running python

Next, the five things every program needs

  1. Values and variables (an informal introduction)
  2. Selection (if)
  3. Repetition (for and while)
  4. Input/Output (print, input)
  5. Defining functions

Now go and write some programs!

Saturday March 24 and October 27, 2012

  1. Data structures
  2. The Python Standard Library: batteries included!

We worked on a program to find the top 10 machines generating traffic in the 5 minute flow data from 2004. The 2004 data file. Here's data in slightly different format from 2011. Modify the top 10 program to print the top 10 machines and the total traffic from this file instead. Columns seem to be: filename::lineno, flow.srcaddr, flow.dstaddr, flow.src_as flow.dst_as, flow.srcport, flow.dstport, flow.dOctets, flow.dPkts. Columns are separated by tabs.

Saturday, November 3, 2012

  1. Classes (object orientation)

Troglodita approved!

Humberto Ortiz Zuazaga
humberto@hpcf.upr.edu

Most recent change: 2012/10/29 at 09:23
Generated with GTML