+ 1

here*empty_list*is a variable or list or something else

empty_list = [] print(empty_list)

23rd Aug 2020, 3:20 AM
#challenger mg
#challenger mg - avatar
6 Answers
23rd Aug 2020, 9:52 AM
David Ashton
David Ashton - avatar
+ 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.
23rd Aug 2020, 4:21 AM
David Ashton
David Ashton - avatar
+ 2
print(type(empty_list))
23rd Aug 2020, 3:31 AM
Gordon
Gordon - avatar
+ 2
empth_list is a list Not variable
23rd Aug 2020, 3:32 AM
Akash Agrawal
Akash Agrawal - avatar
0
but why is it list not variable
23rd Aug 2020, 3:48 AM
#challenger mg
#challenger mg - avatar