I used this link to help me do this mastery: https:/
It is also useful to read chapter 3 of the book “Think Python, How to Think Like a Computer Scientist”,
You can see an example of this in my #WSQ08. Here’s the code showing where i called the function that i defined:
def osuma (num1,num2): #function osuma
suma=num1+num2
return suma
def oresta (num1,num2): #function oresta
resta=num1-num2
return resta
def omulti (num1,num2): #function omulti
multi=num1*num2
return multi
def odiv (num1,num2): #function odiv
div=num1/num2
return div
def orem(num1,num2): #function orem
rem= num1%num2
return rem
num1 = int(input(“Give me a number: “))
num2 = int(input (“Give me another number: “))
#Here i called every function i defined in order for the variable to take the functions value
su=osuma(num1,num2) #Here i called osuma function i defined in order for the variable to take the function’s value
res=oresta(num1,num2) #Here i called oresta function i defined in order for the variable to take the function’s value
mult=omulti(num1,num2) #Here i called omulti function i defined in order for the variable to take the function’s value
di=odiv(num1,num2) #Here i called odiv function i defined in order for the variable to take the function’s value
re=orem(num1,num2) #Here i called orem function i defined in order for the variable to take the function’s value
print (“The sum of your numbers is”, su)
print (“The difference of your numbers is”, res)
print (“The product of your numbers is”, mult)
print (“The division of your numbers is”, int(di))
print(“The remainder of the division of your numbers is”, int(re))
#mastery11 Calling python functions by Gilberto Rogel García is licensed under a Creative Commons Attribution 4.0 International License.