PythonExtra/tests/basics/list_count.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
106 B
Python
Raw Normal View History

2014-01-04 00:57:28 +01:00
# list count tests
a = [1, 2, 3]
a = a + a + a
b = [0, 0, a, 0, a, 0]
print(a.count(2))
print(b.count(a))