Is there a difference in intialising a list using this
l = [0] * 20
compared to this
l = [0 for i in range(20)]
Under the hood, how does [0] * 20
work compared to list comprehension in Python? The former method seems to result in faster runtime in LeetCode