# Password.py # # """ Assesses passwords for their strength. """ def HowMany(s1,s2): pass def HowManyTriplets(s1,s2): pass def B1(s): """ Returns an int that is a score associated with password length. PreC: s is a valid password string.""" return 3*min(len(s),15) def B2(s): pass def B3(s): pass def B4(s): pass def B5(s): pass def B6(s): pass def D1(s): pass def D2(s): pass def D3(s): pass def D4(s): pass def D5(s): pass def D6(s): pass def D7(s): pass def D8(s): pass def PWS(s): pass if __name__ == '__main__': s = raw_input('Enter a string: ') print 'B1 = %2d' % (B1(s))