SyntaxFix
Write A Post
Hire A Developer
Questions
you can use set
charlist = list(set(string.digits+string.ascii_uppercase) - set('10IO')) return ''.join([random.SystemRandom().choice(charlist) for _ in range(passlen)])