01 November 2015

CST205 Week 2

I am already familiar with pair programming as this what we used for ACM-ICPC when I was at DVC.

CST205-40 Syllabus

Python Notes:
print "Hello World"
variable declaration/type is set at initial setting
white space matters - indents for cond and func
# single """ multiple line comments
not 8^2, instead 8**2
inside ' escape like \'
str.lower(), str.upper(), str(var), len(str)
print "asdf %s. asdf %s." % (str1, str2)
if: elif: else:
def name(var): return resp
    generic = import math - print math.sqrt(25)
    function = from math import sqrt
    universal = from math import *
max(), min(), abs(), type()

No comments: