Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: list of dicts 
Python :: accessing items of tuple in python 
Python :: python change directory to previous 
Python :: precision and recall from confusion matrix python 
Python :: how to print all items in a list python 
Python :: standardscaler 
Python :: how to get the max of a list in python 
Python :: How to Adjust Title Position in Matplotlib 
Python :: python casting 
Python :: encryption using python 
Python :: python turn positive into negative 
Python :: pandas df represent a long column name with short name 
Python :: BURGERS2 
Python :: even numbers in python 
Python :: ipaddress in python 
Python :: pandas reset index from 0 
Python :: sys.maxsize in python 
Python :: functools reduce python 
Python :: django create superuser from script 
Python :: create tables with psycopg2 python 
Python :: how to get wikipedia photos using wikipedia module ip python 
Python :: yticks matplotlib 
Python :: Selecting subset of columns with pandas 
Python :: iterate a list of tuples 
Python :: python turn off garbage collection 
Python :: time in regression expression python 
Python :: shallow copy in python 
Python :: browser = webdriver.firefox() error 
Python :: python replace n with actual new line 
Python :: python txt to parquet 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =