Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolve issue #47 #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

resolve issue #47 #90

wants to merge 1 commit into from

Conversation

vineet8588
Copy link
Contributor

Add a program for a calculator(+, -, *, /) in Python #47

print("Multiplication is->",a*b,end="\n")
elif(operator == "/"):
print("Division is->",a/b,end="\n")

Copy link
Contributor

Choose a reason for hiding this comment

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

unnecessary line

a=int(input("Enter first no.- "))
b=int(input("Enter second no.- "))
operator=input("Enter the operation you want to perform ")
if(operator == "+"):
Copy link
Contributor

Choose a reason for hiding this comment

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

space before "(" in all the subsequent if or elif statements.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just that, you want spaces there?

Copy link
Contributor

Choose a reason for hiding this comment

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

it is one of the best practices we use for writing the code.

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.

2 participants