Define a function ‘Subtract Number (x, y)’ which takes in two numbers and returns the different of the two.
Define a function ‘Subtract Number (x, y)’ which takes in two numbers and returns the different of the two.
6 views
1 Answers
# Python function which returns the difference of two numbers
> > > a = input (“Enter the first number :”)
> > > b = input (“Enter the second number :”) def Subtract Number (a, b):
> > > print “Subtraction = %d – %d” % (a, b)
> > > return a – b
6 views
Answered