baraye halghe for dovomie : faramoush shode ;)
On Tue, May 7, 2013 at 10:00 PM, MersadKhan Mostaghimi <[email protected] > wrote: > n = [[1, 2, 3], [4, 5, 6, 7, 8, 9],[10, 11]] > # Add your function here > total = [] > def flatten(*args): > > for i in range(0,len(args)): > for j in range(0,len(args[i])) > total.append(args[i][j]) > return total > print flatten(n) > > من این کد را نوشتم ولی جواب نمیده ؟چرا؟ > -- > MerSadKhaN > > _______________________________________________ > Py mailing list > [email protected] > http://isfahanlug.org/mailman/listinfo/py_isfahanlug.org > >
_______________________________________________ Py mailing list [email protected] http://isfahanlug.org/mailman/listinfo/py_isfahanlug.org
