explain the difference between a worm and a virus

explain the difference between a worm and a virus
Answer
Brief Explanations:
A virus attaches to a legitimate program or file to spread and needs a host to replicate. A worm is self - contained and can spread independently across networks without a host file.
Answer:
A virus requires a host program or file to spread and replicate. A worm can spread independently across networks without relying on a host file.