23 lines
626 B
Python
23 lines
626 B
Python
glossary = {
|
|
'string': 'A series of characters.',
|
|
'comment': 'A note in a program that the Python interpreter ignores.',
|
|
'list': 'A collection of items in a particular order.',
|
|
'loop': 'Work through a collection of items, one at a time.',
|
|
'dictionary': "A collection of key-value pairs.",
|
|
}
|
|
|
|
word = 'string'
|
|
print(f"\n{word.title()}: {glossary[word]}")
|
|
|
|
word = 'comment'
|
|
print(f"\n{word.title()}: {glossary[word]}")
|
|
|
|
word = 'list'
|
|
print(f"\n{word.title()}: {glossary[word]}")
|
|
|
|
word = 'loop'
|
|
print(f"\n{word.title()}: {glossary[word]}")
|
|
|
|
word = 'dictionary'
|
|
print(f"\n{word.title()}: {glossary[word]}")
|