Skip to content

Commit

Permalink
fixed?
Browse files Browse the repository at this point in the history
  • Loading branch information
Seeratul committed May 9, 2023
1 parent 2b35d84 commit eb8bb30
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/2023-homework04-Seeratul/v17/.wsuo
Binary file not shown.
10 changes: 6 additions & 4 deletions combination.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
def combination(a1,a2,axis = 0):
# delete the NotImplementedError when you write your function.
try:
a1 = np.squeeze(a1)
a2 = np.squeeze(a2)
return np.concatenate(a1,a2,axis)
#a1 = np.squeeze(a1)
#a2 = np.squeeze(a2)
return np.concatenate((a1,a2),axis)

except:
print ("The combination appears to be impossible!")
Expand All @@ -16,5 +16,7 @@ def combination(a1,a2,axis = 0):

if __name__ == "__main__":
# use this for your own testing!

a1 = np.ones((2,2))
a2 = np.ones((2,2))
print(combination(a1,a2))
pass

0 comments on commit eb8bb30

Please sign in to comment.