|
1 | | -# Age Classifier |
| 1 | +# Age Classifier | ردهبندی سنی |
2 | 2 |
|
3 | | -A simple Python project to classify users into age groups based on their input age. |
| 3 | +Classifies users into age groups based on their input. |
| 4 | +دستهبندی افراد براساس سن ورودی کاربر. |
4 | 5 |
|
5 | 6 | --- |
6 | 7 |
|
7 | | -## 🚀 Project Description |
| 8 | +## Installation | نصب |
| 9 | +```bash |
| 10 | +pip install -r requirements.txt |
8 | 11 |
|
9 | | -This project takes the user's age as input and classifies them into standard age categories (e.g. child, teenager, adult, senior). |
10 | | -It demonstrates input validation, conditional statements, and output formatting in Python. |
| 12 | +Usage | نحوه استفاده |
11 | 13 |
|
12 | | ---- |
13 | | - |
14 | | -## 📦 Features |
15 | | - |
16 | | -- Reads user input (age) |
17 | | -- Classifies age group based on defined boundaries |
18 | | -- Handles invalid input cases |
19 | | -- Easy-to-modify and expand for new categories |
20 | | - |
21 | | ---- |
22 | | - |
23 | | -## 🛠️ Technologies Used |
24 | | - |
25 | | -- Python (basic inputs, conditionals) |
26 | | -- Command-line interface |
27 | | - |
28 | | ---- |
| 14 | +python age_classifier.py |
29 | 15 |
|
30 | | -## ▶️ How to Run |
| 16 | +Example | نمونه خروجی |
31 | 17 |
|
32 | | -1. Make sure you have Python installed. |
33 | | -2. Go to the project directory: |
34 | | - ```bash |
35 | | - cd age-classifier |
36 | | - ``` |
37 | | -3. Run the script: |
38 | | - ```bash |
39 | | - python age.py |
40 | | - ``` |
41 | | -4. Enter an age when prompted and see the result. |
| 18 | +Enter your age: 25 |
| 19 | +You belong to the 'Adult' age group. |
42 | 20 |
|
43 | | ---- |
44 | | - |
45 | | -## 💡 Example |
46 | | - |
47 | | -Please enter your age: 27 |
| 21 | +Tests | تست |
48 | 22 |
|
49 | | -You are an adult. |
| 23 | +pytest tests/ |
50 | 24 |
|
51 | 25 |
|
52 | 26 | --- |
53 | | - |
54 | | -## 👩💻 Author |
55 | | - |
56 | | -Parisa Mohammadzadeh |
57 | | -[GitHub](https://github.com/shahpari2kht) | [LinkedIn](https://www.linkedin.com/in/parisamohammadzadeh) |
58 | | -Email: Shahpari2kht@gmail.com |
59 | | - |
60 | | ---- |
61 | | - |
62 | | -### پروژه دستهبندی سنی |
63 | | - |
64 | | -ساده برای تمرینهای پایتون. ورودی: سن کاربر، خروجی: نمایش گروه سنی. |
0 commit comments