First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 4 years ago

FrédéricC gravatar image

Something like this

            try:
                alarm(3)
                33**33
            except AlarmInterrupt:
                print("This takes too long.")
                continue