So my question is, I have an assignment that needs to be solved.
I have a simple function:
def multiplicator(x, y):
    var1 = x * y
    return var1
I need to use this multiplicator to get this result in another function:
Enter: "5435843398429829"     output: "****************9829"
The last 4 digits in the input should not be masked, but the rest should be masked with a "#".
Let us store that number you want to mask in a variable called masked.
unmasked = str(unmasked)
masked = len(unmasked[:-4])*"#"+unmasked[-4:]
I hope this works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With