What is the equivalent of Java .get in python
<p>I am trying to code in python, with arrays, and I need to get the value of an element. In Java I would use <code>array.get(I)</code>, but  I can't seem to find an equivalent in python.</p>

<p>In Python you would do it exactly the same as in Java: <code>array[i]</code>.</p>

<p>BTW, Your <code>get(i)</code> is for <code>ArrayList</code> not for array in java.</p>

java python