You print the return value of the print that is returned from function.
def fun(x, y):
''' takes an orderd list and an another number
as input'''
if y in x:
return print("it's in the list")
else:
return print("number is not in the list")
fun([2,3,4,5], 5)