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

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
主站蜘蛛池模板: 祁东县| 海宁市| 彩票| 清新县| 泸定县| 石河子市| 宣城市| 高青县| 文成县| 沁水县| 青田县| 新乡县| 罗定市| 双牌县| 西平县| 沙洋县| 威宁| 石景山区| 平安县| 北碚区| 牙克石市| 庄河市| 盐山县| 宁夏| 定陶县| 怀柔区| 麟游县| 高安市| 蒲城县| 铁岭县| 泸溪县| 淅川县| 宜兰县| 德兴市| 吴川市| 尼木县| 虎林市| 凤山县| 噶尔县| 怀仁县| 抚松县|