# Write a function, which will find all such numbers between 1000 to 9999 that each digit of the number is an even number.

## Topic: Write a function, which will find all such numbers between 1000 to 9999 that each digit of the number is an even number.

Solution

values = [] for i in range(1000, 9999): s = str(i) if (int(s[0])%2==0) and (int(s[1])%2==0) and (int(s[2])%2==0) and (int(s[3])%2==0): values.append(s)

List all Python Programs