-
-
Save IndhumathyChelliah/55f447d5ea28df38553a33bf5f251512 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def calc(a,b): | |
sum=a+b | |
dif=a-b | |
mul=a*b | |
div=a/b | |
return sum,dif,mul,div | |
print (calc(5,4)) #Output: (9, 1, 20, 1.25) | |
result=calc(5,4) | |
sum,dif,mul,div=result | |
print ("Addition :", sum) #Output:Addition : 9 | |
print ("Subtraction: ", dif) #Output:Subtraction: 1 | |
print ("Multiplication :", mul) #Output:Multiplication : 20 | |
print ("Division: ",div) #Output:Division: 1.25 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment