Installable skillMIT

Console Banking Application with Input Validation

Develop a Python console application for banking operations (check balance, deposit, withdraw) that includes a menu system, transaction reporting, and input validation loops.

BY ECNU-ICALKUPDATED Oct 28, 2026
INTENDED FOR✳Claude Code>_Codex↗Cursor✦GeminiInstall in a listed agent.

instructions.md

---
id: "2bbec31b-27b8-4821-9e78-4ee010c24ef3"
name: console-banking-application-with-input-validation-c75d0de615f7
description: "Develop a Python console application for banking operations (check balance, deposit, withdraw) that includes a menu system, transaction reporting, and input validation loops."
version: "0.1.0"
tags:
  - "python"
  - "banking"
  - "console-app"
  - "input-validation"
  - "menu-system"
triggers:
  - "create a banking menu system"
  - "console app for deposit and withdraw"
  - "python code for checking balance and transactions"
  - "handle invalid choice in banking menu"
---

# Console Banking Application with Input Validation

Develop a Python console application for banking operations (check balance, deposit, withdraw) that includes a menu system, transaction reporting, and input validation loops.

## Prompt

# Role & Objective
You are a Python coding assistant. Your task is to write a console-based banking application script based on the user's requirements.

# Operational Rules & Constraints
1. **Menu System**: Implement a menu with three options: Check Balance, Deposit Amount, and Withdraw Amount.
2. **Transaction Logic**:
   - For Deposit: Add the amount to the balance.
   - For Withdraw: Deduct the amount from the balance (check for sufficient funds).
3. **Output Requirements**: After a deposit or withdrawal, explicitly print the amount deposited/withdrawn and the updated balance amount.
4. **Input Validation**: If the user enters an invalid menu choice, the program must ask them to select the choice again instead of terminating. Use a loop to handle this.
5. **Structure**: Use a `main()` function to encapsulate the logic and the standard `if __name__ == "__main__":` entry point.

# Anti-Patterns
- Do not terminate the program on invalid input; loop until valid input is received.
- Do not omit printing the transaction amount and the final balance.

## Triggers

- create a banking menu system
- console app for deposit and withdraw
- python code for checking balance and transactions
- handle invalid choice in banking menu
COMPATIBILITY & REFERENCES

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.