In [1]:
'Hello world!'
Out[1]:
In [3]:
t = 'Hello, world!'
In [4]:
t
Out[4]:
In [5]:
print t
In [6]:
6**4
Out[6]:
In [7]:
100/12
Out[7]:
In [8]:
100./12
Out[8]:
In [9]:
round(100./12, 3)
Out[9]:
In [10]:
from math import factorial
In [11]:
factorial(3)
Out[11]:
In [13]:
factorial(10) * 0.5
Out[13]:
text
In [14]:
! echo 'hello, world!'
In [15]:
! echo $t
In [18]:
%%bash
ls
In [19]:
%lsmagic
Out[19]:
In [22]:
%pylab inline
In [25]:
y = range(11)
In [26]:
y
Out[26]:
In [27]:
plot(y)
Out[27]: