J
J
Jmar42018-02-18 14:53:15
Python
Jmar4, 2018-02-18 14:53:15

What does this syntax form mean in python?

I saw a[a[a[i]]]==i on forces, what does it mean?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Shubin, 2018-02-18
@idegree

Nothing special:

>>> a = [0]
>>> i = 0
>>> a[a[a[i]]]==i
True

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question