def my_func(data): for i in data: res = 0 for k in range(1, int(i)+1): if (k % 7 == 0)&nbs***bsp;("7" in str(k)): res += 1 print(res) data = [] while True: try: data.append(input()) except (KeyboardInterrupt, EOFError): break my_func(data)
def my_func(data): for i in data: res = 0 for k in range(1, int(i)+1): if (k % 7 == 0)&nbs***bsp;("7" in str(k)): res += 1 print(res) data = [] while True: try: data.append(input()) except (KeyboardInterrupt, EOFError): break my_func(data)