Wednesday, November 18, 2020

Python : You Want to Check if All Elements of a List are the Same (Identical)

Back to list
if 1 == len( set( list_name) ) :  # will do it

No comments: