Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Declare network_nodes as a set
- network_nodes=set()
- #The list has duplicate entried for NODE1
- list = ['NODE_1', 'node_2', 'node_3', 'node_4','NODE_1' ]
- for x in list:
- network_nodes.add(x)
- print("The original list : \r", list)
- print("The set : \r", network_nodes)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement