Answer:
Following are method definition to this question:
def m(x): #defining a method and pass an integer parameter
if x%3 == 0 and x%5 == 0: #defining condition that value is divisible by 3 and 5
return "Small" #return value
elif x%5 == 0: # defining condition if value is divisible by 5 only
return "multiple of 5" #return value
elif x%3 == 0: # defining condition if value is divisible by 3 only
return "multiple of 3" # return value
else: # else block
return "Orange" # return value
z=m(15) #call the method and hold return value in variable x
print(z) #print value of variable x
Output:
Small
Explanation:
In the given method definition a method "m" is defined, that passes the value in its parameter, that is x, inside the method, a conditional statement is used, that check multiple conditions, which are described as follows: