Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

iterate over a set python

# Creating a set using string
test_set = set("geEks")
 
# Iterating using for loop
for val in test_set:
    print(val)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #iterate #set #python
ADD COMMENT
Topic
Name
5+4 =