Skip to content
Permalink
Browse files
Comments added
  • Loading branch information
plurab committed Nov 29, 2018
1 parent 7fde1fb commit c44dc30b1c68fc7784868b451876fb92095ee90d
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1,3 +1,4 @@
'''allows user to do basic calculations'''
def calculator(sentence):
num1=input("num1:")
num2=input("num2:")
@@ -11,4 +12,4 @@ def calculator(sentence):
elif addorwhat=='division':
print (float(num1)/float(num2))
elif addorwhat=="exponentiation":
print (float(num1)**float(num2))
print (float(num1)**float(num2))

0 comments on commit c44dc30

Please sign in to comment.