1/24
mahirap ba ako mahalin
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Type
The characteristic of the numeric value that determines its kind, range, and application
Integers
Numbers devoid of the fractional part
Floating Points
Numbers that contain or can contain the fractional part
Underscores
What Python does allow, though, is the use of this in numeric literals
Negative numbers
Written by adding a minus (-)
Octal value
Treated as this if an integer number is preceded by an 0O or 0o prefix (zero-o)
Hexadecimal value
Treated as this if it is preceded by the prefix 0X or 0x (zero-x)
Point (.)
Essentially makes a number a float
E/e
Represents exponents incorporated into a number string
Exponent
The value after E has to be an integer, while the base (value in front of the E) may be an integer
Strings
These are used when processing texts and not numbers
Escape character
Played by the backslash ()
Apostrophe (')
The second solution is to use this instead of a quote
Boolean value
Each time Python is asked if one number is greater than another, it always results in the creation of some specific data
Boolean algebra
A part of algebra that makes use of only two distinct values True and False, denoted as 1 and 0
Expression
A combination of values, variables, operators, and function calls that result in a computed value.
Expression Evaluation
It is evaluated by Python to produce a value.
Arithmetic Expressions
These involve mathematical operations such as addition (+), subtraction (-), multiplication (*), division (/), and exponentiation ().
Relational Expressions (or Comparison Expressions)
These evaluate to True or False using comparison operators.
Logical Expressions (or Boolean Expressions)
These use logical operators (and, or, not) to combine Boolean values.
Bitwise Expressions
These manipulate bits directly using bitwise operators (&, |, ^, ~, <<, >>).
Assignment Statement
Assigns a value to a variable using the = operator.
Assignment Operator (=) Structure
The left-hand side is the variable name, and the right-hand side is the value to be stored.
Augmented Assignment Operators
Provides a concise syntax to update variable values by combining an arithmetic operation with an assignment operator, reducing redundancy in code.