Avatar ·

How to check if all elements are the same in the list?

📁 Advanced Python Topics

  n =  int  ( input  ()) sp = []   for  _  in   range  (n):  sp.append ( int  ( input  ()))   

how to check if all the numbers are the same in this list?