I wonder what difference between a[x] and a.x
When I create a={}
when I write a.x=5 it gives {x:5}
but when I write a[x]=5 it gives error
I wonder what difference between a[x] and a.x
When I create a={}
when I write a.x=5 it gives {x:5}
but when I write a[x]=5 it gives error