HF RL Explorer

Task: Determine if an IP Address is Private in Python

Task: Determine if an IP Address is Private in Python: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that determines whether a given IP address belongs to a private network. The solution must handle both IPv4 and IPv6 addresses, and correctly identify all private/reserved…

The task

Write a Python script that determines whether a given IP address belongs to a private network. The solution must handle both IPv4 and IPv6 addresses, and correctly identify all private/reserved address ranges.

Part of PrimeIntellect/Terminal-Lego-15k.