I want to test if a list contains consecutive integers and no repetition of numbers. For example, if I have
l = [1, 3, 5, 2, 4, 6]
It should re
1.
l.sort()
2.
for i in range(0,len(l)-1))) print(all((l[i+1]-l[i]==1)