The answer is below.
Work Step by Step
First of all, recall that diatomic molecules are molecules in which two atoms of the same element are bonded to each other. When we assume gases are ideal, one of the assumptions is that they take up no space. While these, like all gases, take up space, we can still assume that the space taken up is minimal, making following ideal gas law a valid assumption.