Hiding the Card Number Python Programming
Problem:- Write a function that takes a credit card number and only displays the last four characters. The rest of the card numbers must be replaced by ************.
Example:-
card_hide("1234123456785678") ➞ "************5678"card_hide("8754456321113213") ➞ "************3213"
card_hide("35123413355523") ➞ "**********5523"
Comments
Post a Comment