Although the leaves are similar, these are **both not Dandelions** _Taraxacum species_ , because:
1\. Dandelions have leaves in a rosette, not distributed along a stem.
2\. Dandelions have a stem with a single flower at the end, not multiple flowers.
3\. The shape of the closed flower heads after flowering is too pointed. Dandelions usually have the pappus (white hairs) sticking out a little.
These distinctions can be clearly seen in the picture below:
![enter image description here](
I am not familiair with the flora of India, but I think these could be _Sonchus_ species. Sonchus is known to have variable leaves.
For comparative purposes, see how _Sonchus_ looks like ![enter image description here](