Programming
Workshop

Spring 2010
course
navigation

jan 22

resources

language

basic techniques

we did this in class

#!/usr/bin/env python """ This is an example in class of a python program. """ def factorial(n): answer = 1 for i in range(2, n+1): answer *= i return answer print "what is n? ", number = int(raw_input()) fact = factorial(number) print "factorial(" + str(number) + ") = " + str(fact)

we got to here

group problem

methods of approach

questions / comments ?

http://cs.marlboro.edu/ courses/ spring2010/programming/ notes/ jan_22
last modified Friday January 22 2010 2:51 pm EST