From a41fe31322e92f84ecee4f3e6295bed2ec9120fd Mon Sep 17 00:00:00 2001 From: John R. Lenton Date: Mon, 6 Jan 2014 17:17:02 +0000 Subject: Added dict iterator. --- tests/basics/tests/dict_iterator.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/basics/tests/dict_iterator.py (limited to 'tests') diff --git a/tests/basics/tests/dict_iterator.py b/tests/basics/tests/dict_iterator.py new file mode 100644 index 000000000..f190e32ff --- /dev/null +++ b/tests/basics/tests/dict_iterator.py @@ -0,0 +1,3 @@ +d = {1: 2, 3: 4} +for i in d: + print(i, d[i]) -- cgit v1.2.3