Quantcast
Channel: A different way to check the type of a list - Stack Overflow
Viewing all articles
Browse latest Browse all 3

A different way to check the type of a list

$
0
0
list = [1,2,3]print(type(list) == list) # Prints False

Other than changing the name of the list, is there another way to check the type of this list? (Because I have already referenced the list variable a lot of times in my code and it is pretty hard to change all of them.)


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>