Below is the definition of the Worker class: class Worker: …

Below is the definition of the Worker class: class Worker:    def __init__(self, name, salary, hours):        self.name = name       self.salary = salary       self.hours = hours        def calculate_pay(self):       return self.salary*self.hours Given the following class definition, which of the following is the correct way to create an instance of the Worker class and call the calculate_pay() method?

In the following code snippet, there is a function find_zero…

In the following code snippet, there is a function find_zeros_and_ones. This function counts how many occurrences of integer values 0 and 1 there are in an input list, and returns the count as a list with two elements. This code has multiple for-loops in its implementation. What is the time complexity of the following code snippet? def find_zeros_and_ones(numbers):   zero_counter = 0    for i in range(len(numbers)):   if numbers[i] == 0:   zero_counter += 1   one_counter = 0    for i in range(len(numbers)): if numbers[i] == 1: one_counter += 1 return [zero_counter, one_counter]