k2s Posted April 18, 2014 Report Posted April 18, 2014 S#d^ brackets tapithey motham correct cheppina sHa_clap4 { ki [ is lot of difference
k2s Posted April 18, 2014 Report Posted April 18, 2014 >>> t = 12345, 54321, 'hello!'>>> t[0]12345>>> t(12345, 54321, 'hello!')>>> # Tuples may be nested:... u = t, (1, 2, 3, 4, 5)>>> u ??????
k2s Posted April 18, 2014 Report Posted April 18, 2014 >>> for i in reversed(xrange(1,10,2)):... print i ?????????
Srinidhi Posted April 18, 2014 Report Posted April 18, 2014 >>> d = {'apples': 1, 'oranges': 3, 'pears': 2}>>> ud = {'pears': 4, 'grapes': 5, 'lemons': 6}>>> d.update(ud)>>> d ????????? {'grapes': 5, 'lemons':6, 'apples': 1, 'oranges': 3, 'pears': 4}
Srinidhi Posted April 18, 2014 Report Posted April 18, 2014 >>> t = 12345, 54321, 'hello!'>>> t[0]12345>>> t(12345, 54321, 'hello!')>>> # Tuples may be nested:... u = t, (1, 2, 3, 4, 5)>>> u ?????? ((12345,54321,'hello!'),(1,2,3,4,5))
k2s Posted April 18, 2014 Report Posted April 18, 2014 {'grapes': 5, 'lemons':6, 'apples': 1, 'oranges': 3, 'pears': 4} exam aa
k2s Posted April 18, 2014 Report Posted April 18, 2014 ((12345,54321,'hello!'),(1,2,3,4,5)) dont search the search..if u search the search......search will search u,,,,, u should not search.......... u shud re-search
Srinidhi Posted April 18, 2014 Report Posted April 18, 2014 dont search the search..if u search the search......search will search u,,,,, ur should not search.......... u shud re-search i learnt python long back you know
k2s Posted April 18, 2014 Report Posted April 18, 2014 >>>squares = [x**2 for x in range(10)] >>>squares ??????
k2s Posted April 18, 2014 Report Posted April 18, 2014 >>> [[row[i] for row in matrix] for i in range(4)] ??????????
Srinidhi Posted April 18, 2014 Report Posted April 18, 2014 >>>squares = [x**2 for x in range(10)] >>>squares ?????? [0,1,4,9,16,25,36,49,64,81]
Recommended Posts