Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

set in python

A_Set = {1, 2, "hi", "test"}

for i in A_Set: #Loops through the set. You only get the value not the index
  print(i) #Prints the current value
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #set #python
ADD COMMENT
Topic
Name
3+5 =