1 for x
in [bool, dict, enumerate, int, isinstance, len, list, open, ord, print, range, repr, reversed, set, sorted, str, tuple, zip]:
4 for x
in [bool, dict, int, list, set, str, tuple]:
11 print(list(enumerate(x
)))
13 for x
in [0, 1, False, True, '0', '1', '10', '15', '-123', '+714']:
16 for x
in [('10', 16), ('ff', 16), ('-abc', 36)]:
19 for x
in ['', [], {}, set(), 'a', [1], {'b'}, {1: 2}]:
22 for x
in [range(5), {1, 2, 3}, [1, 'c'], '', 'a', 'abc']:
25 for x
in ['a', ' ', '+']:
28 for x
in [0, 1, 5, 10]:
32 for x
in [0, 1, [], {}, set(), '', 'a', '\n', '\r', '\t', '\\', '"', '"\'', '\'"', "'", (), (1,), (1, 2)]:
35 for x
in [[], [1], [1, 2, 3], (1, 2, 3)]:
36 print(list(reversed(x
)))
38 for x
in [[1], 'abc']:
41 for x
in [[5, 3, 1], (1, 3, 2), {10, 5, 0}]:
44 for x
in [[], range(1), range(5)]:
47 for x
in [0, False, True, None, 'a', []]:
50 print(list(zip([1, 2], [3, 4])))
51 print(list(zip([1, 2, 3], [4, 5])))
52 print(list(zip([1, 2,], [3, 4, 5])))
54 for x
in [[], ['a'], ['a', 'b', 'c'], ('x', 'y', 'z')]:
56 for x
in ['', 'a', ':', 'a:', 'a:b', 'a:b:c']: