Question 1

You have collected sales data and want to compute the average using the NumPy library.
Which option correctly shows how to install NumPy and use it in your code to perform this task?
  • Question 2

    An e-commerce site records every product view and purchase.
    Which of the following best describes how these logs become marketing insights?
  • Question 3

    Which of the following code snippets will output Truefor both printfunctions by correctly identifying the type of each variable and performing valid operations?
  • Question 4

    A script defines a variable x = None and checks its truth value using a conditional statement. The developer wants to understand how Python evaluates None in Boolean contexts. What will bool(x) return?
  • Question 5

    You are reading a data.csvfile line by line. To prepare each line for formatting with f-strings, you need to remove extra whitespace and split the values by commas.
    Which line should you insert to correctly clean and parse the input?