Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted as Python by HeyYa ( 4 years ago )
def main():
stop = [
'STOP', 'STOp', 'STop', 'Stop', 'stop', 'stoP', 'stOP', 'sTOP',
'sTOp', 'sTop', 'stOp'
]
code = []
flag = True
while flag == True:
key = input('Please enter the keys: ')
key = str(key)
code.append(key)
if key == 'stop':
code.remove('stop')
flag = False
flag = True
while flag == True:
key_1 = input('\nEnter key nr.1\n : ')
confirm_key = input('Please type CONFIRM to enter the key!\n : ')
if confirm_key == 'CONFIRM':
while flag == True:
key_2 = input('Enter key nr.2\n : ')
confirm_key = input('Please type CONFIRM to enter the key!\n : ')
if confirm_key == 'CONFIRM':
while flag == True:
key_3 = input('Enter key nr.3\n : ')
confirm_key = input('Please type CONFIRM to enter the key!\n : ')
if confirm_key == 'CONFIRM':
while flag == True:
key_4 = input('Enter key nr.4\n : ')
confirm_key = input('Please type CONFIRM to enter the key!\n : ')
if confirm_key == 'CONFIRM':
while flag == True:
key_5 = input('Enter key nr.5\n : ')
confirm_key = input('Please type CONFIRM to enter the key!\n : ')
if confirm_key == 'CONFIRM':
flag = False
code = code[0:len(code):1]
for x in code:
print(x, end='.')
key_1_c = code.count(key_1) #1. LINE -
key_2_c = code.count(key_2) #2. STAR *
key_3_c = code.count(key_3) #3. BIG SIGN @
key_4_c = code.count(key_4) #4. PROCENT %
key_5_c = code.count(key_5) #4. COPY SIGN :
if str(key_1_c) > str(key_2_c) and str(key_1_c) > str(key_3_c) and str(key_1_c) > str(key_4_c) and str(key_1_c) > str(key_5_c):
print('\nLines:', str(key_1_c), 'key 1')
elif str(key_1_c) < str(key_2_c):
print('\nStars:', str(key_1_c), 'key 1')
elif str(key_1_c) == str(key_2_c):
print("\nThere had been found a similar number of Lines and Stars so we can't deocode it")
print('\n', 'key 1:', str(key_1_c), '\n', 'key 2:', str(key_2_c) )
if str(key_2_c) < str(key_1_c) and str(key_2_c) > str(key_3_c) and str(key_2_c) > str(key_4_c) and str(key_2_c) > str(key_5_c):
print('\nStars:', str(key_2_c), 'key 2')
elif str(key_2_c) > str(key_1_c):
print('\nLines:', str(key_2_c), 'key 2')
if str(key_3_c) < str(key_1_c) and str(key_3_c) < str(key_2_c) and str(key_3_c) < str(key_4_c) and str(key_3_c) < str(key_5_c):
print('\nBig Signs:', str(key_3_c), 'key 3')
if str(key_4_c) < str(key_5_c):
print('\nProcent:', str(key_4_c), 'key 4')
print('\nCopy Signs:', str(key_5_c), 'key 5')
elif len(code) > str(120):
if str(key_4_c) < str(key_5_c):
print('\nProcent:', str(key_4_c), 'key 4')
print('\nCopy Signs:', str(key_5_c), 'key 5')
Revise this Paste
Parent: 112803