Python - remove known character
new to python so was hoping for some help. Trying to build a function (so
far sadly failing), it's purpose is to remove a specified letter from the
word and then return the result.
Example:
word_func('bird', 'b')
the returned result would then give 'ird' with the b dropped.
The function I'm starting again with is:
def word_func('word', 'letter'):
Any help would be appreciated. I think I'm overcomplicating this in my head.
No comments:
Post a Comment