#!/usr/bin/env python # -*- coding: utf-8 -*- import random import string def generate_password(length=16): characters = string.ascii_letters + string.digits + string.punctuation password = ''.join(random.choice(characters) for _ in range(length)) return password # Generate a strong 16-character long password strong_password = generate_password() print(strong_password)