What is the appropriate way to create a virtual
environment for Python 3?
python3 -virtual myvenv
python3 virtual myvenv
python3 -m vrt myvenv
python3 -m venv myvenv
What command is used to install Python modules
from PyPI?
pip load packagename
pip install packagename
python3 -m pip install packagename
python3 -t pip install packagename
What is the standard for indention in Python?
One space for each block of code
Four spaces for each block of code
One tab for each block of code
One tab and one space per block of code
How are comments in Python denoted?
// on each line you want to make a comment
or '" quotation marks encompassing multiline comments
/ comment /
@$ comment %@
Which of the following are mutable data types?
(Choose two.)
Lists
Dictionary
Integers
Tuples
Which of the following would create a dictionary?
a= (" name","chris","age",45)
a= dict()
a= [name, chris, age, 45]
a= {" name":"chris", "age": 45}
What data type does the input() function create
when assigned to a variable?
List
Raw
String
An auto typed one
Which print statement is valid for Python 3?
print 'hello world'
print('hello world')
andrew
(andrew)
#1