[Tutor] Please sent me the output of this code .Please include both cases if input correct and if input wrong .

Deepak Nn deepaknedumpilly at gmail.com
Sat Dec 5 13:48:46 EST 2015


# Embedded file name: re4.py
import time
flag = [102,
 108,
 97,
 103,
 123,
 112,
 121,
 116,
 104,
 111,
 110,
 95,
 114,
 111,
 99,
 107,
 115,
 125]
password = raw_input('Enter secret code to get secret password: ')
sleep_hours = 10000
print 'Going to sleep. Will check password after %d hours' % sleep_hours
print 'If you want to check password faster, find a way to prevent this
sleep'
time.sleep(sleep_hours * 60 * 60)
if password == 'strongpassword':
    print 'Correct! The secret password is %s' % ''.join(map(chr, flag))
else:
    print 'Booo wrong code! No secret password for you'


More information about the Tutor mailing list