Skip to content

Commit a62bd52

Browse files
authored
Update Random_Passwrords.md
1 parent 80c52b8 commit a62bd52

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Password_generator/Random_Passwrords.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""
2-
Random Password Generator
1+
#Random Password Generator
32
----------------------------------
43
This program generates a strong random password
54
based on user preferences for length and character types.
@@ -8,8 +7,8 @@ Concepts covered:
87
- Using Python's 'random' and 'string' modules
98
- Loops, conditionals, and user input handling
109
- Building and joining strings dynamically
11-
"""
1210

11+
```
1312
# Importing the required modules
1413
import random # For generating random selections
1514
import string # For accessing predefined character sets (letters, digits, symbols)
@@ -53,7 +52,7 @@ def generate_password(length, use_uppercase, use_digits, use_symbols):
5352
5453
5554
def main():
56-
"""Main function that interacts with the user and prints the generated password."""
55+
Main function that interacts with the user and prints the generated password.
5756
print("🔐 Welcome to the Random Password Generator!")
5857
print("You can customize your password strength and length.\n")
5958
@@ -84,3 +83,4 @@ def main():
8483
# Entry point check
8584
if __name__ == "__main__":
8685
main()
86+
```

0 commit comments

Comments
 (0)