My app.py is
print("Start")
def increment(x):
print("Increment")
return x + 1
print("Finish")
When I run it in terminal
user$ python
Python 3.7.2 (default, May 23 2020, 08:27:09)
[Clang 10.0.0 (clang-1000.10.44.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from app import increment
Start
Finish
>>> increment(5)
Increment
6
>>>
Why is Start and Finish printed even though I'm only importing function 'increment'? Thanks!