Simple:
* The inhabitants of the small village were known for their friendly nature.
* The forest was home to a diverse population of inhabitants.
Complex:
* The city's inhabitants were struggling to cope with the rising cost of living.
* Despite the harsh conditions, the inhabitants of the desert thrived.
* The inhabitants of the island had a unique culture, distinct from the mainland.
Figurative:
* The old house felt like it was inhabited by ghosts.
* The artist's paintings were filled with strange and wonderful inhabitants.
You can also use "inhabitants" in a more specific way, depending on the context:
* The inhabitants of the coral reef were threatened by pollution.
* The inhabitants of the submarine were on a mission to explore the ocean floor.
The best way to use "inhabitants" will depend on the specific context and what you want to convey.