There are lots of different kinds of batteries and you did not say which type.
Car battery, AA or AAA alkaline cylindrical cells, button cells, Lithium-Ion cells or Li-Po cells.
Most fit in a battery holder.
What are the best ways of securely attaching wires to batteries? Maybe some methods using electrodes?