Python:
numbers = map(int, input().split())
numbers = [i for i in numbers if i % 7 == 0]
print(sum(numbers) / len(numbers))
Python:
numbers = map(int, input().split())
numbers = [i for i in numbers if i % 7 == 0]
print(sum(numbers) / len(numbers))