Skip to content

Bug: divide() crashes on division by zero (retry) #2

Description

@IYENTeam

Calling divide(10, 0) raises a ZeroDivisionError. We need a guard to handle zero divisor gracefully.

Affected file: src/calculator.py function divide.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions