QuestionQ4

VerifiedData Serialization

As part of an application that manages network devices, you must query hundreds of network devices and return the unique set of IP prefixes blocked by configured firewall filters. To complete this task, you need a mutable data type containing unordered, unique elements.

Which Python data type meets these requirements?

Explanation

Python sets are mutable, unordered collections whose elements are unique, making them suitable for collecting distinct blocked IP prefixes.

Community Discussion

No comments yet. Be the first to start the discussion!