Skip to content

fix: correct operation input type from int to str#23

Open
smrnvdn wants to merge 5 commits intoruslansenatorov:devfrom
smrnvdn:dev
Open

fix: correct operation input type from int to str#23
smrnvdn wants to merge 5 commits intoruslansenatorov:devfrom
smrnvdn:dev

Conversation

@smrnvdn
Copy link
Copy Markdown

@smrnvdn smrnvdn commented Aug 29, 2025

Changes
-changed input operation from int to str
-added documentation for module and function
-changed return type of the calculator function to none

closes #22

no_1 = int(input("enter your first number"))
operation = int(input("enter arithmetic operation like +,-,*,/"))
operation = input("enter arithmetic operation like +,-,*,/")
no_2 = int(input("enter your second number"))
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review

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.

Bug: Type Mismatch in Arithmetic Operation Comparison

1 participant