agentsclimarketplace

Console banking application with input validation

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/console-banking-application-with-input-validation

AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill console-banking-application-with-input-validation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its author says it does

Copied from the file, not written here

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

SKILL.md

2.0 KB, as published. Nobody here has run it

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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.