I would like to learn how to print only the return value of a function.
I.E.
def dude():
print("Hello")
return 1
I would like to print only the return value and not the all of the functions process. I would like to use the function and be able to use a different command to get just the values of return,without suppresing print.As print(dude())
prints Hello and the return value.