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!