Search
 
SCRIPT & CODE EXAMPLE
 

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!
Comment

PREVIOUS NEXT
Code Example
Python :: mypy ignore type 
Python :: python copy paste file 
Python :: how to convert data type of a column in pandas 
Python :: download playlist from youtube python 
Python :: horizontal line matplotlib python 
Python :: python write json to file utf8 
Python :: colab im show 
Python :: how to add percentage in pie chart in python 
Python :: numpy array count frequency 
Python :: matplotlib.pyplot imshow size 
Python :: change tkinter window name 
Python :: running selenium on google colab 
Python :: invert y axis python 
Python :: Creating an admin user in django terminal 
Python :: delete rows based on condition python 
Python :: python get output of command to variable 
Python :: selenium full screen python 
Python :: record the amount of time ittales for code to run python 
Python :: dotenv error pip python 
Python :: python reload function from file 
Python :: plot keras model 
Python :: python regex flags 
Python :: how to delete every row in excel using openpyxl 
Python :: python opencv number of frames 
Python :: pandas plotly backend 
Python :: iterate over df 
Python :: reverse row order pandas 
Python :: python cd to directory 
Python :: get last column pandas 
Python :: dataframe column contains string 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =