CS 1301 Chapter Notes - Chapter 2: Floating Point, Concatenation, Multiplication Operator

56 views2 pages

Document Summary

2. 1 values and data types: value- one of fundamental things that program manipulates, classes (data types) Integer (int)- numbers: string (str)- string of letters; in quotation marks, floating point (float)- numbers with decimal points. 2. 3 variable names and keywords: variable names- contain both letter and digits (can); begin with letter or underscore; case matters, keywords- define language"s syntax rules and structure; cannot be used as variable names. 2. 4 statements: statements- instruction that python interpreter can execute. 2. 5 evaluating expressions: expression- combination of values, variables, operators and calls to functions, evaluates- interpreter does this; evaluates expression in python prompt. 2. 6 operators and operands: operators- special tokens that represent computations like addition, multiplication and division, operands- values the operator uses, +, -, * (multiplication), ** (exponentiation, floor division (//) - result is always a whole number. 2. 7 type converter functions: type converter- attempt to convert arguments into types.

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