Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python console pause

def pause(massage = 'press any key to continue'):  # this function will pause the script with a default massage or a custome one.
    print(massage)
    os.system('pause >NULL')  # this will pause untill any key is pressed.
    return 0
  
# example usage:
print('hello')  # prints hello.
pause()  # waits untill the user presses a key.
print('world!')  # then prints world!
 
PREVIOUS NEXT
Tagged: #python #console #pause
ADD COMMENT
Topic
Name
6+7 =