A quick task for you
Now that you have finished this chapter, can you answer these questions?
Q1. What is a terminal (Mac/Linux) or command prompt (Windows)?
- A terminal is used to put data into or get data out of a computer without using the icons on the desktop.
- A terminal can be used to write computer programs.
- A terminal can be used to do complex work, such as giving hints on Python code.
- A terminal can do all of the above.
Q2. When you first open the terminal/command prompt, what do you need to do so that you can start reading and writing the Python code?
- Start typing the code.
- Type the word
python
. - Wait for Python to start.
- None of the above; do something different.
Q3. How is the Python shell different from the command line?
- They are exactly the same.
- The command line cannot run Python commands.
- The Python shell is started by typing the word
python
into the command line. - The Python shell can be used to test lines of Python code.
Note
Compare your answers with those you find at the back of the book.