Habitat and Niche:-
Each organism plays a particular role in its ecosystem. A niche is the role a species plays in the ecosystem. In other words, a niche is how an organism “makes a living.” A niche will include the organism’s role in the flow of energy through the ecosystem. This involves how the organism gets its energy, which usually has to do with what an organism eats.
The habitat is the physical area where a species lives. Many factors are used to describe a habitat. The average amount of sunlight received each day, the range of annual temperatures, and average yearly rainfall can all describe a habitat. These and other abiotic variables will influence the sort of attributes a living being must have keeping in mind the end goal to get by there.
The role a species plays in the ecosystem is called its niche.
A habitat is the physical environment in which a species lives.