Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Last active March 3, 2021 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/55f447d5ea28df38553a33bf5f251512 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/55f447d5ea28df38553a33bf5f251512 to your computer and use it in GitHub Desktop.
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