Title 1 title 2
In [3]:
print 'hello'
In [4]:
a = 1
print a
In [5]:
a + 2
Out[5]:
In [6]:
b = 3.14
print b
In [8]:
b + a
Out[8]:
In [9]:
print C
In [10]:
c = 'mon' print c
In [11]:
c = 'mon'
print c
In [ ]:
In [12]:
c + a
In [13]:
a, b, c
Out[13]:
In [14]:
for a in ragne (0, 10 1):
print i
In [15]:
for i in range(0, 10,1):
print i
In [16]:
for i in range (0,100,5):
print i
In [17]:
for i in range (1, 10, 1):
print i
In [18]:
i = 0
while i < 10:
print i
i = i + 1
In [19]:
for i in range(0,10,1):
if i == 3:
print 'we have 3'
elif i>3:
print 'we have many'
else
print 'we have few'
In [20]:
for i in range (0,10,1):
if i == 3:
print 'we have 3'
if i>3:
print 'we have many'
if i<3:
print 'we have few'
In [21]:
[1, 2, 3]
Out[21]:
In [22]:
alist = [1,2,3]
In [23]:
alist[1]
Out[23]:
In [24]:
atuple = (1, 2, 3)
In [25]:
dico = {'key1': 1, 'key2': 3}
In [26]:
dico
Out[26]:
In [27]:
dico['key1']
Out[27]:
In [ ]: