mirror of
https://github.com/szymon-jozef/ZUT-notatki.git
synced 2026-10-28 11:10:38 +01:00
bla bla
This commit is contained in:
16
uczelnia/2_semestr/python/laby/11/zad1.py
Normal file
16
uczelnia/2_semestr/python/laby/11/zad1.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user