13 lines
215 B
Plaintext
13 lines
215 B
Plaintext
counts = { 'chuck': 1, 'annie': 42, 'jan': 100 }
|
|
|
|
for key in counts:
|
|
if (count := counts[key]) > 1:
|
|
print(key, count)
|
|
|
|
|
|
|
|
lst = list(counts.keys())
|
|
print(lst)
|
|
lst.sort()
|
|
for key in lst:
|
|
print(key, counts[key]) |