Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

which of the following statements is used to create an empty set in python?

To create an empty set in Python, the following code below is used:
  
set1= set () 

So we created a variable, called set1, and set it equal to set () 

This creates an empty set in Python.
 
PREVIOUS NEXT
Tagged: #statements #create #empty #set
ADD COMMENT
Topic
Name
8+1 =