Whenever I come to define an empty list. Which is best practice? Is one better than the other? Are they identical?
mylist = list()
or?
mylist = []
My question is also relevant to:
# int() && 0
# str() && ""
# float() && 0.0
# etc.
But just in case there's a difference. I am only interested in the answer for lists.