code: def is_ip(string):
      
      mo = re.match(r'(\d+)\.(\d+)\.(\d+)\.(\d+)', string)
      if mo is None:
          return False
      for group in mo.groups():
          if int(group) not in list(range(0, 256)):
              return False
      return True
docs: Returns True if the given string is an IPv4 address, False otherwise.
  
      :type  string: string
      :param string: Any string.
      :rtype:  bool
      :return: True if the string is an IP address, False otherwise.