Python Flashcards
(45 cards)
variable
Stores and names a piece of data.
boolean
Data type that can only be True (1) or False (0).
string
Function that can contain letters, numbers, and symbols.
whitespace
Formatting used to properly structure code.
editor
Area within which code is written.
interpreter
Display that runs your code line by line while checking for any errors.
comment
#
comment block
””
addition
+
subtraction
-
multiplication
*
division
/
exponentiation
**
modulo division resulting in just the remainder
%
escape character
\
string length
len( )
remove string capitalization
.lower()
capitalize string
.upper()
convert selection to string
str( )
Calls following code to display in console.
combine variable with string(s)
“string text with &s and stuff” & (StrName)
control flow
allowance to choose from outcomes based on what else is happening in the program
comparator
checks a variable against another regarding the specified operation resulting in True or False
equal to
==