Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

set and tuple in python

#Turples 
#are odered not to be changable Turples and are Written under perenthisis
this_tuple = ("apple", "banana", "cherry", "apple", "cherry")
print(this_tuple)
#Set
#are odered to be changable and Sets are written with curly brackets.
this_set = {"apple", "banana", "cherry", "apple"}
print(this_set)
 
PREVIOUS NEXT
Tagged: #set #tuple #python
ADD COMMENT
Topic
Name
3+2 =