Random Password Generator in Python

Python script to generate secure random passwords. This script will be very useful in a lot of real time scenarios.

Source code :

import string

from random import *

characters = string.ascii_letters + string.punctuation  + string.digits

password = ""

for x in range(randint(10, 18)):
    password += choice(characters)


Output :


Notes :

Each and everytime when you run the script, It will generate a new random number.

Output :


Comments :