Advertisement
DevPlayer

Partial Test of a possible stackflow solution

Nov 20th, 2015
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. listA = ['one', 'two', 'three', 'four', 'five', 'six', 'seven']
  2. listB = listA[:]
  3. all(True if listA.count(item) <= listB.count(item) else False for item in listA)
  4. True
  5. listA.append('eight')
  6. all(True if listA.count(item) <= listB.count(item) else False for item in listA)
  7. False
  8. listB.append('eight')
  9. all(True if listA.count(item) <= listB.count(item) else False for item in listA)
  10. True
  11. listB.append('nine')
  12. all(True if listA.count(item) <= listB.count(item) else False for item in listA)
  13. True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement