[Solved] why this code doesn’t work i am using python3?
[ad_1] The problem here is in your conditional while len(lists) is True: is checks for identity, not equality. [1, 2, 3] == [1, 2, 3] # True [1, 2, 3] is [1, 2, 3] # False, they are two distinct (but equivalent) lists. However even equality would be incorrect here, since 42 == True # … Read more