Email generator with password

Here is a simple email generator with a password:

Email Generator

Username: [Insert username here]

Email Address: [Insert email domain here]@[Insert username here].com

Password: [Insert password here]

Example:

How it works:

  1. The email generator takes in a username and an email domain as input.
  2. It generates an email address by concatenating the username with the email domain.
  3. It generates a password using a combination of letters, numbers, and special characters.
  4. The email address and password are then displayed as output.

Note:

Code:

import random
import string

def generate_email(username, email_domain):
    email_address = f"{username}@{email_domain}.com"
    password = ''.join(random.choice(string.ascii_letters + string.digits + string.punctuation) for _ in range(12))
    return email_address, password

username = input("Enter username: ")
email_domain = input("Enter email domain: ")

email_address, password = generate_email(username, email_domain)

print(f"Email Address: {email_address}")
print(f"Password: {password}")

How to use:

  1. Run the code in a Python interpreter or save it to a file and run it as a script.
  2. Enter the username and email domain when prompted.
  3. The email address and password will be generated and displayed as output.

Example output:

Enter username: john
Enter email domain: example
Email Address: [email protected]
Password: Jh4n123!

Note: This is a very basic example and should not be used for production purposes.