Write a subroutine in Python called analyzeSkySector that will count the number of times the string "Supernova" appears in an astronomical grid scan.
The subroutine should:
skyGrid as a parameter"Supernova" appears in the skyGrid array"Critical Mass" if there are exactly three "Supernova" items in the array"Supernova" items if there are fewer than three.You must write your own counting routine utilizing nested loops and not use any built-in count functions or methods (such as .count()) that might be available in Python.
You should use indentation as appropriate, meaningful variable name(s), and Python syntax in your answer.