You asked
How does a 24mm f 1 8 compare with a 35mm f 1 8 for low light portraits on a sony a6400?
The site doesn't list a 24mm f/1.8 or a 35mm f/1.8 for the Sony a6400, so I can't compare those two exact lenses on it. The camera's APS-C sensor gives a 1.5 crop factor, though, so the framing difference is clear.
Both lenses have the same f/1.8 aperture, so they gather about the same light in dim rooms. The difference is the view. A 24mm frames like about 36mm on full frame, a wide-standard view that puts the camera close to your subject. A 35mm frames like about 52mm, which is closer to the classic portrait range. The portraits guide notes that very wide lenses close up exaggerate whatever is nearest the camera, while a longer view flatters faces. It also suggests a 35mm for environmental portraits that show where someone is, and for groups. So for portraits, the 35mm is the better choice, and the 24mm suits scenes where the setting matters more than the face.
Since the a6400 has no in-body stabilisation, a fast lens matters more in low light than a steadying system would. If you want a fast zoom on this camera instead, the Sigma 28-45mm f/1.8 DG DN Art gives roughly 42-68mm equivalent, which covers the portrait range with one lens. For more reach, the Sigma 24-70mm f/2.8 DG DN Art is a slower but more flexible option. The lenses guide recommends a fast standard prime as one of your first lenses.
Written by Claude from this site's pages.
From these pages
This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.