Python Lutz Chapter 1 Flashcards
T/F: Python is a [language].
F. Python is an interpreter
PVM stands for:
Python virtual machine
When you execute, ___ code is converted into ____, which is then routed to a ____
source code;
byte code;
virtual machine
a Folder is a.k.a :
a directory
what are Modules?
simply, modules are text files containing Python statements
From top to bottom, list the sequence of the Python hierarchy.
Program --> Modules --> Statements Expressions Objects
What datatypes/objects in Python are Immutable?
numbers,
strings,
tuples
What datatypes/objects in Python are Mutable?
lists,
dictionaries,
sets
What is a tuple?
a compound datatype, specifically an ordered and Immutable list
If a list is surrounded by Parentheses, then it’s a ____
tuple
If a term/expression is surrounded by quotation marks, then it is a ____
STRING
If a term/expression is surrounded by square brackets, then it is a _____.
list
If a term/expression is surrounded by braces/curly brackets {} , then it is a ___
DICTIONARY