Python Mini-Projects and Puzzles

Apply Python programming to do these Puzzles and Mini-Projects.

Car Number Puzzle

Find a four digit number which follows all three rules below:
Rule 1: Last digit is double the first digit
Rule 2: Last two digits are double the first two
Rule 3: Middle digits are same

Hint:

    for i in range(1000, 10000): 
        if rule1 and rule2 and rule3: 
            print("The Car number is: ", i)