Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions BasicPythonScripts/Random Password Classifier/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## RANDOM PASSWORD CLASSIFIER

### AIM
To generate random passwords

### PURPOSE
Generating random passwords using python

### WORKFLOW
- First we imported the string library
- Then we imported the random module, random import * imports all functions from a module called random, but not random itself
- Then we defined a string 'characters' which is a combination of digits,symbols and letters
- Then we joined them using randint function
- Finally we print the randomly generated password
### OUTPUT
[Code](https://github.com/yashh18/Awesome_Python_Scripts/blob/main/BasicPythonScripts/Random%20Password%20Classifier/Images/Random_pwd_classifier.py%20-%20Random%20Password%20Classifier%20-%20Visual%20Studio%20Code%2006_10_2021%202_32_59%20pm.png)

[Output](https://github.com/yashh18/Awesome_Python_Scripts/blob/main/BasicPythonScripts/Random%20Password%20Classifier/Images/Random_pwd_classifier.py%20-%20Random%20Password%20Classifier%20-%20Visual%20Studio%20Code%2006_10_2021%202_33_40%20pm.png)
### SETUP INSTRUCTIONS
User needs a Python IDE to run the program

### AUTHOR
YASH KATARIA

### FOR ANY DOUBTS
www.linkedin.com/in/kataria-yash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import string
from random import *
characters = string.ascii_letters + string.punctuation + string.digits
password = "".join(choice(characters) for x in range(randint(8, 16)))
print(password)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Import string library
Must have a Python IDE