1/13
Vocabulary flashcards covering basic Python data types, functions, lists, dictionaries, and tuples.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Integer (int)
A whole number, such as 20.
Float
A number with a decimal, such as 20.5.
String (str)
Text/characters surrounded by quotation marks, such as "BANA6620".
Boolean (bool)
A data type that has a value of True or False.
List
A collection of elements that can contain different data types, including words, integers, floats, and Booleans.
type() function
A Python function used to determine the data type of an object.
Zero indexed
A positioning system where the first element in a list has index 0, the second has index 1, and so on.
len() function
A function that tells you how many elements or items are in a list.
append() function
A list function used to add a new element to the end of a list.
del statement
A command used to delete an element from a list using its index, such as del x[2].
Dictionary
A Python data structure that maps a key to a value, similar to how a word is mapped to its meaning.
Structured dictionary
A dictionary created using the dict() function, such as instructorDict = dict().
Tuple
A data type similar to a list that is created using parentheses ( ) and is immutable.
Immutable
A characteristic meaning you cannot change anything in the object after creation.