Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Python/03. Strings/Merge the Tools.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
def merge_the_tools(string, k):
# your code goes here
n=int(len(string)/k)
for i in range(n):
s=""
for j in string[i*k:(i+1)*k]:
if j in s:
continue
else:
s+=j
print(s)
5 changes: 5 additions & 0 deletions Python/16. Numpy/Transpose and Flatten
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import numpy as np
n,m = map(int,input().split())
arr = np.array([input().split() for _ in range(n)],int)
print(arr.transpose())
print(arr.flatten())