Selected_objects loop problem

Hello! I have to set show_double_sided property to FALSE for all objects in my scene. I’ve written a small script, but it works strange. Please, tell me, where I’ve made the mistake. Thank you!

import bpy


object

for object in bpy.context.selected_objects: object.data.show_double_sided = 0

Ehhh… Why the decision always comes, when the thread is already started)))) My script worked incorrectly because I’ve selected all objects, including cameras, which don’t have show_double_sided parameter))