You asked
Sony fe 40mm f 2 5 g vs ttartisan af 27mm f 2 8?
The Sony FE 40mm f/2.5 G is the better lens if you have a Sony full-frame body. It's a sharp, tiny everyday prime with autofocus, and its f/2.5 opening is a little brighter than the TTArtisan's. It has no stabilisation, so it won't steady a camera for you in dim light. Its Sony E mount limits it to Sony bodies, and on APS-C it frames like 60mm with the depth of field of about f/3.8.
The TTArtisan AF 27mm f/2.8 is built for APS-C sensors. It works on Sony E, Fujifilm X and Nikon Z bodies, so it's the one to choose if you shoot Fujifilm or Nikon Z, or any APS-C camera. On APS-C it frames like 40mm, a natural standard view for street and travel. On a full-frame Sony or Nikon Z body it still works, but only in crop mode at fewer megapixels, so it's a compromise there.
If you're unsure about your sensor size, check the camera first. The focal length converter explains how the crop factor changes depth of field, which is the reason the same f-number blurs differently on each sensor. The guide's price comparison isn't on these two pages, so check each lens's "Price in France" section for current prices, which change.
Pick the Sony 40mm for full frame, and the TTArtisan 27mm for APS-C, Fujifilm or Nikon Z.
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}.