Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
oorrja
GitHub Repository: oorrja/learntosolveit
Path: blob/master/languages/python/design_iterator_ex2.py
1240 views
1
dict1 = {'a':1,'b':2,'c':3}
2
3
sequence= dict1
4
5
it = iter(sequence)
6
while True:
7
try:
8
value = next(it)
9
except StopIteration:
10
break
11
print(value)
12
13
14