def eval(): l = input('Enter L:') v = input('Enter V:') t = input('Enter t:') if l==None: v=int(v) t=int(t) res = v*t print(res) elif v==None: res = +l/+t print(res) elif t==None: res = +l/+v print(res) How to display the result of res ? return and print do not return a value to the console.
How can I output the same result res without using the console and input ? If the parameters l , v , t defined immediately in the code:
def eval(l,v,t): But how to calculate l, v, t without specifying the value (None) when calling this function eval(4, ,7) ?