CS 1301 Recitation 13 12_1

CS 1301 Recitation 13 12_1 - JavaScript will not be tested...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Topics Turtle module Map, reduce, filter Generalizing functions (like having to write your own myMap function as if built-in map did no exist) List comprehensions Using a tuple to swap two values Dictionaries Exception/error handling with try/except/finally
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: JavaScript will not be tested OO programming (class) Examples: >>> [x/2 for x in range(6)] [0, 0, 1, 1, 2, 2] >>> [x for x in range(10) if x%2==0] [0, 2, 4, 6, 8] >>> [2**x for x in [3,0,-1,5] if x>0] [8, 32] >>> [0 for x in range(5)] [0, 0, 0, 0, 0]...
View Full Document

This note was uploaded on 02/16/2012 for the course CS 1301 taught by Professor Staff during the Fall '08 term at Georgia Institute of Technology.

Ask a homework question - tutors are online