def should_get_A(records):

    return False if "LLL" in records or records.count('A') > 1  

records = "PPLLLP";


print(should_get_A(records));

87e3d92eac8563d25b28f9758d3aea89ebfd1999
def should_get_A(records):

    return False if "LLL" in records or records.count('A') > 1  

records = "PPLLLP";


print(should_get_A(records));
