How to design a Block Design

Hi I’m new to psychopy. Can someone create or help me with the following task: Participants can either see different Pictures of houses or different pictures of faces, each for one second. This should be shown in blocks of trials. The blocks (block house / block face) are drawn by chance. Each block is presented three times.

Hi, this page Building better experiments — Workshops for PsychoPy 2023 2023 should hopefully be able to help get you started.