Python Algorithms, File Management, Libraries, and Cybersecurity

  1. Describe what a vector is in the context of programming. How are vectors typically represented in Python?
  2. Write a Python function that takes two vectors (lists) of equal length and returns their dot product.
  3. Explain the concept of a data structure in programming. What are some common data structures in Python?
  4. What is a Python library, and why is it useful in programming?
  5. What is a computer virus, and how can it affect a system?
  6. List three best practices for protecting a computer system from viruses.