Write a Python program to accept 10 integers from the user. If the entered number is a three-digit even integer, push it onto a stack. After all inputs are taken, pop all the three-digit even integers from the stack and display them. For example, if the user enters 12, 31, 320, 457, 6, 92, 924, 220, 1, 218, then the stack should contain:
320, 924, 220, 218
and the output of the program should be:
218 220 924 320
st = []
for i in range(10):
n = int(input('Enter an integer: '))
if n % 2 == 0 and len(str(abs(n))) == 3:
st.append(n)
while len(st) > 0:
print(st.pop(), end=' ')