In [1]:
import example1
In [2]:
example1.hi()
hello, world
In [3]:
example1.hi()
hello, world
In [4]:
import example1
In [5]:
example1.hi()
hello, world
In [6]:
reload(example1)
Out[6]:
<module 'example1' from 'example1.py'>
In [7]:
example1.hi()
goodbye cruel world
In [8]:
reload(example1)
Out[8]:
<module 'example1' from 'example1.py'>
In [11]:
example1.anti("GATACA")
Out[11]:
'CTATGT'
In [12]:
d
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-12-e29311f6f1bf> in <module>()
----> 1 d

NameError: name 'd' is not defined
In [13]:
example1.d
Out[13]:
{'A': 'T', 'C': 'G', 'G': 'C', 'T': 'A'}
In [14]:
from example1 import anti
In [15]:
anti("ATTATT")
Out[15]:
'TAATAA'
In [16]:
reload(example1)
from example1 import anti
In [17]:
from example1 import *
In [18]:
%who
anti	 d	 example1	 hi	 
In [20]:
x = [[2,0],[3,1],[-2,2],[5,3]]
In [21]:
max(x)
Out[21]:
[5, 3]
In [22]:
x.sort()
In [23]:
x
Out[23]:
[[-2, 2], [2, 0], [3, 1], [5, 3]]
In [ ]: