You asked
What spare battery and memory card should I buy for a nikon d3400 I m buying used?
For a used Nikon D3400, the guide's first advice is about the battery. Buying used says old batteries lose capacity, so budget for a new genuine battery with any used body. Plan on that one before you pay for the camera. The Nikon D3400 page doesn't name a battery model, so check the model number printed on the camera's own battery, or on the body, before you buy a replacement.
A spare battery is still worth having. Your first camera lists one as part of a sensible first kit, next to a decent memory card. The travel page also suggests a spare battery and a second memory card for trips, so a second card is a good idea if you'll be away from home. The guide doesn't give capacity or speed figures for cards, so choose one with enough room for the way you shoot and buy from a reputable seller.
The site doesn't list prices for batteries or memory cards, so it can't say what either will cost. Shops change prices often, so compare current prices yourself.
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}.