Ad
  • Custom User Avatar

    I test your code in Python 3.5.2

    is_valid_IP('0.0.0.077') returns true
    is_valid_IP('0.0.0.088') returns false
    

    I think it transfer number 0xx into Oct number

    So your sulution is clever but you just pass all test case by chance.The problem need to check a dot-decimal format ipv4 string.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution