Files
Man1130/jupyter/Man1130-python-comission/course_materials/Note/a3-2-loop.py
louiscklaw e44aead3d5 update,
2025-02-01 01:58:19 +08:00

19 lines
520 B
Python

vocabs = {'programming': ['the activity or job of writing computer programs','_______ming'],
'python': ['a very large snake that kills animals for food by wrapping itself around them and crushing them', '___hon'],
'fun': ['pleasure, enjoyment, or entertainment', '__n']}
vocabs.keys()
vocabs.values()
vocabs.items()
for key in vocabs.keys():
print(key)
for value in vocabs.values():
print(value)
for key,value in vocabs.items():
print('{} ({})\n {}'.format(key,value[1],value[0]))