def solution(w, h, s): return '0' tests = [ ([2, 3, 4], '430'), ([2, 2, 2], '7'), ] for i, o in tests: result = solution(*i) print (i, result == o, result, o)