If I initialize a variable and just give the name of the variable without 'print' in interactive mode then it value will be printed, for example
>>>a=10
>>>a
10
>>>
But if I do this in a script, neither the value gets printed nor any error is generated, for example consider the below code in a script example.py
a=10
a
If I execute this script a blank line gets printed and not the value. Why there is a difference in interactive mode and script mode output?