Recall & Review
beginner
What is Flask?
Flask is a lightweight web framework for Python that helps you build web applications easily.
Click to reveal answer
beginner
Which command installs Flask using pip?
You install Flask by running
pip install Flask in your terminal or command prompt.Click to reveal answer
intermediate
Why should you use a virtual environment when installing Flask?
A virtual environment keeps your project’s packages separate from other projects, avoiding conflicts and making management easier.
Click to reveal answer
beginner
How do you create a virtual environment in Python?
Run
python -m venv env to create a virtual environment named 'env'. Then activate it before installing Flask.Click to reveal answer
beginner
What command activates a virtual environment on Windows?
Use
env\Scripts\activate in the command prompt to activate the virtual environment on Windows.Click to reveal answer
Which command installs Flask?
✗ Incorrect
The correct command to install Flask is
pip install Flask.Why use a virtual environment for Flask projects?
✗ Incorrect
Virtual environments isolate packages so different projects don’t interfere with each other.
What is the command to create a virtual environment named 'env'?
✗ Incorrect
Use
python -m venv env to create a virtual environment called 'env'.How do you activate a virtual environment on Windows?
✗ Incorrect
On Windows, activate a virtual environment with
env\Scripts\activate.What tool do you use to install Flask?
✗ Incorrect
Flask is installed using Python’s package manager called pip.
Explain the steps to install Flask in a new Python project.
Think about keeping your project clean and isolated.
You got /3 concepts.
Why is it important to use a virtual environment when working with Flask?
Imagine having different toolboxes for different projects.
You got /3 concepts.