38 lines
708 B
Python
38 lines
708 B
Python
#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")
|
|
|
|
|