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.
what is the rules of precedence?
rules of precedence
The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.
what is an statement?
statement
A section of code that represents a command or action. So far, the statements we have seen are assignments and print expression statement.
what is an string?
string
A type that represents sequences of characters.
what is the type of a data?
type
A category of values. The types we have seen so far are integers (type int), floating-point numbers (type float), and strings (type str).
what is a value?
value
One of the basic units of data, like a number or string, that a program manipulates.