<prompt> Assist in debugging a Python script.The script takes two arguments, the required number of players in the game and the number of games played. It then produces a statement to report on the average number of players.import sys if lensys.argv 3: players intsys.argv1 games intsys.argv2:average str players gamesprintThe average number of players was: average  <response>: Theres a syntax error caused by a colon at the end of the line: games intsys.argv2: To fix it, the colon should be removed. So, the correct version of the script should be:import sysif lensys.argv 3: players intsys.argv1 games intsys.argv2 Calculate the average correctly average players games printThe average number of players was: straverageelse: Handle invalid number of arguments printError: Invalid number of arguments. Please enter the number of players and the number of games played.Also note that the calculation and print statement for the average are now inside the if block, so theyll only run if the proper number of arguments are entered. Additionally, an else block has been added to handle cases where an incorrect number of arguments are entered. 