Skip to content

Commit 185bb62

Browse files
committed
Print a random vector from NumPy
1 parent fa5ebf6 commit 185bb62

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hello_world.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
def vector(dim):
2+
import numpy as np
3+
4+
5+
return np.random.rand(dim)
6+
17
def message():
28
return 'Hello, Danger world!'
39

410
def main():
511
print(message())
12+
print(vector(10))
613

714
if __name__ == '__main__':
815
main()

0 commit comments

Comments
 (0)