what's the intended purpose of the
something like this would work:
break
there - it doesn't make sense to have break there (nor it is correct syntax as the error states). break is intended to be in the body of a loop, in order to break out of it before it 'normal' end.something like this would work:
for data in data_iter: d = data.data[0] if some_condition_is_True: break
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs