password-generator 1.0
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#imports
|
||||
|
||||
import subprocess
|
||||
|
||||
#selection
|
||||
while True:
|
||||
print("choice password-layout")
|
||||
print("[1] every ascii-characters")
|
||||
print("[2] only numbers")
|
||||
print("[3] just with normol special characters")
|
||||
print("[4] quit")
|
||||
|
||||
#dict and variable
|
||||
|
||||
files = {
|
||||
1: "every.py",
|
||||
2: "numbers.py",
|
||||
3: "onlynormal.py",
|
||||
}
|
||||
|
||||
try:
|
||||
choiced = int(input())
|
||||
|
||||
if choiced == 4:
|
||||
break
|
||||
|
||||
if choiced in files:
|
||||
filename = files[choiced]
|
||||
subprocess.run(["python3", filename])
|
||||
|
||||
else:
|
||||
print("Not in the list")
|
||||
|
||||
except ValueError:
|
||||
print("choice one of the numbers above")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user