From 365377fc3c4d2164e9df4137cf017358fff4932e Mon Sep 17 00:00:00 2001 From: Tabledevil Date: Fri, 13 Dec 2024 13:50:57 +0100 Subject: [PATCH] Remove extra , --- 13/13.ipynb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/13/13.ipynb b/13/13.ipynb index 7ac84a9..18dbe44 100644 --- a/13/13.ipynb +++ b/13/13.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 161, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -27,7 +27,7 @@ " A[:,1]=matches\n", " if \"Prize:\" in line: #Prize Position is the result of solving the equation > B\n", " B=np.array(matches,dtype=int)+np.array([offset,offset]) #offset added for part 2\n", - " solution = np.linalg.solve(A.astype(int),B.astype(int),)\n", + " solution = np.linalg.solve(A.astype(int),B.astype(int))\n", " # remove non integer Solutions by rounding and checking validity of solution\n", " reverse = np.dot(A,np.round(solution))\n", " validation = np.all(np.equal(reverse,B.astype(int)))\n", @@ -49,7 +49,7 @@ }, { "cell_type": "code", - "execution_count": 162, + "execution_count": 2, "metadata": {}, "outputs": [ { @@ -58,7 +58,7 @@ "np.int64(28753)" ] }, - "execution_count": 162, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" } @@ -76,7 +76,7 @@ }, { "cell_type": "code", - "execution_count": 163, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -85,7 +85,7 @@ "np.int64(102718967795500)" ] }, - "execution_count": 163, + "execution_count": 3, "metadata": {}, "output_type": "execute_result" }