CSC148H1 Lecture Notes - Lecture 4: Call Stack, Cognitive Load, Docstring

36 views10 pages
13 Nov 2017
School
Course
Professor
katrinasavvy and 38715 others unlocked
CSC148H1 Full Course Notes
1
CSC148H1 Full Course Notes
Verified Note
1 document

Document Summary

In the first few weeks of the course, we have mainly played the role of the class designer. However, you have actually spent most of your programming lifetime in the opposite role: whenever you use a built-in function or data structure, you only worry about what it does, not how it works. In other words, you are the client of all built-in python libraries and classes. Some concepts are so general, and so useful across many problems, that they transcend any specific programming language. An abstract data type (or adt) defines data and the operations that can be performed on it. It is a pure interface, with no mention of an implementation - that"s (cid:449)hat (cid:373)akes it abstract. In csc108, you learned three python types that are so general that each can be considered an implementation of an abstract data type: list: Operations: access item by index, add new item, determine if empty dictionary:

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions