1/19
A collection of vocabulary flashcards based on key concepts related to datatypes, conditions, and strings in programming.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Datatype
A classification that specifies which type of value an object can hold, such as integer, float, string, etc.
Integer
A data type that represents whole numbers without fractional parts.
Float
A data type that represents real numbers, which can be written with a fractional component.
String
A sequence of characters enclosed in single or double quotes.
Boolean
A data type with two possible values: True or False.
Primitive Types
Basic data types that include integer, float, string, boolean, complex, bytes, and NoneType.
NoneType
A special datatype in Python that has a single value, None, which represents no value.
Arbitrary Precision Integers
In Python, integers can grow as large as the available memory allows, avoiding overflow errors.
NaN (Not a Number)
A special floating-point value that indicates an undefined or unrepresentable numerical result.
IEEE 754
A standard for floating-point arithmetic used in computers, ensuring reliability and portability.
Complex Number
A number that can be expressed in the form z = a + bi, where i is the imaginary unit.
Type Conversion
The process of changing a value from one data type to another, such as converting a float to an int.
Casting
Explicitly converting one datatype to another, like using int() or float().
Formatted String Literals (f-strings)
A way to embed expressions inside string literals, using the f prefix.
Print Function
A built-in function in Python used to display output to the console.
Operator Precedence
The order in which operations are evaluated in an expression, which affects the outcome.
Assignment Operator
An operator that assigns a value to a variable, commonly denoted by '=' in Python.
Input Function
A function used to take user input as a string.
Display Output
The process of showing results or messages on the screen, often using print statements.
Infinity in Floating Points
In floating-point arithmetic, infinity can be represented and manipulated (e.g., float('inf')).