About 4,260,000 results
Open links in new tab
  1. How to make a Python program wait? - GeeksforGeeks

    Apr 17, 2025 · How to make a Python program wait? The goal is to make a Python program pause or wait for a specified amount of time during its execution. For example, you might want to print a message, but only after a 3-second delay.

  2. python - How do I make a time delay? - Stack Overflow

    If you would like to put a time delay in a Python script: Use time.sleep or Event().wait like this:

  3. Python sleep(): How to Add Time Delays to Your Code

    In this tutorial, you'll learn how to add time delays to your Python programs. You'll use decorators and the built-in time module to add Python sleep() calls to your code. Then, you'll discover how time delays work with threads, asynchronous functions, and graphical user interfaces.

  4. How to add time delay in Python? - GeeksforGeeks

    Apr 7, 2023 · In order to add time delay in our program code, we use the sleep () function from the time module. This is the in-built module in Python we don’t need to install externally. Time delay means we are adding delay during the execution time in our program code.

  5. Python’s time.sleep() – Pause, Stop, Wait or Sleep your Python Code

    A look into Python's time.sleep() function - by letting you pause, wait, sleep, or stop your Code. We look at the syntax, an example and the accuracy.

  6. How to Wait for a Specific Time in Python? - AskPython

    May 18, 2020 · One possible approach to make a program wait for a specific time in Python is using the time module. We can use time.sleep(n) to wait for n seconds. Of course, we can make n to be decimal to be more precise with our interval! Here is a simple example, which schedules two function calls between 3 seconds within each other. return 2 * a. return a * a

  7. How to Use wait() Function in Python? - Python Guides

    Jan 6, 2025 · Learn how to use the `wait()` function in Python with threading or event handling to pause execution. This guide covers syntax, examples, and applications.

  8. Python Sleep Methods | How to Make Code Pause or Wait

    Aug 20, 2024 · To pause or delay execution in Python, you can use the sleep() function from Python’s time module: time.sleep(5). This function makes Python wait for a specified number of seconds. Here’s a simple example: # (After a 5 second delay, the program continues...)

  9. The Python Sleep Function – How To Make Python Wait A Few …

    Sep 6, 2024 · Here‘s a reference guide to mastering sleep () and complementary concurrency constructs for wrangling async processes, avoiding race conditions, and taming parallel execution flow in your Python programs. The sleep () function …

  10. Make Python Program Wait - Stack Overflow

    Mar 18, 2013 · Use the time library and use the command time.sleep() to make it wait. It's more efficient when choosing to extract it from the time library and then use just sleep() For Example: import time print('hi') time.sleep(0.2) print('hello')

  11. Some results have been removed
Refresh