Assignment 29 — lists and datasets

Due Tuesday, April 14


Downloads

Homework module trio.py

x1 = [ 0, -3, 0, -4, -2 ]

x2 = [ -3, 1, -2, 1, -3, -3, -2, -4, -1, -4 ]

x3 = [ 2, -1, 0, 3, 0, 3, -2, -2, -1, -4, 3, -4, 3, -1, 3 ]

x4 = [ ]

t( x1 ) = [ 3, 2, 0 ]

t( x2 ) = [ 8, 0, 2 ]

t( x3 ) = [ 7, 2, 6 ]

t( x4 ) = [ 0, 0, 0 ]



Homework module flat.py

d1 = [ [ 0 ], [ 1, 2 ], [ 1, 2, 3 ], [ 0 ] ]

d2 = [ [ 1, 0, 1, 2, 2 ], [ 3, 0, 1, 1, 1, 0 ], [ 2 ], [ 0, 0, 1 ] ]

d3 = [ [ 3, 0, 3], [ 3, 0, 3, 0, 1], [ 1, 0, 2 ] ]

d4 = [ ]

n( d1 ): [0, 1, 2, 1, 2, 3, 0]

n( d2 ): [1, 0, 1, 2, 2, 3, 0, 1, 1, 1, 0, 2, 0, 0, 1]

n( d3 ): [3, 0, 3, 3, 0, 3, 0, 1, 1, 0, 2]

n( d4 ): []



crossword snapshot

 


 
  © 2020 Jim Cohoon   Resources from previous semesters are available.