Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.
Example:
Input:
Number 1: 36
Number 2: 54
Output:
The factors of 36 are 1, 2, 3, 4, 6, 9, 12, 18, and 36
The factors of 54 are 1, 2, 3, 6, 9, 18, 27, and 54
The greatest common factor is 18