Skip to content

Hamidkarimi-h/CountDownTimer-Basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

📄 README.md

# ⏳ Simple Countdown Timer (Python CLI)

This is a simple command-line countdown timer written in Python.  
The user can input minutes and seconds, and the timer counts down until it reaches zero.

---

## 🧰 Features

- Set custom countdown time (minutes and seconds)
- Clean, single-line terminal display
- Beep sound notification when the timer ends
- Lightweight and easy to use (no external libraries)

---

## 🖥️ Usage

### ✅ Run the script:

```bash
python timer.py

⌨️ Then enter the countdown time when prompted:

Enter minutes: 1
Enter seconds: 30

🔔 Alert

When the timer reaches zero, your system will make a beep sound using:

print("\a")

If your terminal or OS doesn't support this, you can modify play_alert() to use sound libraries like playsound.


📁 .gitignore (recommended)

Make sure to ignore virtual environments and Python cache files:

__pycache__/
*.pyc
*.pyo
*.log
venv/
.env/
.DS_Store

✅ Requirements

  • Python 3.x
  • Works on Windows, macOS, Linux (standard terminal)

No external libraries needed.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages