A simple class utility package
Project description
VickClass - Bank_Account Utility
VickClass is a simple Python package that provides a basic simulation of a bank account. It allows users to deposit, withdraw, and check balance, making it great for beginner-level understanding of object-oriented programming in Python.
📦 Installation
Install directly from PyPI:
pip install VickClass
🧠 Features
- Deposit money
- Withdraw money (with insufficient balance check)
- Display current balance
🧪 Usage Example
from vicksclass.vicks import Bank_Account
# Create an account with an optional initial balance
account = Bank_Account(balance=1000)
# Deposit money
account.deposit(500)
# Withdraw money
account.withdraw(200)
# Display balance
account.display()
📁 Class Reference
Bank_Account(balance=0)
Initializes the account with a balance. Default is 0.
.deposit(amount)
Adds the specified amount to the balance.
.withdraw(amount)
Subtracts the specified amount if sufficient balance is available. Otherwise, prints a warning.
.display()
Prints the current available balance.
🧑💻 Author
Vicky Kumar Email: imvickykumar999@gmail.com
🪪 License
This project is licensed under the MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vickclass-0.0.1.tar.gz.
File metadata
- Download URL: vickclass-0.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d816dbdce93e2b42d79a4d20080bc00c2e72c21a869ca790a8664ae30ba9360
|
|
| MD5 |
fc3359853c9ce8c456a8f5b086f01a74
|
|
| BLAKE2b-256 |
cded59d22cf2b6a8a34e491bde3ed495822153b9012899b1a4805b036444250c
|
File details
Details for the file vickclass-0.0.1-py3-none-any.whl.
File metadata
- Download URL: vickclass-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1a910b17d83c2e04560fa4bf4f0030a607c04c04143225262b5ba7457b3733a
|
|
| MD5 |
5dfe07e770564013cc1611165711df09
|
|
| BLAKE2b-256 |
39ac318db68550b3cf1b724b3e41734dcc339bac6a9b34afd645930a06b3c293
|