Files
004_comission/Man1130/jupyter/Man1130-python-comission/course_materials/Note/a3-2-loop.py
louiscklaw fc6f79b133 update,
2025-01-31 20:57:47 +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]))