Skip to main content
improved formatting
Source Link
urcm
  • 22.6k
  • 4
  • 58
  • 109

if you want to solve in pythonic way, try this:

import sys
sys.exit()

or use:

raise SystemExit()

in detail:

import time
import sys

sTime= time.time()

if time.time() - sTime > 60:
   sys.exit()

i hope it helps you...

if you want to solve in pythonic way, try this:

import sys
sys.exit()

i hope it helps you...

if you want to solve in pythonic way, try this:

import sys
sys.exit()

or use:

raise SystemExit()

in detail:

import time
import sys

sTime= time.time()

if time.time() - sTime > 60:
   sys.exit()

i hope it helps you...

Source Link
urcm
  • 22.6k
  • 4
  • 58
  • 109

if you want to solve in pythonic way, try this:

import sys
sys.exit()

i hope it helps you...