Skip to main content
Skip table of contents

dictionary

기능

Key와 Value를 지정하여 값을 나열합니다.

예제

PY
d = dict(a = 1, b = 3, c = 5)

colors = dict()
colors["cherry"] = "red"

ages = {'Kim':35, 'Lee':38, 'Chang':37}
tp_log("Ages of Kim = " + str(ages['Kim']))
#expected print result: Ages of Kim = 35

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.