(N/A) Yes,we can consider a container of irregular shape while calculating the pressure of an ideal gas.
According to the kinetic theory of gases,the pressure exerted by an ideal gas is due to the continuous collisions of gas molecules with the walls of the container.
Since the gas molecules move randomly in all directions,they strike every part of the container's surface regardless of its shape.
Pascal's law states that in a fluid at rest,the pressure at any point is the same in all directions.
Therefore,the pressure exerted by an ideal gas is uniform throughout the container and acts perpendicular to the surface at every point,irrespective of the shape of the container.