Skip to content

This Python code creates a random 10-character password using letters, numbers, and symbols by picking characters randomly and printing the final result. Customized version from Girls Who Code 'Code at Home' activity.

Notifications You must be signed in to change notification settings

janee1768/Password-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Password Generator – Python Project

This project is a simple yet effective random password generator written in Python. It helps users generate strong, secure passwords by combining lowercase letters, numbers, and special symbols. Strong passwords are essential for protecting online accounts from being hacked, and this program makes it easy to create one instantly.

πŸ’‘ How It Works

The program begins by importing Python's built-in random module to allow random selection of characters. It defines three separate lists:

  • Letters: All lowercase alphabets (a to z)
  • Numbers: Digits from 1 to 9
  • Symbols: A wide range of special characters like @, #, !, &, etc.

A list of 10 placeholders is used to store characters for the password. Then, using a for loop that runs 10 times, the program randomly decides whether to add a letter, number, or symbol in each position. It selects one character from the chosen list and inserts it into the password.

After the loop completes, the list of characters is joined into a single string using join(), and the final password is printed.

βœ… Features

  • Generates random 10-character passwords
  • Mixes letters, numbers, and symbols for strong security
  • Lightweight and easy to understand
  • Fully written in basic Python β€” no external packages required

About

This Python code creates a random 10-character password using letters, numbers, and symbols by picking characters randomly and printing the final result. Customized version from Girls Who Code 'Code at Home' activity.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages