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?

The following code validates and categorizes temperature inp…

The following code validates and categorizes temperature inputs using exception handling. The program includes two functions: validate_temperature() checks if a temperature is above absolute zero (-273°C), and check_temperature_range() categorizes the temperature as too cold, below freezing, or above freezing. What is the output when the user inputs -30? def validate_temperature(temp):    if temp < -273:        raise ValueError("Temperature cannot be below absolute zero")    return "Valid temperature recorded"def check_temperature_range(temp):    if temp < -50:        raise ValueError("Temperature too cold for measurement")    elif temp < 0:        return "Below freezing"    else:        return "Above freezing"try:    user_input = int(input("Enter temperature in Celsius: "))    result1 = validate_temperature(user_input)    result2 = check_temperature_range(user_input)    print(f"Validation: {result1}, Range: {result2}")except ValueError as e:    print(f"Error: {e}")except Exception:    print("Error: An unknown error occurred")