Comets are part of the solar system. These are usually spherical in shape and develop tail when they come near the Sun.
Comets can be categorized into two groups depending on how long they take to complete one revolution around the sun. These are:
Long Period Comets: These comets complete one revolution around the Sun in 200 and more years. Great Comet of 1843 is one of the examples of this type.
Short Period Comets: These comets complete one revolution around the Sun in years less than 200. One of the examples is Halley's comet that takes 76 years to complete the revolution. It last appeared in 1985.