The code doesnot give expected output as alternate numbers. I have the updated code to numericpattern134.py