mirror of
https://github.com/szymon-jozef/ZUT-notatki.git
synced 2026-09-07 20:20:39 +02:00
17 lines
255 B
Python
17 lines
255 B
Python
import numpy as np
|
|
|
|
|
|
def zad1(n: int) -> None:
|
|
a: np.ndarray = np.ones((n, n))
|
|
exp = np.arange(0, n)
|
|
|
|
for i in range(1, n):
|
|
a[i, :] = i + 1
|
|
a[i, :] **= exp
|
|
return a
|
|
|
|
|
|
if __name__ == "__main__":
|
|
a = zad1(5)
|
|
print(a)
|