بازم نمیشه
اینبار این ارور را میده
Traceback (most recent call last):
File "runner.py", line 125, in compilecode
File "python", line 8
total.append(args[i][j])
^
IndentationError: expected an indented block
2013/5/7 nima rafiee <[email protected]>
> 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
>
>
--
MerSadKhaN
_______________________________________________
Py mailing list
[email protected]
http://isfahanlug.org/mailman/listinfo/py_isfahanlug.org