Course Project: IMU sensor code clarification

I just have a question about a function inside the class
What is the meaning to return False after the for loop? Would that cause image always get the False value?

Should I change it to


Hi @youngyangcs,

No, please don’t change it. The code blocks work differently, and the difference is important.

The original code block will loop until it finds a “truthy” value in the collection and will only return false if it doesn’t eventually. But your proposed code will return false if the first value in the collection is not “truthy”.