Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pause program python

# To delay excusion use the time library
import time

time.sleep(secs)
Comment

command prompt pause in python

# Don't use os.system("pause"), it is very slow because it needs to create
# an entire shell process. Use this instead:

import getch

def pause():
  print("Press any key to continue . . . ")
  getch.getch()
Comment

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 :: how to execute a cmd command in python 
Python :: python code to find the length of string in a list 
Python :: split list in 3 part 
Python :: python remove duplicates from a list 
Python :: numpy correlation 
Python :: how to iterate through a text file in python 
Python :: Get Key From value in dictionary 
Python :: nb_occurence in list python 
Python :: python previous answer 
Python :: python not null 
Python :: python snake game 
Python :: hypixel main ip 
Python :: python pop up box 
Python :: discord embed colors python 
Python :: how to run python code on github 
Python :: convert any base to decimal python 
Python :: python image to video 
Python :: position of legend matplotlib 
Python :: convert set to list python time complexity 
Python :: get duplicate and remove but keep last in python df 
Python :: print all of dataframe 
Python :: reset index pandas 
Python :: python numpy arrays equality 
Python :: pandas filter on range of values 
Python :: what is wsgi in python 
Python :: python remove duplicates from 2d list 
Python :: athena connector python 
Python :: generate random list of number py 
Python :: python run as service windows 
Python :: username nextcord interactions 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =