Avatar ·

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

📁 python

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

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