Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

check two list python not match

l1 = [10, 20, 30, 40, 50] 
l3 = [50, 10, 30, 20, 40] 
 
a = set(l1)
b = set(l3)
 
if a == b:
    print("Lists l1 and l3 are equal")
else:
    print("Lists l1 and l3 are not equal")
Comment

PREVIOUS NEXT
Code Example
Python :: is : and :: the same in python slice 
Python :: draw a marker in basemap python 
Python :: tf.get_variable initializer 
Python :: cv2 put font on center 
Python :: what is require_self 
Python :: how to write flow of execution in python 
Python :: how to write statements in python 
Python :: matplotlib include first number in plotter 
Python :: when was barracoon written 
Python :: i want to get only first record of each user in pandas 
Python :: presto sequence example date 
Python :: python code to display a grid of data table 
Python :: how to place an id to every element in list in python 
Python :: come mettere una scelta su python 
Python :: python 3.10.5 release date 
Python :: Improve the Request Handle Errors 
Python :: How to import modules in Python? 
Python :: defining a class in python 
Python :: pandas replace not working 
Python :: delete to trash 
Python :: python pynput hotkeys 
Python :: pairwiseclip arcpy 
Python :: .text xpath lxml 
Python :: Extract the best model from gridsearch cv 
Python :: specifying random columns in numpy 
Python :: how to break out of while loop when the user hit ctrl + d python 
Python :: Como hacer mayusculas un string 
Python :: change label in dataframe per condition 
Python :: Create list element using algebraic operation 
Python :: TAKING LIST INPUT IN PYTHON QUESTION 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =