A simple Python script that displays "Hello World!" every minute and automatically terminates after 72 hours of runtime.
- Displays a message every minute
- Clears the console between messages
- Automatically terminates after 72 hours to prevent indefinite running
- Python 3.x
Simply execute the Python script:
python main.py
The script uses Python's threading module to set up a timer that will terminate the program after 72 hours. It then enters an infinite loop that:
- Prints "Hello World!" to the console
- Waits for 60 seconds
- Clears the console screen (works on Windows systems)
Note: If you're using a non-Windows system, you may need to replace os.system('cls')
with os.system('clear')
.