ITI 1120 Chapter Notes - Chapter 1-7: Lazy Evaluation, Init, System On A Chip

363 views40 pages

Document Summary

4. 5 integer division modulo (remainder) 9 % 2. A type is a set of values and operations that can be performed on those values. For example: 3, 4, 894, 0, -3, -18. Float: floating point number (an approximation to a real number) For example: 5. 6, 7. 342, 53452. 0, 0. 0, -89. 34, -9. 5. When multiple operators are combined in a single expression, the operations are evaluated in order of precedence. Syntax: the rules that describe valid combinations of python symbols. Semantics: the meaning of a combination of python symbols is the meaning of an instruction what a particular combination of symbols does when you execute it. A syntax error occurs when we an instruction with invalid syntax is executed. A semantic error occurs when an instruction with invalid semantics is executed. The general form of an assignment statement: variable = expression. >>> area = base * height / 2. The rules for executing an assignment statement: evaluate the expression.

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