{"id":25058372,"url":"https://github.com/nurulashraf/python-simple-calculator","last_synced_at":"2025-03-31T10:14:35.786Z","repository":{"id":274277226,"uuid":"922437327","full_name":"nurulashraf/python-simple-calculator","owner":"nurulashraf","description":"A simple Python-based calculator program with a user-friendly menu. Supports addition, subtraction, multiplication, and division with error handling for invalid inputs and division by zero. Ideal for beginners to learn basic programming concepts and error handling.","archived":false,"fork":false,"pushed_at":"2025-02-03T07:32:48.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T09:54:53.272Z","etag":null,"topics":["calculator","error-handling","learning-python","open-source","python","python-basics","simple-project"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nurulashraf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-26T07:45:47.000Z","updated_at":"2025-02-03T07:32:52.000Z","dependencies_parsed_at":"2025-01-26T08:38:06.324Z","dependency_job_id":null,"html_url":"https://github.com/nurulashraf/python-simple-calculator","commit_stats":null,"previous_names":["nurulashraf/python-simple-calculator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurulashraf%2Fpython-simple-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurulashraf%2Fpython-simple-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurulashraf%2Fpython-simple-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurulashraf%2Fpython-simple-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nurulashraf","download_url":"https://codeload.github.com/nurulashraf/python-simple-calculator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246450475,"owners_count":20779421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calculator","error-handling","learning-python","open-source","python","python-basics","simple-project"],"created_at":"2025-02-06T14:32:11.800Z","updated_at":"2025-03-31T10:14:35.751Z","avatar_url":"https://github.com/nurulashraf.png","language":"Python","readme":"\n# Python Simple Calculator\n\nA simple Python-based calculator program with a user-friendly menu. This program supports basic arithmetic operations such as addition, subtraction, multiplication, and division. It includes error handling for invalid inputs and division by zero, making it a great tool for beginners to learn Python basics.\n\n## Features\n- Addition, Subtraction, Multiplication, and Division operations.\n- User-friendly menu-driven interface.\n- Error handling for:\n  - Non-numeric inputs.\n  - Division by zero.\n  - Invalid menu choices.\n- Easy-to-understand code with comments.\n\n## Requirements\n- Python 3.x (Tested on Python 3.8 and above)\n\n## How to Use\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/nurulashraf/python-simple-calculator.git\n   ```\n2. Navigate to the project directory:\n   ```bash\n   cd python-simple-calculator\n   ```\n3. Run the program:\n   ```bash\n   python src/calculator.py\n   ```\n\n4. Follow the on-screen instructions to perform calculations.\n\n## Example Usage\n```\nSelect an operation:\n1. Addition\n2. Subtraction\n3. Multiplication\n4. Division\n5. Exit\n\nEnter your choice (1-5): 1\nEnter the first number: 5\nEnter the second number: 3\nThe result is: 8.0\n```\n\n## Repository Structure\n```\npython-simple-calculator/\n├── README.md          # Project description and instructions\n├── src/               # Source code folder\n│   └── calculator.py  # Main calculator script\n└── requirements.txt   # Dependencies\n```\n\n## License\nThis project is licensed under the [MIT License](LICENSE). You are free to use, modify, and distribute it as per the terms of the license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnurulashraf%2Fpython-simple-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnurulashraf%2Fpython-simple-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnurulashraf%2Fpython-simple-calculator/lists"}