@@ -0,0 +1,393 @@
+import numpy as np%0A%0Adef animals(heads, legs):%0A    if not all(%5Bd %3E= 0 for d in %5Bheads,legs%5D%5D):%0A        return %22No solutions%22%0A        %0A    a = np.array(%5B%5B2,4%5D,%5B1,1%5D%5D)%0A    b = np.array(%5Blegs,heads%5D)%0A    result = %5B%5D%0A    %0A    for d in np.linalg.solve(a,b):%0A        if d==int(d) and d%3E=0:%0A            result.append(d)%0A        else:%0A            return %22No solutions%22%0A    return tuple(result)        %0A

Create 8kyu_heads_and_legs.py