As most Python users know, there are two ways of creating x as an empty string or list (or, for integers, 0). You could do:
x = str()
y = list()
z = int()
or, you could do:
x = ""
y = []
z = 0
I know that these are semantically identical statements, but is one more encouraged than the other (as map()
is encouraged in some cases over for x in y...
)?