1/37
A set of 38 vocabulary flashcards covering Python operators, functions, and basic programming concepts discussed in the lecture.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Operators
Symbols in Python that perform operations on variables and values.
Arithmetic Operators
Operators that carry out basic math calculations such as addition, subtraction, multiplication, and division.
Comparison Operators
Operators that compare two values and return a Boolean result (True or False).
Logical Operators
Operators (and, or, not) that combine or modify Boolean expressions.
Addition Operator (+)
Performs addition of two numbers.
Subtraction Operator (-)
Calculates the difference between two numbers.
Multiplication Operator (*)
Finds the product of two numbers.
Division Operator (/)
Returns the quotient of two numbers including decimals.
Floor Division Operator (//)
Performs division and returns only the integer part of the quotient.
Modulus Operator (%)
Returns the remainder of a division operation.
Exponentiation Operator (**)
Raises one number to the power of another.
Equal To Operator (==)
Checks if two values are exactly the same.
Not Equal To Operator (!=)
Checks if two values are different.
Greater Than Operator (>)
Tests whether the left operand is larger than the right operand.
Less Than Operator (<)
Tests whether the left operand is smaller than the right operand.
Greater Than or Equal Operator (>=)
Checks if the left operand is larger than or equal to the right operand.
Less Than or Equal Operator (<=)
Checks if the left operand is smaller than or equal to the right operand.
and Operator
Returns True only if both combined conditions are True.
or Operator
Returns True if at least one of the combined conditions is True.
not Operator
Reverses the Boolean value of a condition (True becomes False, and vice versa).
input() Function
Reads a line of user input as a string.
float() Function
Converts a value to a floating-point number.
int() Function
Converts a value to an integer.
print() Function
Outputs text or variable values to the console.
Division by Zero
An invalid operation in which a number is divided by 0; must be avoided or handled in code.
Even Number
An integer divisible by 2 with a remainder of 0.
Odd Number
An integer that leaves a remainder of 1 when divided by 2.
Product
The result of multiplying two numbers.
Sum
The result of adding two numbers.
Attendance Percentage
The ratio of classes attended to classes held, multiplied by 100.
total_classes Variable
Stores the number of classes held in the attendance program.
attended_classes Variable
Stores the number of classes a student actually attended.
if Statement
A control structure that executes code only when a specified condition is True.
else Statement
Provides an alternative block of code that runs when the if condition is False.
Condition
An expression that evaluates to True or False and determines program flow.
Remainder
The leftover part of a division operation, obtained with the modulus operator.
Boolean Result
The True or False outcome returned by comparison or logical operations.
Floor Division
Division that truncates the decimal portion, leaving only the integer part of the quotient.