When a function has print statement and return some value, For example,
def func(n):
print('want to ignore')
return 2*n
I want to store the return value without executing print phrase. Like,
>>> a = ???(func(5))
>>> a
10
Is it possible? If so, please help me! Thanks.