Skip to content

Bug: add function returns wrong value due to extra +1 #272

Description

@prajwaldhannur4-code

The add() function in main.py has a bug.
It returns number_a + number_b + 1 instead of number_a + number_b.
This causes incorrect results for all addition operations.
Fix: Remove the extra + 1 from the return statement.

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