Skip to content

Lines 29–39 (Function divide) Issue: No handling for division by zero. #18

Description

@JKMO19

def divide(a: float, b: float) -> float:

Issue: No handling for division by zero.
Suggestion: Add a check and raise ValueError if b == 0.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions