Secondarily, should the fan be outside or inside the window?

Asking for a friend. (Me, help. I can’t remember physics, it’s too goddamn hot)