# HumanEval/36 # Loki Mode Multi-Agent Solution # Attempts: 1 # Passed: True def fizz_buzz(n: int): """Return the number of times the digit 7 appears in integers less than n which are divisible by 11 or 13. >>> fizz_buzz(50) 0 >>> fizz_buzz(78) 2 >>> fizz_buzz(79) 3 """ count = 0 for i in range(n): if i % 11 == 0 or i % 13 == 0: count += str(i).count('7') return count