Writing specific values from list

Multi tool use


Writing specific values from list
I come with a short question. I've wrote this part of code, where from an array of my data, values are saved when the condition below is fulfilled. Right now I'd like to narrow a little bit this condition and write a function, which will save only data above some value.
For e.g. res >= 100.0
.
res >= 100.0
res = [j for i, j, k in zip(lst, lst[1:], lst[2:]) if i < j and j > k]
with open("S:DocPythonDataCodesBxHPF.txt", 'w') as Peak1:
Peak1.write(str(res))
Peak1.close()
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.