@@ -0,0 +1,275 @@
+import numpy as np%0A%0A# Write a function that takes as input two lists Y, P,%0A# and returns the float corresponding to their cross-entropy.%0Adef cross_entropy(Y, P):%0A    notY = np.array(Y) - 1%0A    prob = np.absolute(notY + P)%0A    logs = -1 * np.log(prob)%0A    return np.sum(logs)%0A

Create cross-entropy.py