diff --git a/HNS/main.py b/HNS/main.py new file mode 100644 index 0000000..040ab48 --- /dev/null +++ b/HNS/main.py @@ -0,0 +1,22 @@ +def my_sum(a, b): + return a + b + + +test_cases = [ + ("Sobaka", 3, my_sum(1, 2)), + ("Koshka", 5, my_sum(2, 3)), + ("Ezhik", 3, my_sum(2, 1)) +] + + +def print_zhivotny(mnogo_zhivotny): + for zhivotny in mnogo_zhivotny: + test_name = zhivotny[0] + test_actual = zhivotny[1] + test_expected = zhivotny[2] + + print(test_name, test_actual, test_expected) + print("-" * 20) + + +print_zhivotny(test_cases)