New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

CS 1110, Week 11 Notes

by: Eunice

CS 1110, Week 11 Notes CS 1110-002


Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Lists of Objects Referencing Sorting Isinstance
Intro to Computing using Python
Lee, Van Loan
Class Notes
CS, Python
25 ?




Popular in Intro to Computing using Python

Popular in ComputerScienence

This 2 page Class Notes was uploaded by Eunice on Saturday April 16, 2016. The Class Notes belongs to CS 1110-002 at Cornell University taught by Lee, Van Loan in Spring 2016. Since its upload, it has received 14 views. For similar materials see Intro to Computing using Python in ComputerScienence at Cornell University.

Similar to CS 1110-002 at Cornell

Popular in ComputerScienence


Reviews for CS 1110, Week 11 Notes


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 04/16/16
CS 1110 Van Loan and Lee Spring 2016 April 12, 2016  Review o Point class: has attribute o type: data and functions that can work on that data o constructor builds an object and creates the box  always has the same name as the class o invoking the constructor=building the object and the reference to it o dot notation: substitution mechanism  get values of attributes  to the left of the dot, a point object  affiliated with self  the argument (whatever is in the parenthesis) is affiliated with other  List of Objects o list of objects vs. integers  a single integer stored  a reference to some object (ex. a point) is stored  u = L[1].x  list L, box 1, x value from object: assigned to u o importing modules that contain classes (defined within the module) means that you can use the class o assignment statement is like an address o can’t change all of (for example) x attributes at once, use a for loop instead April 14, 2016  references are different from assignments o with objects, two objects set = to each other is a reference, meaning that the two things will refer to the same object and changing the object will change both things o use the function ‘copy’ for creating separate assignment  sorting o sorting by different characteristics  write a ‘getter’ function that extracts the ‘key’ attribute  getKEY() returns object.keyattribute  complicated classes o class: packaging of data and methods that work on that data o override the “+” concatenation by defining __add__  similarly __mul__ o Boolean valued function:  isinstance(object, class)  is the object an instance of the class  remember than if the object looks like a (for example) a fraction, it’s actually an integer, or maybe a float


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Janice Dongeun University of Washington

"I used the money I made selling my notes & study guides to pay for spring break in Olympia, Washington...which was Sweet!"

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.