MCPcopy Create free account
hub / github.com/CodeWithHarry/The-Ultimate-Python-Course / rem

Function rem

Chapter 8 - PS/07_problem7.py:2–7  ·  view source on GitHub ↗
(l, word)

Source from the content-addressed store, hash-verified

1
2def rem(l, word):
3 n = []
4 for item in l:
5 if not(item == word):
6 n.append(item.strip(word))
7 return n
8
9
10l = ["Harry", "Rohan", "Shubham", "an"]

Callers 1

07_problem7.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected