I&C SCI 31 Lecture Notes - Lecture 14: 3D Printing, Print Screen, Newline

32 views6 pages

Document Summary

# ics 31, tuesday 17 november 2015, 8am. We write programs to model/reflect the real/outside world. As we do this, we combine the building blocks our programming lang. gives us: Actons: e. g. , new fuctions or methods, control structures, algorithms, There are other sizes and shapes of data we can build. Python gives us a few more built-in ones. Object-oriented programming: one popular style of designing programs. If we choose the right data structures, it"s a lot easier to write the code. Today"s first new shape: two-dimensional table with rows and columns. Normal lists: one number as index, in a straight line [0] to [n]. Table: two numbers, row and column (row/seat, chair/hour, classroom/hour) Contents of table: ticket holder, haircut client, class scheduled then/there. # on our [monochrome] screen, each pixel is either 0 or 1. def new_screen(rows: int, columns: int) -> "2d table, list of lists":

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents