Each access-log line starts with the client IP followed by a space. Return how many distinct IPs appear. Ignore blank lines.
Implement unique_ips. Input: lines: list[str]. Returns: int.
def unique_ips(lines: list[str]) -> int:
return 0
Run executes the public tests. Submit grades against public and hidden tests.
Each access-log line starts with the client IP followed by a space. Return how many distinct IPs appear. Ignore blank lines.
Implement unique_ips. Input: lines: list[str]. Returns: int.
def unique_ips(lines: list[str]) -> int:
return 0
Run executes the public tests. Submit grades against public and hidden tests.