Timing out the eval() Function in Python with subprocess

I’ve been working on a Calculator application for my Software Development class for the past week and an interesting problem came up while checking for bugs. When I tried to make it calculate the factorial of a number as large as 1000000, it obviously froze my program and made it quit responding, since the time…