Find all such numbers between 1000 and 3000 (both included) such that each digit of the number is an even number.   #


numbers = [] for x in range (1, 1001): numSplit = [int(d) for d in str(x)] odd = False for y in range (0, len(numSplit)): if numSplit[y] % 2 != 0: odd = True if (odd == False): numbers.append(x) print (numbers)

Loading Please Wait...