Error in my code

What is the error in my code here
myList2 = list( [1,2,3] )
print(myList2)
print(type(myList2))

Hey,
Seems no error to me, Are you facing any difficulty in this code?


TypeError Traceback (most recent call last)
in
----> 1 myList2 = list([1,2,3])
2 print(myList2)
3 print(type(myList2))

TypeError: ‘list’ object is not callable

you can do just this myList2 = [1,2,3]
This will work fine

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.