Monday, June 29, 2020

Python Class 168 (Function Calls) - Kapil

print ("*** Four function call application example ***")

def MUL_function(n1,n2):
        return (n1*n2)

def DEV_function(n1,n2):
        return (n1/n2)

def SQY1_function(n1,n2):
        return(n1*2, n2*2)

def SQY2_function(n1,n2):
        return(n1**2, n2**2)

print ("\n")
print("The multiply function call result is:",MUL_function(3,3))
print ("\n")
print("The divide function call result is:",DEV_function(10,5))
print ("\n")
print("The squre root function call result is:",SQY1_function(10,5))
print ("\n")
print("The squre root function call result is:",SQY2_function(10,5))


===============================================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Blockchain: 101 (By - Kapil Sharma)

 https://testing-mines.blogspot.com/2021/10/blockchain-101-by-kapil-sharma.html Blockchain through the following attributes: Distributed:  T...