In [2]:
print "hello"
In [3]:
a = 1
In [4]:
print a
In [5]:
a + 2
Out[5]:
In [6]:
a + 4
Out[6]:
In [7]:
a + 7
Out[7]:
In [8]:
a + 3 - 2
Out[8]:
In [9]:
b=4.3
In [34]:
c="hello"
In [11]:
c="hello"
In [12]:
a,b,c
Out[12]:
In [24]:
for i in range (0,10,1):
print i
In [30]:
i=0
while i < 10:
print i
i=i+1
In [33]:
for i in range (0,10,1):
if i ==3:
print "I have 3"
elif i < 3:
print "Ihave many"
else :
print "I have few"
In [35]:
alist =[1,2,3]
In [36]:
alist[1]
Out[36]:
In [37]:
atuple = (1,2,3)
In [38]:
atuple[1]
Out[38]:
In [ ]:
In [ ]:
In [ ]: