Strong Password Generator in 3 lines Python

Опубликовано: 18 Январь 2025
на канале: Python 5
311
13

How to make the best password generator with Python. Python tips and tricks.
#python #shorts #programming #coding

code:
import string, random
chars = list(string.ascii_letters + string.digits + "!@#$%^&*()")
length = 8
password = "".join(random.sample(chars, length))
print(password)