I am still new to python; so, sorry for the somewhat vague question. I was just curious if it is possible to add more than one input to an argument. For example:
def censored(sentence, word):
if word in sentence:
sentence = sentence.replace(word, "*" * len(word))
return sentence
print censored("foo off", "foo")
This will print out "**** off". Which is what I wanted; but, what if I want to add another input other than "foo".
Is there another way to do that without having to add a third, fourth, and nth argument in the function?