set and tuple in python

Solutions on MaxInterview for set and tuple in python by the best coders in the world

showing results for - "set and tuple in python"
Lia
12 Sep 2016
1#Turples 
2#are odered not to be changable Turples and are Written under perenthisis
3this_tuple = ("apple", "banana", "cherry", "apple", "cherry")
4print(this_tuple)
5#Set
6#are odered to be changable and Sets are written with curly brackets.
7this_set = {"apple", "banana", "cherry", "apple"}
8print(this_set)