Python Flashcards
Boolean
true or false value
if statement
A line that determines whether or not you run a certain chunk of code if the answer is true
condition
code that you put inside an if statement or while-loop
comparison operator
symbol which indicates the relationship between two values
logical operators
&& [and] || [or] ! [not]
floating point numbers
represent real numbers and are written with a decimal point dividing the integer and fractional parts
displaying text on the screen
variable
a symbol or container that holds a value
input( )
a function that prints a prompt and retrieves text from the user
modulus operator
divides two numbers and returns the remainder
string
a sequence of characters
concatenation
adding two strings together using the "+" operator
comment
a message in your code that explains what is going on
while loop
a programming construct used to repeat a set of commands while a boolean condition is true
loop
a programming construct that repeats a group of commands.
for loop
used for iterating over a sequence a predetermine amount of times
Syntax
set of rules for or an analysis of a programming language
function
type of procedure or routine
Parameter
pieces of information you can give to functions when you define them. When the function is called the arguments are the data you pass into the function's parameters
algorithm
a step-by-step procedure for solving a problem; a well-defined procedure that allows a computer to solve a problem