Возможно, вы уже использовали list в качестве переменной в коде.вот пример кода
a = list()
a.append(2)
print(a)
list = 1
print(type(list))
#Here you would see that the type of list is integer
#To get back the type list,just delete the reference as below
del list
print(type(list))
#Now it will print that its of type list