How to check if the two lists are the same in Python

1 Answer

0 votes
lst1 = [1, 2, 3, 5] 
lst2 = [1, 2, 3, 5] 
  
if lst1 == lst2:
   print("The same") 
else :     
   print("Nor the same")
 
 
 
 
'''
run:
 
The same
 
'''

 



answered Aug 27, 2021 by avibootz

Related questions

...