COMP10001 Study Guide - Final Guide: Round-Off Error

56 views3 pages

Document Summary

, finally, for, from, global, if, import, in, is, lambda, none, nonlocal, not, or, pa ss, raise, return, true, try, while, with, yield. Expression operand1 operator operand2 x = 5 is a assignment statement, not an expression. For whole numbers eg: -3, -5, or 10. For real numbers eg: -3. 0, 0. 5, or 3. 14159. For storing true and false (only those two values; booleans allow for no grey areas! For chunks of text, e. g. : "hello, i study python" tuple. For combinations of objects, e. g. : (1, 2, 3) or (1. 0,"hello", "frank") list dict. A more powerful way of storing lists of objects, e. g. [1,3, 4] or [1. 0, "hello", "frank"] We will see this later maybe you can guess what it does, e. g. {"bob": 34, "frankenstein": 203} Result int(*,+,-)int int/int int float float(*,+,-,/)float float float(*,+,-,/)int int(*,+,-,/)float float float. A rounding error is the discrepancy between the approximated data value and its exact value.

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

Related Documents