Personal tools
You are here: Home → Comp 171 Scripting Practicum → Course Materials → Python Materials → Python Programs
Document Actions

Python Programs

Up one level

Some programs used in class, starting points for your work, etc.

File Access From Python — by Dr. William L. Honig — last modified 2012-01-31 09:38 AM
The basics of open, read, write, and close a file
Reverse Words In A String — by Dr. William L. Honig — last modified 2012-02-10 10:10 PM
A function to reverse the words in a string (using a temporary list)
Examples Using Strings and Lists — by Dr. William L. Honig — last modified 2012-02-12 09:19 PM
Quick glance at some of the things you can do with functions working with strings and lists.
Examples Using If and Logic — by Dr. William L. Honig — last modified 2012-02-18 10:23 PM
Basics of control structures using if else elif. Learn about Boolean logic and decision making in scripts
Creating a .csv file — by Dr. William L. Honig — last modified 2012-02-18 10:24 PM
Use your script to put data into a .csv file that you can open with Excel. Just the basics in this simple example.
Python String Formatting — by Dr. William L. Honig — last modified 2012-03-13 10:47 AM
Using Pythons str.format() to give whatever form you want to text
Concordance using Python dict — by Dr. William L. Honig — last modified 2012-04-08 01:29 PM
A starting point to make a word concordance. Learn to use dict, the Python map of keys to values.
Starting into Pygame — by Dr. William L. Honig — last modified 2012-04-15 12:40 PM
Pygame is a great game engine. Here's a first taste...
« October 2026 »
Su Mo Tu We Th Fr Sa
123
45678910
11121314151617
18192021222324
25262728293031
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: