CSC108H5 Lecture Notes - Lecture 2: Memory Address, Camel Case
303 views2 pages
10 Jan 2017
School
Department
Course
Professor
897wjface and 39475 others unlocked
12
CSC108H5 Full Course Notes
Verified Note
12 documents
Document Summary
What is the difference between the literals 1 and 1. 0: nothing. Type(value): determines the value"s type (general format) The type can be changed to another type. What is the difference between the division operators / and //: nothing. C: / is integer division (but may produce a floating point result, and // is floating point. It can be applied to floating point numbers and integers. / generates a floating point output and // generates an integer output division. They could both be python or math. Equal sign are not similar in python and math. In python, = asks python to do something. Store the expression (memory address) on the right hand side into the variable on the left hand side. X = 20: 39 (the value of y stores the initial value of x which is 37 plus 2. The number 20 is assigned to x after y stores 37 + 2: 22, 35, 20, 18.
Get access
Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers