flâneur — a map of the web's best reading

CS106A | Spring

cs106a.stanford.edu · saved by 1 readers

This assignment consists of a few different programs to give you practice with an assortment of topics we've seen recently in lecture: list of lists (2-dimensional lists), strings, and images in Python. We'll finish with a longer program called Sand, which uses lists of lists to form a grid through which grains of sand can fall. In order to download the starter code, please fill out the anonymous Mid-Quarter Class Survey. The starter code will be shown on the confirmation page AFTER you submit the survey. The first two sandcastles will be great practice for the midterm diagnostic, as lists of lists and strings will be covered on the exam. While we've got an image sandcastle, images will not be on the midterm. In the file ziplists.py, implement the function zip2lists(list1, list2). This function is passed two lists of strings (list1 and list2), and you can assume that both lists have the same length (number of elements). The function should return a new list that "zips" together the two

This assignment consists of a few different programs to give you practice with an assortment of topics we've seen recently in lecture: list of lists (2-dimensional lists), strings, and images in Python. We'll finish with a longer program called Sand, which uses lists of lists to form a grid through which grains of sand can fall. In order to download the starter code, please fill out the anonymous Mid-Quarter Class Survey. The starter code will be shown on the confirmation page AFTER you submit the survey. The first two sandcastles will be great practice for the midterm diagnostic, as lists of

Explore this link on the map →