Palo Alto Networks interview question

Modify home task code: - Write a Python script that takes system arguments (from the terminal/command prompt) and calls the main scanner method - Order the results alphabetically according to the name of the scanner and show the number of days since the file has last been scanned by this scanner

Interview Answer

Anonymous

Jan 7, 2021

Used sys module to parse command line arguments, fetched the data I require from JSON response, used OrderedDict to sort the results alphabetically, and the datetime module to calculate the date difference

1