Python Code Challenge

227 - Write a function to test if a given string is a valid IP address and write test cases for it.