COSC 235: Programming and Problem Solving
February 6, 2009

Joseph D. Sloan
sloanjd @ wofford.edu


programming style (& syntax)

variable names: legal, readable
indentation
spacing & white space

Required Comments for Code

The file name
Your name
The Date
General description of code in file
Description for each function in file
Any appropriate citations for sources!
"Pledged"

Setting preferences—fonts, font size, indentation, autosave

Some comments on Python functions & Constructs

print() & special escape codes: /t, /n, //
quoting in Python: ", ', """

ASCII ART

ASCII codes
Sources: www.schnoggo.com/figlet.html & www.chris.com/ascii
Demo from class download

Homework

1. Write a program or function to display your name in ASCII Art Style similar to the one demonstrated in class.
2. Write a program or function to display some other ASCII Art.
3. Write a program or function to invoke the functions written for problems 1 and 2 with a single command.

Your output should be similar to something like this: ASCIIArtDemo.txt

 


This page was created by Joe Sloan.
It was last modified around: 06 February 2009
Send mail to: sloanjd@wofford.edu