a = int(input("Enter the value of a: "))
b = int(input("Enter the value of b: "))
print(lambda a: a+1)
I am getting the below output on running the programming, any idea, how do I resolve this?
<function at 0x0000020F54DFDF70>
a = int(input("Enter the value of a: "))
b = int(input("Enter the value of b: "))
print(lambda a: a+1)
I am getting the below output on running the programming, any idea, how do I resolve this?
<function at 0x0000020F54DFDF70>
a = int(input("Enter the value of a: "))
b = int(input("Enter the value of b: "))
store your statement into z
now z behave as a function
z = lambda a: a+1
as z take one argument pass either a or b
print(z(a))
Thank you @AzharUddinSheikh