An electromagnet does not create a short circuit because it is designed with wire that has nonzero resistance, typically using a long, thin wire coated with insulation. This design prevents the current from bypassing the wire turns, ensuring a controlled flow of electricity. While a simple wire directly connected to a battery would cause a short circuit, the resistance in the electromagnet allows for only a modest current, preventing overheating. Additionally, incorporating back-emf in systems like electric motors helps regulate current flow, further reducing the risk of overheating. Overall, careful design choices in electromagnets ensure safe operation without short circuits.