title: Divisibility By 7
signature: def divisibility_by_7(num):
source_py: def divisibility_by_7(num):
      if (num < 0):
          return divisibility_by_7((- num))
      if ((num == 0) or (num == 7)):
          return True
      if (num < 10):
          return False
      return divisibility_by_7(((num / 10) - (2 * (num - ((num / 10) * 10)))))
source_cpp: int divisibility_by_7(int num) {
    if ( num < 0 ) return divisibility_by_7 ( - num );
    if ( num == 0 || num == 7 ) return 1;
    if ( num < 10 ) return 0;
    return divisibility_by_7 ( num / 10 - 2 * ( num - num / 10 * 10 ) );
  }
question_info.test_code: import array
  import bisect
  import collections
  import datetime
  import functools
  import heapq
  import itertools
  import math
  import queue
  import re
  import string
  import sys
  from typing import Any, Dict, List, Optional, Set
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  def validate_solution(actual, expected):
      return actual == expected
  
  def driver(num, expected):
      try:
          if validate_solution(PLACEHOLDER_FN_NAME(
              num),
              expected
          ):
              return "PASSED"
          return "FAILED"
      except Exception as exception_obj:
          return type(exception_obj).__name__
      
  if __name__ == "__main__":
      result = driver(0, True)
      print(f"TEST-0...{result}")
  
      result = driver(-21, False)
      print(f"TEST-1...{result}")
  
      result = driver(7, True)
      print(f"TEST-2...{result}")
  
      result = driver(63, False)
      print(f"TEST-3...{result}")
  
      result = driver(84, False)
      print(f"TEST-4...{result}")
  
      result = driver(73, False)
      print(f"TEST-5...{result}")
  
      result = driver(81, False)
      print(f"TEST-6...{result}")
  
      result = driver(-10, False)
      print(f"TEST-7...{result}")
  
      result = driver(47, False)
      print(f"TEST-8...{result}")
  
      result = driver(23, False)
      print(f"TEST-9...{result}")
  
      sys.exit(0)
question_info.test_case_ids: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
question_info.entry_fn_name: divisibility_by_7
question_info.test_list: [{"idx": 0, "outputs": true, "inputs": {"num": 0}}, {"idx": 1, "outputs": false, "inputs": {"num": -21}}, {"idx": 2, "outputs": true, "inputs": {"num": 7}}, {"idx": 3, "outputs": false, "inputs": {"num": 63}}, {"idx": 4, "outputs": false, "inputs": {"num": 84}}, {"idx": 5, "outputs": false, "inputs": {"num": 73}}, {"idx": 6, "outputs": false, "inputs": {"num": 81}}, {"idx": 7, "outputs": false, "inputs": {"num": -10}}, {"idx": 8, "outputs": false, "inputs": {"num": 47}}, {"idx": 9, "outputs": false, "inputs": {"num": 23}}]
question_info.entry_cls_name: Solution