+ 1
here*empty_list*is a variable or list or something else
empty_list = [] print(empty_list)
6 Réponses
+ 7
+ 5
It depends on how you're looking at it. A variable is a reserved memory location where you can store something.
If I say num = 5, is num a variable or is num an integer? Is Dave a name or is Dave a person? 😊
The variable name points to that location and whatever is in it.
+ 2
print(type(empty_list))
+ 2
empth_list is a list
Not variable
0
but why is it list not variable