With the correction, it can now be answered.
I will assume that you have also have 11 readings. Fewer and you are underdetermined, with more you are overdetermined.
Express your problem in matrix form.
$$
\begin{bmatrix}
w_1 \\
w_2 \\
w_3 \\
: \\
w_{11} \\
\end{bmatrix}
=
\begin{bmatrix}
\sin\left(\frac{ \pi x_1}{L}\right) & \sin\left(\frac{2 \pi x_1}{L}\right) & \sin\left(\frac{3 \pi x_1}{L}\right) & \dots & \sin\left(\frac{11 \pi x_1}{L}\right) \\
\sin\left(\frac{ \pi x_2}{L}\right) & \sin\left(\frac{2 \pi x_2}{L}\right) & \sin\left(\frac{3 \pi x_2}{L}\right) & \dots & \sin\left(\frac{11 \pi x_2}{L}\right) \\
\sin\left(\frac{ \pi x_3}{L}\right) & \sin\left(\frac{2 \pi x_3}{L}\right) & \sin\left(\frac{3 \pi x_3}{L}\right) & \dots & \sin\left(\frac{11 \pi x_3}{L}\right) \\
: & : & : & ::: & : \\
\sin\left(\frac{ \pi x_{11}}{L}\right) & \sin\left(\frac{2 \pi x_{11}}{L}\right) & \sin\left(\frac{3 \pi x_{11}}{L}\right) & \dots & \sin\left(\frac{11 \pi x_{11}}{L}\right) \\
\end{bmatrix}
\begin{bmatrix}
A_1 \\
A_2 \\
A_3 \\
: \\
A_{11} \\
\end{bmatrix}
$$
This can be seen as:
$$ W = S A $$
The solution is:
$$ A = S^{-1} W $$
This is very similar to my two answers here:
Reconstructing a sine wave from an interval shorter than half its wavelength
In the overdetermined case:
$$ W = S A $$
$$ S^T W = S^T S A $$
$$ A = (S^T S)^{-1} S^T W $$
This is done inside np.linalg.solve, so you just need to use that (or your platform equivalent).