In the event that I initialized a variable and simply give the name of the variable without 'print' in the interactive mode then it worth will be printed, for instance
>>>a=10
>>>a
10
>>>
However, in the event that I do this in content, neither the value gets printed nor any blunder is created, for instance, consider the underneath code in a content example.py
a=10
a
In the event that I execute this content, a clear line gets printed and not the value. Why there is a distinction between interactive mode and script mode yield?