variables, expressions & statements chapter 2 Flashcards
Order of operations:
Parenthesis()
power
multiplication
division
addition
subtraction
left/right(if multi or divi are together and the same for add/sub)
what is the modulus operator?
The modulus operator works on integers and yields the remainder when the first operand is divided by the second.
what is debugging?
Debugging means the complete control over the program execution. Developers use debugging to overcome program from any bad issues.
What is mnemonic?
The word mnemonic2 means “memory aid”. We choose mnemonic variable names to help us remember why we created the variable in the first place.
what is an assignment?
assignment
A statement that assigns a value to a variable.
what is concatenation?
concatenate
To join two operands end to end.
what is a comment in python?
comment
Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.
what is evaluate in python?
evaluate
To simplify an expression by performing the operations in order to yield a single value.
what is an expression?
expression
A combination of variables, operators, and values that represents a single result value.
what is a floating point>
floating point
A type that represents numbers with fractional parts.
what is an integer?
integer
A type that represents whole numbers.
what is a keyword?
keyword
A reserved word that is used by the compiler to parse a program; you cannot use keywords like if, def, and while as
what is a modulus operator?
modulus operator
An operator, denoted with a percent sign (%), that works on integers and yields the remainder when one number is divided by another.
what is an operand?
operand
One of the values on which an operator operates.
what is an operator?
operator
A special symbol that represents a simple computation like addition, multiplication, or string concatenation.