CSCA08H3 Lecture Notes - Memory Address, Camel Case

54 views20 pages
19 Oct 2011
School
Course

Document Summary

Rhs. (the value of the expression is a memory address. ) 1. evaluate the expression on the rhs. (the value of the expression is a memory address. ) 2. store that memory address in the variable on the lhs. Python types: every python value has a type that describes what sort of value it is, built-in function type will tell you the type of an expression. You can even change its type: in math, this makes no sense either: x = x + 1. It can"t be true: but in python, it makes perfect sense. It is asking to make x refer to a something that is one bigger: we say x is assigned x + 1 or x gets x. + 1 : programming languages usually have different symbols for assignment and equality. Python uses == for equality: can"t tie two variables, what does this do? x = 37 y = x + 2. # y is now 39. x = 20.

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