import string
import math
import time
import random
from random import choice
import numpy as np
def sigmoid(x):
return 1/(1+np.exp(-x))
def exponent(x):
return np.exp(x)#y = e**x
word = string.ascii_letters
number = string.digits
punctuation = string.punctuation
time.sleep(1)
#brute = #speed brute
correctPassword = "94"
wrongPasswords = []
password = ""
length = 2
comb_pass = 0#all combination in bruteforce
chars = number
run = True
while run:
try:
password = ""
for i in range(length):
password += choice(chars)
if password not in wrongPasswords:
if password != correctPassword:
print(sorted(password))
wrongPasswords.append(password)
else:
run = False
break
except:
pass
print(password, "is correct password")