Skip to content

Commit 8c0f36a

Browse files
solves numpy arrays
1 parent 5e12052 commit 8c0f36a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea/
22
envs/
3+
venv

Diff for: numpy-python/arrays.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# https://www.hackerrank.com/challenges/np-arrays/problem
2+
3+
import numpy
4+
5+
6+
def arrays(arr):
7+
return numpy.array(arr[::-1], float)
8+
9+
10+
arr = input().strip().split(' ')
11+
result = arrays(arr)
12+
print(result)

0 commit comments

Comments
 (0)