Answers for "set and tuple in python"

1

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)
Posted by: Guest on June-29-2021

Python Answers by Framework

Browse Popular Code Answers by Language