CS 1110 Lecture Notes - Lecture 7: Id1

18 views3 pages

Document Summary

We are going to stick them together in a folder Object (or folders) are ways to store complex data together as a single value. Unique number assigned by python (just like a netid for a cornellian) Types (such as int, float, bool, str ) include classes. Classes are not provided in python, rather by importing modules from external sources. i. e. importing geom will allow us to use a class which defines points in 3d (point3) - need to import module that has a point class. This is the cause of many mistakes in the course. S will now refer to the same folder as p. as in, we have 3 variables, but only 2 folders. This is because we only have 2 construction calls. Variables inside of call frames are independent from variables outside of them. X in an object is not the same as x outside of it. Attributes are variables the live inside of objects.

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