Skip to content

resolve issue #47#90

Open
vineet8588 wants to merge 1 commit intopclubuiet:masterfrom
vineet8588:Python-calculator
Open

resolve issue #47#90
vineet8588 wants to merge 1 commit intopclubuiet:masterfrom
vineet8588:Python-calculator

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