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
 
PREVIOUS NEXT
Tagged: #set #python
ADD COMMENT
Topic
Name
4+5 =