Question d’entretien chez Palo Alto Networks

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

Réponse à la question d'entretien

Utilisateur anonyme

7 janv. 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