Question: Why would you use a virtual environment?

  1. Virtual environments create a "bubble" around your project so that any libraries or packages you install within it don't affect your entire machine.
  2. Teams with remote employees use virtual environments so they can share code, do code reviews, and collaborate remotely.
  3. Virtual environments were common in Python 2 because they augmented missing features in the language. Virtual environments are not necessary in Python 3 due to advancements in the language.
  4. Virtual environments are tied to your GitHub or Bitbucket account, allowing you to access any of your repos virtually from any machine.

Answer: The correct answer of the above question is Option A:Virtual environments create a "bubble" around your project so that any libraries or packages you install within it don't affect your entire machine.