fork download
  1. data = [('0', '0'), ('0.001', '0.108'), ('0.002', '0.105'), ('0.003', '0.109'), ('0.004', '0.105'), ('0.005', '0.103'), ('0.006', '0.107'), ('0.007', '0.111'), ('0.008', '0.110'), ('0.009', '0.108'), ('0.01', '0.109')]
  2. data_toFloat = [tuple(float(x) for x in d ) for d in data]
  3. data_gte = [d for d in data_toFloat if d[1] >= 0.108]
  4. print(data_toFloat)
  5. print(data_gte)
Success #stdin #stdout 0.01s 27712KB
stdin
Standard input is empty
stdout
[(0.0, 0.0), (0.001, 0.108), (0.002, 0.105), (0.003, 0.109), (0.004, 0.105), (0.005, 0.103), (0.006, 0.107), (0.007, 0.111), (0.008, 0.11), (0.009, 0.108), (0.01, 0.109)]
[(0.001, 0.108), (0.003, 0.109), (0.007, 0.111), (0.008, 0.11), (0.009, 0.108), (0.01, 0.109)]