The sign function $\text{sgn}(x)$ is defined by \[\text{sgn}(x) = \left\{ \begin{aligned} -1 \quad &\text{if } x < 0 \\ 0 \quad &\text{if } x = 0 \\ 1 \quad &\text{if } x > 0. \end{aligned} \right. \]Compute $\sum_{n=-10}^{20} \text{sgn}(n).$
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
The sign function $\text{sgn}(x)$ is defined by \[\text{sgn}(x) = \left\{ \begin{aligned} -1 \quad &\text{if } x < 0 \\ 0 \quad &\text{if } x = 0 \\ 1 \quad &\text{if } x > 0. \end{aligned} \right. \]Compute $\sum_{n=-10}^{20} \text{sgn}(n).$
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
10
The sign function $\text{sgn}(x)$ is defined by \[\text{sgn}(x) = \left\{ \begin{aligned} -1 \quad &\text{if } x < 0 \\ 0 \quad &\text{if } x = 0 \\ 1 \quad &\text{if } x > 0. \end{aligned} \right. \]Compute $\sum_{n=-10}^{20} \text{sgn}(n).$
train