Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to pause a python script

import time

time.sleep(amount of seconds you want to pause the script for)


Example : 
  
import time
secondstogo = input("How much seconds do you want to wait? : ")
print(f"waiting {secondstogo} seconds")
time.sleep(secondstogo)
Comment

PREVIOUS NEXT
Code Example
Python :: count plot 
Python :: how to add headings to data in pandas 
Python :: how to add and subtract days datetime python 
Python :: `distplot` is a deprecated function and will be removed in a future version 
Python :: tribonacci sequence python 
Python :: df to np array 
Python :: pass user to serializer django rest framework 
Python :: python program to multiplies all the items in a list using function 
Python :: char list 
Python :: python select random subset from numpy array 
Python :: how to wait until pressing button in tkinter 
Python :: new event loop asyncio 
Python :: print progress without next line python 
Python :: combine 2 dataframes based on equal values in columns 
Python :: python string exclude non alphabetical characters 
Python :: django session expire time 
Python :: how to download a file in python using idm 
Python :: button in flask 
Python :: django get user model funciton 
Python :: make column nullable django 
Python :: conda specify multiple channels 
Python :: append to csv python 
Python :: check pip installed packages inside virtualenv 
Python :: array search with regex python 
Python :: unpack tuple python 
Python :: how to read a .exe file in python 
Python :: sqlalchemy if a value in list of values 
Python :: how to get width of an object in pyqt5 
Python :: how to create your own programming language in python 
Python :: django staff required 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =