Writing specific values from list

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


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.

Popular posts from this blog

Stripe::AuthenticationError No API key provided. Set your API key using “Stripe.api_key = ”

CRM reporting Extension - SSRS instance is blank

Keycloak server returning user_not_found error when user is already imported with LDAP