Name that
Variable!
O Data, What
Type Art Thou?
Meet the Complex Primitives
Strings Are My
Favorite Things
Look It Up in
the Dictionary
100

IN PYTHON, VARIABLE NAMES MAY NOT START WITH THIS

A NUMBER

100

THESE ARE THE BUILT-IN PRIMITIVE DATA TYPES IN PYTHON

NUMBERS, BOOLEANS, AND STRINGS

100

WHOLE NUMBER VALUES THAT CAN BE ZERO, POSITIVE, OR NEGATIVE

INTEGERS

100

USE THESE TO DECLARE A MULTI-LINE STRING

TRIPLE QUOTES

100

A DICTIONARY IS (MUTABLE, IMMUTABLE)

MUTABLE

200

TRUE OR FALSE: IT'S OKAY TO HAVE SPACES IN VARIABLE NAMES

FALSE

200

A COLLECTION OF KEY-VALUE PAIRS

DICTIONARY

200

THESE VALUES, BETTER USED FOR MULTIPLYING AND DIVIDING, CAN ALSO BE ZERO, NEGATIVE, OR POSITIVE

FLOATING-POINT NUMBERS

200

JOINING ONE STRING TO ANOTHER IS CALLED THIS

CONCATENATION

200

THIS IS RETURNED WHEN YOU ACCESS A DICTIONARY USING A KEY

VALUE

300

THESE THREE TYPES OF CHARACTERS ARE ALLOWED IN PYTHON VARIABLE NAMES

LETTERS, NUMBERS, AND UNDERSCORES

300

THESE ARE THE MORE COMPLEX DATA TYPES

STRINGS, LISTS, TUPLES, AND DICTIONARIES

300

BUILT-IN, PRIMITIVE DATA TYPE THAT CAN BE EITHER TRUE OR FALSE

BOOLEAN

300
THIS OPERATION CONVERTS NON-STRING DATA VALUES INTO A STRING OF TEXT

FORMATTING

300
TRUE OR FALSE: YOU CAN CHANGE THE VALUE THAT A KEY CORRESPONDS TO AT ANY TIME

TRUE

400
WHEN NAMING VARIABLES, IT'S GENERALLY NOT A BEST PRACTICE TO UTILIZE THESE

CAPITAL LETTERS

400

A DATA VALUE THAT CAN BE CHANGED IN-PLACE (WITHOUT HAVING TO OVERWRITE THE VARIABLE'S VALUE) IS CALLED THIS

MUTABLE

400

LIKE A LIST, BUT YOU CAN'T CHANGE ITS ELEMENTS

TUPLE

400

TYPE OF STRING WHERE ESCAPE SEQUENCES ARE DISPLAYED AS IS

RAW STRING

400

THIS METHOD REMOVES AND RETURNS AN ARBITRARY ITEM FROM THE DICTIONARY

popitem()

500
TO MAKE CODE EASY TO READ, VARIABLE NAMES SHOULD BE THIS

DESCRIPTIVE AND MEANINGFUL

500

A DATA TYPE WHOSE ELEMENTS CAN'T BE CHANGED WITHOUT OVERWRITING THE VARIABLE IS THIS

IMMUTABLE

500

DETERMINES WHO OWNS/CAN SEE A VARIABLE

SCOPE

500

TRUE OR FALSE: STRINGS CAN BE DECLARED USING EITHER SINGLE OR DOUBLE QUOTES

TRUE

500
THIS METHOD REMOVES ALL THE ITEMS FROM THE DICTIONARY
clear()