COMPSCI 61A Lecture Notes - Lecture 17: Init, Message Passing, Eval

25 views6 pages
zogo39484755 and 6 others unlocked
COMPSCI 61A Full Course Notes
22
COMPSCI 61A Full Course Notes
Verified Note
22 documents

Document Summary

Homework party wednesday 10/5 6:30pm-8:30pm in 247 cory hall. Bonus point for completing the project by thursday 10/13 @ 11:59pm. Results of the hog strategy contest announced friday 10/7 in live lecture. Guerrilla section on saturday 10/8 12pm-3pm will cover growth and objects. An object value should behave like the kind of data it is meant to represent. For instance, by producing a string representation of itself. Strings are important: they represent language and programs. In python, all objects produce two string representations: The repr is legible to the python interpreter. The str and repr strings are often the same, but not always. The repr function returns a python expression (a string) that evaluates to an equal object repr(object) -> string. Return the canonical string representation of the object. The result of calling repr on a value is what python prints in an interactive session. Some objects do not have a simple python-readable string.

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