Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ring add new items to the list using the string index

aList = []
aList["Egypt"] = "Cairo"
aList["KSA"] = "Riyadh"
see aList["Egypt"] + nl +       # print Cairo
    aList["KSA"] + nl           # print Riyadh
Source by ring-lang.github.io #
 
PREVIOUS NEXT
Tagged: #ring #add #items #list #string #index
ADD COMMENT
Topic
Name
2+7 =