Python Password Generator

Python Password Generator

Creating a Simple Project Using Python Library Functions

In this simple project, we explore Python library functions like string and random to manipulate character sets.

Available Constants in the string Module:

  • string.ascii_letters: Concatenation of lowercase and uppercase letters.
  • string.ascii_lowercase: Lowercase letters from 'a' to 'z'.
  • string.ascii_uppercase: Uppercase letters from 'A' to 'Z'.
  • string.digits: The string '0123456789'.
  • string.hexdigits: Hexadecimal digits covering '0123456789abcdefABCDEF'.
  • string.octdigits: Octal digits ranging from '0' to '7'.
  • string.punctuation: ASCII characters considered as punctuation.

Python Code