Create a function called nmapScan that takes in two argumentsfor the target host and the target port that will use thePortScanner( ) class object and save the results to a variablenamed nmScan. Then use that variable to scan the target host andtarget port utilizing the PortScanner class function that takes alist of targets and ports as input. Assign a variable to indexobject by target hosts and ports. Then print the status of theports.
Answer