Hi 🙂🖐
myData = (1, 2, 3)
def remove_item(value, data):
# convert tuple to list
data = list(data)
data.remove(value)
return tuple(data)
print(remove_item(1, myData))
result
(2, 3)
For further actions, you may consider blocking this person and/or reporting abuse
Shilleh -
Matin Shaikh -
Scofield Idehen -
Aral Roca -
Top comments (0)