import random import string def serial_code(length): letters = string.hexdigits result_str = ''.join(random.choice(letters) for i in range(length)) print("Your serial code is:-", result_str, '.')
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter