>>> %Run googleA.py >>> distance('middlebury,vt', 'nyc') { "destination_addresses" : [ "New York, NY, USA" ], "origin_addresses" : [ "Middlebury, VT 05753, USA" ], "rows" : [ { "elements" : [ { "distance" : { "text" : "435 km", "value" : 435242 }, "duration" : { "text" : "4 hours 50 mins", "value" : 17403 }, "status" : "OK" } ] } ], "status" : "OK" } 270 >>> >>> >>> s = {'a', 'b', 'c'} >>> s {'c', 'b', 'a'} >>> t = set('bcd') >>> t {'c', 'd', 'b'} >>> s.union(t) {'a', 'c', 'd', 'b'} >>> s.intersection(t) {'b', 'c'} >>> 'a' in s True >>> 'a' in t False >>> s.difference(t) {'a'} >>> t.difference(s) {'d'} >>> {'a', 'c'} <= s True >>> {'a', 'c'} <= t False >>> s | t {'a', 'c', 'd', 'b'} >>> s & t {'b', 'c'} >>> >>> >>> g = [1,2,3] >>> g[1] 2 >>> g[1] = 20 >>> g [1, 20, 3] >>> >>> g = [1,2,3] >>> >>> h = g >>> >>> h [1, 2, 3] >>> >>> g[1] = 20 >>> g [1, 20, 3] >>> >>> h [1, 20, 3] >>> >>> >>> j = g[:] >>> >>> g[2] = 30 >>> >>> g [1, 20, 30] >>> h [1, 20, 30] >>> j [1, 20, 3] >>> >>> >>> >>> rgb = (100, 200, 150) >>> >>> rgb[0] 100 >>> >>> rgb[0] = 125 Traceback (most recent call last): File "", line 1, in TypeError: 'tuple' object does not support item assignment >>> >>> rgb = (125, 200, 150) >>> >>> %Run L19B.py >>> drawPoints([Point(-100,-100), Point(100,-100), Point(100,100), Point(-100,100)]) >>>