Hi all, can someone please clarify the difference between different data structu . . .

vikas mahajan:
Hi all, can someone please clarify the difference between different data structures in using dashes

“- name:
- Vikas
- John

AND

“ - name: Vikas
Age: 32
Address: India

AND

“ -name: Vikas
car: polo
Model: xyz

Mohamed Ayman:
The first one is a list of lists, the second is alist of dictionires, and the last one should be the same as the first one after adding a space before “name”

Mohamed Ettaki Talbi:
I think the last one isn’t valid

vikas mahajan:
That’s fine I want to understand the concept Ie where to use dash and where not

Mohamed Ettaki Talbi:
Dash means new element of a list

Mohamed Ettaki Talbi:
And list elements could be integers strings ou key/value dictionary

vikas mahajan:
:+1: