Skip to content

Review Questions

Review Questions

Q01.01 What is Python? How is the Python language different than the Python Interpreter?

Q01.02 What is the difference between the version of Python at python.org and the version of Python at Anaconda.com?

Q01.03 What are the advantages and disadvantages of using the Anaconda distribution of Python compared to using the version of Python at python.org?

Q01.04 There are many different applications to edit Python code. Some examples include: JupyterLab, Sublime Text, Visual Studio Code, and PyCharm. Pick two Python code editors and explain a feature of each code editor.

Q01.05 What are some advantages of Python compared to other computer programming languages?

Q01.06 What is PyPI? How many packages are currently available for download on PyPI?

Q01.07 Find three modules that are part of the Python Standard Library. Write a short description of what each of the modules you choose is used for.

Q01.08 Which computer operating systems can Python be installed on?

Q01.09 How much does Python cost to download and install?

Q01.10 What are three subject areas that have seen a growth in the use of Python?

Q01.11 Besides PyPI where else can problem solvers go to find Python packages, scripts, and utilities?

Q01.12 Name three packages that come pre-installed with the Anaconda distribution of Python

Q01.13 How much does the Anaconda distribution of Python cost to download and install?

Q01.14 Which operating systems can the Anaconda distribution of Python be installed on?

Q01.15 What type of program is the Anaconda Prompt?

Q01.16 What is another name for the Python interpreter?

Q01.17 How can you bring up the Python interpreter (the Python REPL) using the Anaconda Prompt?

Q01.18 What prompt is shown in the Python interpreter (the Python REPL)?

Q01.19 What command do you type to close the Python interpreter (the Python REPL)?

Q01.20 What are the first three lines in The Zen of Python by Tim Peters?

Q01.21 How do you open the Anaconda Prompt?

Installing Python on MacOS

Q01.30 What web address do you go to download the Anaconda distribution of Python for MacOS?

Q01.31 What file extension does the installer for MacOS of the Anaconda distribution of Python use?

Q01.32 When you install the Anaconda distribution of Python on MacOS, what is advised to do for the installation options?

Q01.33 Why do you need to source the .bashrc file after you install the Anaconda distribution of Python for MacOS?

Q01.34 How can you bring up the Python interpreter (the Python REPL) using the MacOS terminal?

Q01.35 Which version of Python is it advisable to download and install on MacOS?

Q01.36 Python can be installed on MacOS using a terminal program called Homebrew. What command is issued to the MacOS terminal to install Python using Homebrew?

Q01.37 What version of Python comes pre-installed on MacOS?

Installing Python on Linux

Q01.40 What version(s) of Python comes pre-installed on most Linux distributions?

Q01.41 In Linux, what happens when you type python at the terminal compared to when you type python3 at the terminal?

Q01.42 If you use the system version of Python 3 installed on Linux, what command must you enter to install Python packages to the Python 3 version that comes pre-installed?

Q01.43 What kind of file type (what is the file extension) is downloaded from Anaconda.com to install the Anaconda distribution of Python on Linux?

Q01.44 Why do you need to source the .bashrc file after you install the Anaconda distribution of Python for Linux?

Q01.45 How can you bring up the Python interpreter (the Python REPL) using a Linux terminal?

Q01.46 Which version of Python is it advisable to download and install on Linux?

Q01.47 What is a disadvantage of using the version of Python that comes pre-installed on Linux, compared to using the Anaconda distribution of Python on Linux?

Q01.48 Before you install the Anaconda distribution of Python on Linux, what version of Python are you most likely to see when you enter the command $ python in a Linux terminal?

Q01.49 Before you install the Anaconda distribution of Python on Linux, what version of Python are you most likely to see when you enter the command $ python3 in a Linux terminal?

Installing Python from Python.org

Q01.50 What web address do you go to download Python from Python.org?

Q01.51 What option is advised to select when downloading and installing Python from Python.org on Windows?

Q01.52 If Python 3 is not available on Linux, what package repository can Python 3.6 be downloaded from?

Q01.53 Go to Python.org. What is the current version of Python available for download?

Errors, Explanations, and Solutions

For each of the problems below, run the line of code. Copy the output, then suggest and run a line of code that fixes the error.

Q01.91 Open the Python Interpreter (the Python REPL). Try to close the Python Interpreter with the command:

>>> exit

Q02.92 Open the Python Interpreter (the Python REPL). Try to view The Zen of Python by Tim Peters with the command:

>>> Zen of Python

Q01.93 Open the Anaconda Prompt. Try to open the Python Interpreter (the Python REPL) with the command:

> python3

Q01.94 Open the Anaconda Prompt. Try to open the Python Interpreter (the Python REPL) with the command:

> Python

Q02.95 Open the Python Interpreter (the Python REPL). Try to view The Zen of Python by Tim Peters with the command:

>>> import this()