Dear Muntaha Wasim,
Lines of symmetry in a heptagon depends on its shape/ length of each Line in heptagon.
This is a confusing Question which forces you to answer that it has 7 lines of symmetry
But 7 is the correct answer only when it is asked about regular heptagon
If my answer helps, give likes
regards