Skip to content

Create empty data structures – List, Set, Tuple and Dictionary in Python


# Empty Lists
empty_list = []
empty_list = list()

# Empty Tuples
empty_tuple = ()
empty_tuple = tuple()

# Empty Dictionary
empty_set = {}

# Empty Sets
empty_set = set()

See also  How to make a text in center with background color in CSS?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.