2024-06-14 17:27:26 +02:00
|
|
|
print(tuple())
|
2024-06-20 16:05:15 +02:00
|
|
|
print((1,))
|
|
|
|
print((1, 2))
|
|
|
|
print((1, 2,))
|
2024-06-12 11:46:11 +02:00
|
|
|
print((1, 2, 3))
|
|
|
|
print((1, '2', 3))
|
|
|
|
print((1, (2, 3), 4))
|
|
|
|
print((1, (2, (3, 4)), 5))
|
|
|
|
let a := (1, 2, 3)
|
2024-07-18 14:20:38 +02:00
|
|
|
print(a[2])
|
|
|
|
print(a?.2)
|
|
|
|
print(a?.8)
|
|
|
|
print((1, (2, (3, 4)), 5)[2][2][2])
|
|
|
|
print((1, (2, (3, 4)), 5)?.2?.2?.2)
|
|
|
|
print((1, (2, (3, 4)), 5)?.[2]?.[2]?.[2])
|
|
|
|
print((1, (2, (3, 4)), 5)?.4?.7?.2)
|
|
|
|
print((1, (2, (3, 4)), 5)?.[4]?.[7]?.[2])
|
|
|
|
print((1, (2, (3, 4, ), ), 5, ).2.2.2)
|
|
|
|
print((1, (2, (3, 4)), 5)[2][2][2] + 1)
|