Django python function

18 views
Skip to first unread message

hito koto

unread,
Jun 10, 2014, 8:18:45 AM6/10/14
to django...@googlegroups.com
Hello,

I don't know how can i do to change to write python function
I want to following code change to write python
function or change to write  recursive definition
>>> y = [10, 12, [13, [14, 9], 16], 7]
>>> z = copy.deepcopy(y)
>>> y
[10, 12, [13, [14, 9], 16], 7]
>>> z
[10, 12, [13, [14, 9], 16], 7]
>>> z[2][1][1]
9
>>> z[2][1][1] = 88
>>> z
[10, 12, [13, [14, 88], 16], 7]
[10, 12, [13, [14, 9], 16], 7]
>>>
Reply all
Reply to author
Forward
0 new messages