from LinkedList import * ll = LinkedList() # Ajout de données ll.push(20) ll.push(4) ll.push(15) ll.push(10) # Création d'une boucle ll.head.next.next.next.next = ll.head; if( ll.detectLoop()): print ("Il y a une boucle !") else : print ("Pas de boucle ! ")