SyntaxFix
Write A Post
Hire A Developer
Questions
A set comparison work:
len(set(the_list)) == 1
Using set removes all duplicate elements.
set