Your sample of
a
is not a valid tuple in a tuple(missing ,
seperators), printing a[2]
would not give the results shown.a = ((1.425, 4.82145395112958, 0.0656498375731458), (1.39716316090366, 7.2, 0.102480129941483), (7.425, 4.82145395112958, 0.0656498375731458), (7.39716316090366, 7.2, 0.102480129941483), (7.425, -0.928546048870416, 0.0656498375731458), (7.39716316090366, 0.95, 0.102480129941483), (1.425, -0.928546048870416, 0.0656498375731458), (1.39716316090366, 0.95, 0.102480129941483)) print(a[0][2])would give
Output:0.0656498375731458
buy the first [0] would get the first tuple and the second [2] would get its 3rd item.