I am still a bit confused in it, can I get some more explanation?
Still not very clear about the difference between output of an expression and print statement in python
I am confused about how is it any different?
You write
X=1+2
X
And then you write
print (1+2)
Both will display 3. I want to understand how is the process different?
Hey @Nitin-Bhattacharyya-2319140631658033, yes if you see the output, both will display 3. The mentor is saying that, if you will check if X==print(1+2) it will return False. Because print(1+2), itself prints 3 but returns None. I think it will be cleared better with the ss i am attaching.
Hope this resolved your doubt.