Skip to content

fix: add input validation for calculator.py#14

Open
sixian430-20 wants to merge 1 commit into
Aishwarya1025:mainfrom
sixian430-20:fix/input-validation
Open

fix: add input validation for calculator.py#14
sixian430-20 wants to merge 1 commit into
Aishwarya1025:mainfrom
sixian430-20:fix/input-validation

Conversation

@sixian430-20

Copy link
Copy Markdown

Added input validation for the calculator.py script:

  • Validate that user inputs are valid numbers (prevents ValueError crashes)
  • Add division-by-zero check with retry prompts
  • Improve user experience with friendly error messages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant