Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to Access Items in a Set in Python

nameSet = {"John", "Jane", "Doe"}

for names in nameSet:
    print(names)
    # John
    # Doe
    # Jane
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #How #Access #Items #Set #Python
ADD COMMENT
Topic
Name
5+6 =