name1 = input("first persons name: ") name2 = input("second persons name: ") length = (len(name1) * len(name2)) % 11 bar = "[" + "#" * length + " " * (10 - length) + "]" print(bar) if length >= 9: print("perfect match") elif length >= 6: print("good match") elif length >= 3: print("shouldn't bother") else: print("terrible match")