Question: Call the function at least three times with different values # define function def multiplyfour ( q , r ) : Returns

Call the function at least three times with different values
# define function
def multiplyfour(q,r):
"""Returns the numerical value of q*4+r"""
return q*4+r
def main():
"""This is whereyou define your variables and do input and output"""
anum=int(input("Enter a number:"))
bnum=int(input("Enter another number:"))
print("Your number multiplied four plus the second number is", multiplyfour(anum,bnum))
# call main function-should be the last statement in your file
main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!