# list_min_max_avg
Jalankan kode pada sel-sel di bawah ini sehingga identitas Anda tertampilkan dengan benar dan lakukan statistik sederhana.


```python
from IPython.core.display import HTML
HTML("")

import sys, os
sys.path.insert(1, os.path.join(sys.path[0], '../..'))

from src.student import Students as stu
nim = 10200999
print(nim, end=' ')
print(stu[nim]['name'], end=' ')
print("https://github.com/", stu[nim]['github'], sep='')
```

Bila terdapat $N$ bilangan maka rata-ratanya dapat diperoleh melalui

\begin{equation}
x_{\rm avg} = \frac1N \sum_{i = 1}^N x_i,
\end{equation}

untuk misalnya $x = \{ x_1, x_2, \dots, x_N \}$.


```python
def avg(x):
    sum = 0
    for i in x:
        sum = i
    N = len(x)
    val = sum / N
    return val

x = [1, 10, 5, 7, 9, 2, 4, 6, 8, 3]

#xmin = 
#xmax = 
#xavg = 

print("x = ", x, sep='')
print("xmin = ", xmin, sep='')
print("xmax = ", xmax, sep='')
print("xavg = ", xavg, sep='')
```

Perbaiki kode di atas sehingga dapat diperoleh nilai $x_{\rm min}$, $x_{\rm max}$, dan $x_{\rm avg}$.

7a1ab8e8b5a5a571298cf9cecf16b3e7b13003af
ipynb
Jupyter Notebook
notebook/3201-u2-instruction/test-2021-2-fi3201-01-u2/que/10200000/list_min_max_avg.ipynb
dudung/cookbook
8a43a923af8367dafd04e3dd2ef6b9e7ed82b22f
MIT
notebook/3201-u2-instruction/test-2021-2-fi3201-01-u2/que/10200000/list_min_max_avg.ipynb
dudung/cookbook
8a43a923af8367dafd04e3dd2ef6b9e7ed82b22f
MIT
notebook/3201-u2-instruction/test-2021-2-fi3201-01-u2/que/10200000/list_min_max_avg.ipynb
dudung/cookbook
8a43a923af8367dafd04e3dd2ef6b9e7ed82b22f
MIT
Qwen/Qwen-72B
1. YES
2. YES

