官术网_书友最值得收藏!

Dereferencing an element

We can also dereference the elements of a tuple, so element number 2 again would be the third element, because we start counting from 0, and that will give me back the number 6 in the following screenshot:

y = (4, 5, 6)
y[2]

The output to the above code is as follows:

6
主站蜘蛛池模板: 萨嘎县| 根河市| 五寨县| 平邑县| 浦北县| 渝北区| 班戈县| 铜川市| 孝昌县| 沂南县| 香河县| 藁城市| 敦煌市| 横山县| 凤山市| 九寨沟县| 安新县| 岳西县| 太湖县| 白水县| 正安县| 阳城县| 冷水江市| 襄樊市| 墨江| 璧山县| 海兴县| 龙门县| 盐山县| 澄迈县| 河北区| 福安市| 昆山市| 兴业县| 石渠县| 平乡县| 泰兴市| 凭祥市| 黑水县| 达拉特旗| 睢宁县|