summaryrefslogtreecommitdiff
path: root/progs/a171.py
blob: 64686f7810ca7aad92336f9eae34ac64c2ce57a7 (plain)
1
2
3
4
5
def remove_length(test_str, K):
  temp = test_str.split()
  res = [ele for ele in temp if len(ele) != K]
  res = ' '.join(res)
  return (res)