String Masking

# Original String cc = "4556364607935616" # Show 4 last character last = cc[-4:] # Masking replace = (len(cc)-4)*'#' # Print print('Original:',cc) print('Masking:',replace+last)

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.