Code snippets and sample programs can be found here. --------------------------------------------------------------------- The fact that these programs are posted is a good indication that you ought to take a closer look at them and make sure you understand everything about them - if not, please ask. --------------------------------------------------------------------- Some of these were done on-the-fly in class and are not up to documentation standards - note that your code which is not put together during class needs to be up to code standards in terms of formatting and documentation. Study these carefully: cost_calc1-6.py show the evolution of a simple linear program that uses no functions to one that uses more progressively. formatting_fn.py shows the use of string, integer and float formatting. Check this out and be sure you understand how silly_fn0.py shows the use of a function that expects one data item (a string) and different ways to call it. Also show the use of the format %s in a print statement -- EB