Describe the behavior of a magnet in one sentence
A magnet exhibits a behavior where it attracts ferromagnetic materials, like iron, and either attracts or repels other magnets depending on their polarity.
Complete the following task based on the instruction and optional input provided.### Instruction:
Describe the behavior of a magnet in one sentence

### Output:
A magnet exhibits a behavior where it attracts ferromagnetic materials, like iron, and either attracts or repels other magnets depending on their polarity.