Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python interpreter after running a python file

| foo.py |
----------
testvar = 10

def bar(bing):
  return bing*3

--------



$ python -i foo.py
>>> testvar 
10
>>> bar(6)
18
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #interpreter #running #python #file
ADD COMMENT
Topic
Name
5+2 =