Title 1
In [1]:
Title 2
In [3]:
Title2
In [4]:
print 'hello'
In [5]:
a=1
In [6]:
print a
In [7]:
a+2
Out[7]:
In [8]:
b=4.34
In [9]:
print b
In [10]:
print a+b
In [11]:
c='wow'
In [12]:
print c
In [13]:
a,b,c
Out[13]:
In [14]:
for i in range(0,10,1):
print i
In [15]:
i=0 while i<10:
#print i
In [16]:
i=0 while i<10:
print i
In [17]:
i=0
while i<10:
print i
i=i+1
In [20]:
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 [22]:
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 [23]:
alist=[1,2,3]
In [24]:
alist[0]
Out[24]:
In [25]:
alist[1]
Out[25]:
In [26]:
print alist
In [27]:
dico = {'key1':1, 'key2':3}
In [29]:
dico
Out[29]:
In [30]:
dico['key1']
Out[30]:
In [31]:
print 'hello' #this is a print
In [ ]: