Skip to content

Commit

Permalink
add example to generate_password
Browse files Browse the repository at this point in the history
  • Loading branch information
mishelly-h committed Jan 31, 2024
1 parent fc1d469 commit f41a242
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/passwordler/generate_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ def generate_password(length=12, include_symbols=True, include_numbers=True):
Returns:
str: A randomly generated password.
Example:
>>> generate_password()
Output: ',tKC]m"wDJ34'
>>> generate_password(include_symbols=False, include_numbers=False)
Output: 'NJfVKhgnrJYa'
"""

if not isinstance(length, int):
Expand Down

0 comments on commit f41a242

Please sign in to comment.