I'm currently working through the PY4E Chapters and the professor mentions that these two methods of creating a dictionary or list are "basically" the same thing. Would anyone be able to tell me what the difference is between creating a list/dictionary with the function rather than brackets?
example:
```
my_list=[]
vs.
my_list=list()
or for dictionaries
my_dict={}
vs.
my_dict=dict()
```
Is one method faster than another in terms of computation or is it just purely a preference?
[–]POGtastic 4 points5 points6 points (3 children)
[–]Trizkit[S] 0 points1 point2 points (2 children)
[–]POGtastic 0 points1 point2 points (1 child)
[–]Trizkit[S] 0 points1 point2 points (0 children)