I just wanted to know the use of the list() constructor because if we want to create a new list then just we can use square brackets, what's the specific use of the list() constructor.
newGrocerylist = list(("apple", "guava", "mango", "pineapple", "orange")) #Why use the list() constructor.
print(newGrocerylist)
#We can also do like this--
newGrocerylist = ["apple", "guava", "mango", "pineapple", "orange"]
print(newGrocerylist)
Why use the list constructor? Isn't it a redundant thing to do--
newGrocerylist = list(("apple", "guava", "mango", "pineapple", "orange"))