Hey, I got an array with float values from 0 - 120. How can I find the first element over 100 and which element it is?
Jump to Post
for f in arr: if f > 100: return f
Is that what you wanted?
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.