{"id":329315,"date":"2023-10-05T05:00:12","date_gmt":"2023-10-05T05:00:12","guid":{"rendered":"https:\/\/pythonguides.com\/?p=17685"},"modified":"2023-10-05T05:00:12","modified_gmt":"2023-10-05T05:00:12","slug":"python-create-empty-dictionary-3-methods","status":"publish","type":"post","link":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/2023\/10\/05\/python-create-empty-dictionary-3-methods\/","title":{"rendered":"Python create empty Dictionary [3 methods]"},"content":{"rendered":"<p class=\"syndicated-attribution\"><meta name= \\\"keywords \\\" content= \\\"\u96fb\u5b50\u8a08\u7b97\u6a5f, \u6559\u80b2, IT \u96fb\u8166\u73ed,\u96fb\u8166\u88dc\u7fd2\uff0c \u96fb\u8166\u73ed\uff0c \u5bb6\u6559\uff0c \u79c1\u4eba\u8001\u5e2b\uff0c \u8cc7\u8a0a\u6280\u8853\uff0c \u7a0b\u5e8f\u8a2d\u8a08\uff0c \u96fb\u5b50\u8a08\u7b97\u6a5f\uff0c \u904a\u6232\uff0c \u860b\u679c\uff0c \u96fb\u5f71\uff0c \u8a08\u7b97\u6a5f\uff0c\u7de8\u78bc\uff0c Java\uff0c C\/C++\uff0c JavaScript\uff0c PHP\uff0c HTML\uff0c CSS\uff0c MySQL\uff0c mobile\uff0c Android\uff0c \u52d5\u6f2b\uff0c Python\uff0c teacher\uff0c \u88dc\u7fd2\uff0c \u96fb\u8166\u88dc\u7fd2 \u8cc7\u8a0a, \u7535\u5b50\u8ba1\u7b97\u673a, IT ,Game, apple, movie, Computer,student,Java,\u6559\u80b2, ,\u5b66\u751f, \u5b66\u4e60, learn, \u6559\u5b66,  Android, apple,anime, animation, \u4fe1\u606f\u6280\u672f, \u7a0b\u5e8f\u8bbe\u8ba1, \u79fb\u52a8\u7535\u8bdd, \u8cc7\u8a0a\u79d1\u6280,Game, Jeu, Juego,Call Of Duty ,\u4f7f\u547d\u53ec\u559a , \u6e38\u620f, \u7535\u5b50\u6e38\u620f,, \u591a\u4eba\u7535\u5b50\u6e38\u620f, \u7f51\u7edc\u6e38\u620f\uff0conline\uff0conline game, \u624b\u673a\u6e38\u620f, mobile \\\"><\/p>\n<p>In this article, I will explain How can <strong>Python create empty Dictionary<\/strong> with different methods present and we will also see some other dictionaries that can be called <strong>empty dictionary Python<\/strong> will illustrative examples.<\/p>\n<p>Additionally, we will also see some methods present in Python that will help us to check if the created things is an empty dictionary in Python or not.<\/p>\n<h2 class=\"wp-block-heading\">Dictionary in Python<\/h2>\n<p>A <strong>dictionary in Python<\/strong> is a built-in data type that can hold a mutable, unordered collection of items as key-value pairs. As a dictionary can contain multiple data types, it is used for various purposes in Python. Each key in a dictionary must be unique and each key is associated with a value, making it a key-value pair.<\/p>\n<p>Here&#8217;s how you can create a dictionary in Python: In Python, a dictionary is defined by enclosing key-value pairs in curly braces (<strong>{}<\/strong>), with the key and value separated by a colon (<strong>:<\/strong>).<\/p>\n<pre class=\"wp-block-code\"><code>my_dict = {'name': 'Alice', 'age': 25}\nprint(type(my_dict))\nprint(my_dict)<\/code><\/pre>\n<p><strong>Output:<\/strong> We are checking the type of the variable to verify whether the variable store is a <strong>Python dictionary<\/strong> or not.<\/p>\n<pre class=\"wp-block-code\"><code>&lt;class 'dict'&gt;\n{'name': 'Alice', 'age': 25}<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"520\" height=\"342\" src=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/python-create-empty-dictionary.jpg\" alt=\"python create empty dictionary\" class=\"wp-image-45552\" srcset=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/python-create-empty-dictionary.jpg 520w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/python-create-empty-dictionary-300x197.jpg 300w\" sizes=\"(max-width: 520px) 100vw, 520px\" title=\"python create empty dictionary\"><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\">Python define empty Dictionary<\/h2>\n<p>In Python, an empty dictionary is a dictionary that contains no items (i.e., no key-value pairs). You can define an empty dictionary by using various methods present in Python, such as:<\/p>\n<ul>\n<li>Using Curly Braces {}<\/li>\n<li>Using dict() Constructor<\/li>\n<li>Using dictionary comprehension<\/li>\n<\/ul>\n<p>Let&#8217;s see them one by one using demonstrative examples.<\/p>\n<p><strong>Note: <\/strong>We check whether what we have created is an empty dictionary or not, we have three different functions in Pythion:<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>type() function<\/td>\n<td>The<strong> type() function<\/strong> returns the type of the specified object in Python.<\/td>\n<\/tr>\n<tr>\n<td>bool() function<\/td>\n<td>The<strong> bool() function<\/strong> converts a value to Boolean (True or False). It is used to evaluate any value or expression. If the value or expression equates to True, then <strong>bool()<\/strong> returns <strong>True<\/strong>; otherwise, it returns <strong>False<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td>len() function<\/td>\n<td>The <strong>len() function<\/strong> will return the number of items present in the Python dictionary.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><figcaption class=\"wp-element-caption\">A list of Python functions to check the dictionary is empty.<\/figcaption><\/figure>\n<h3 class=\"wp-block-heading\">Method 1: Create empty Dictionary Python with curly braces<\/h3>\n<p>The most straightforward way to <strong>create an empty dictionary in Python<\/strong> is to use empty <strong>curly braces {}<\/strong>.<\/p>\n<p><strong>Example 1:<\/strong> we will create an empty dictionary Python named <strong>states_and_capitals<\/strong> which is intended to store US states as keys and their capitals as values. This dictionary will be filled as data becomes available.<\/p>\n<pre class=\"wp-block-code\"><code># Creating an empty dictionary to store the states and their capitals\nstates_and_capitals = {}<\/code><\/pre>\n<p><strong>Example 2:<\/strong> For instance, Imagine you are developing a program to store information about the 50 states in the USA. Initially, you don&#8217;t have any data, so you start by creating an empty Python dictionary. Later, you can add states as keys and their information as values.<\/p>\n<pre class=\"wp-block-code\"><code>states_info = {}\nprint(states_info)\nprint(type(states_info))\nprint(bool(states_info))<\/code><\/pre>\n<p><strong>Output: <\/strong>To check the thing we have created and stored in the Python variable, Firstly we check the data type and then find whether it is considered as fasly in Python.<\/p>\n<pre class=\"wp-block-code\"><code>{}\n&lt;class 'dict'&gt;\nFalse<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"376\" height=\"427\" src=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/how-to-create-empty-dictionary-in-python-1.jpg\" alt=\"how to create empty dictionary in python\" class=\"wp-image-45554\" srcset=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/how-to-create-empty-dictionary-in-python-1.jpg 376w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/how-to-create-empty-dictionary-in-python-1-264x300.jpg 264w\" sizes=\"(max-width: 376px) 100vw, 376px\" title=\"how to create empty dictionary in python 1\"><\/figure>\n<\/div>\n<p>This confirms the variable contains a dictionary with no value i.e., we have successfully Python create empty Dictionary.<\/p>\n<p>Let&#8217;s add some key-value pairs to it and find out the number of items present inside it after adding.<\/p>\n<pre class=\"wp-block-code\"><code>states_info = {}\nstates_info&#91;'California'] = {'Capital': 'Sacramento', 'Population': 39538223}\nstates_info&#91;'Texas'] = {'Capital': 'Austin', 'Population': 29145505}\nprint(states_info)\nprint(len(states_info))<\/code><\/pre>\n<p><strong>Output: <\/strong><\/p>\n<pre class=\"wp-block-code\"><code>{'California': {'Capital': 'Sacramento', 'Population': 39538223}, 'Texas': {'Capital': 'Austin', 'Population': 29145505}}\n2<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"297\" src=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/define-empty-dictionary-python-1024x297.jpg\" alt=\"define empty dictionary python\" class=\"wp-image-45555\" srcset=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/define-empty-dictionary-python-1024x297.jpg 1024w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/define-empty-dictionary-python-300x87.jpg 300w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/define-empty-dictionary-python-768x223.jpg 768w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/define-empty-dictionary-python.jpg 1401w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" title=\"define empty dictionary python\"><\/figure>\n<\/div>\n<p>This way we can check if Python create empty Dictionary.<\/p>\n<h3 class=\"wp-block-heading\">Method 2: Python create an empty Dictionary using dict() method<\/h3>\n<p>Another method to create a Python empty dictionary is by using the <strong>dict()<\/strong> constructor.<\/p>\n<p><strong>Example 1:<\/strong> In this example, an empty Python dictionary <strong>city_population<\/strong> is created to store the populations of different cities in the USA. This dictionary can be populated later as data is gathered.<\/p>\n<pre class=\"wp-block-code\"><code># Creating an empty dictionary to store the population of different US cities\ncity_population = dict()<\/code><\/pre>\n<p><strong>Example 2:<\/strong> Suppose you&#8217;re working on a project to catalog all the national parks in the USA. You can start by creating an empty dictionary in Python and then populate it with national park names as keys and relevant information (such as location, size, and established year) as values.<\/p>\n<pre class=\"wp-block-code\"><code>national_parks = dict()\nprint(national_parks)\nprint(type(national_parks))\nprint(bool(national_parks))\nprint(len(national_parks))<\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>{}\n&lt;class 'dict'&gt;\nFalse\n0<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/empty-dictionary-in-python.jpg\" alt=\"empty dictionary in python\" class=\"wp-image-45556\" style=\"width:461px;height:473px\" width=\"461\" height=\"473\" srcset=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/empty-dictionary-in-python.jpg 461w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/empty-dictionary-in-python-292x300.jpg 292w\" sizes=\"(max-width: 461px) 100vw, 461px\" title=\"empty dictionary in python\"><\/figure>\n<\/div>\n<p>This way we can check if Python create empty dictionary is actually empty or not.<\/p>\n<p>Let&#8217;s add some key-value pairs to it and find out the number of items present inside it after adding.<\/p>\n<pre class=\"wp-block-code\"><code>national_parks = dict()\nnational_parks&#91;'Yellowstone'] = 'Wyoming'\nnational_parks&#91;'Yosemite'] = 'California'\nprint(national_parks)\nprint(bool(national_parks))\nprint(len(national_parks))<\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>{'Yellowstone': 'Wyoming', 'Yosemite': 'California'}\nTrue\n2<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"623\" height=\"475\" src=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/python-initialize-empty-dictionary.jpg\" alt=\"python initialize empty dictionary\" class=\"wp-image-45557\" srcset=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/python-initialize-empty-dictionary.jpg 623w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/python-initialize-empty-dictionary-300x229.jpg 300w\" sizes=\"(max-width: 623px) 100vw, 623px\" title=\"python initialize empty dictionary\"><\/figure>\n<\/div>\n<p>This way we check if Python create empty Dictionary<\/p>\n<h3 class=\"wp-block-heading\">Method 3: Python declare empty dictionary using dictionary comprehension<\/h3>\n<p>In Python, <a href=\"https:\/\/pythonguides.com\/python-dictionary-comprehension\/\"  rel=\"noreferrer noopener\">dictionary comprehension<\/a> provides a concise way to create dictionaries. Although it\u2019s more commonly used to create populated dictionaries, it can also be used to create an empty dictionary in Python.<\/p>\n<p><strong>Example 1: <\/strong><\/p>\n<pre class=\"wp-block-code\"><code># Using dictionary comprehension to create an empty dictionary\nempty_dict = {k: v for k, v in &#91;]}<\/code><\/pre>\n<p><strong>Example 2: <\/strong>Suppose you&#8217;re working on a project to catalog some of the popular companies in the USA. You can start by creating an empty dictionary in Python and then populate it with the company names as keys and relevant information (which category products they manufacture) as values.<\/p>\n<pre class=\"wp-block-code\"><code>companies = {k: None for k in &#91;]}\nprint(companies)\nprint(type(companies))\nprint(bool(companies))\nprint(len(companies))<\/code><\/pre>\n<p><strong>Output: <\/strong><\/p>\n<pre class=\"wp-block-code\"><code>{}\n&lt;class 'dict'&gt;\nFalse\n0<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"509\" height=\"480\" src=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/how-to-create-an-empty-dictionary-in-python.jpg\" alt=\"how to create an empty dictionary in python\" class=\"wp-image-45559\" srcset=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/how-to-create-an-empty-dictionary-in-python.jpg 509w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/how-to-create-an-empty-dictionary-in-python-300x283.jpg 300w\" sizes=\"(max-width: 509px) 100vw, 509px\" title=\"how to create an empty dictionary in python\"><\/figure>\n<\/div>\n<p>Let&#8217;s add some key-value pairs to it and find out the number of items present inside it after adding.<\/p>\n<pre class=\"wp-block-code\"><code>companies = {k: None for k in &#91;]}\ncompanies&#91;'Apple'] = 'Gadgets'\ncompanies&#91;'Oreo'] = 'Food'\nprint(companies)\nprint(bool(companies))\nprint(len(companies))<\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>{'Apple': 'Gadgets', 'Oreo': 'Food'}\nTrue\n2<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"509\" height=\"462\" src=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/initialize-empty-dictionary-python.jpg\" alt=\"initialize empty dictionary python\" class=\"wp-image-45558\" srcset=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/initialize-empty-dictionary-python.jpg 509w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/initialize-empty-dictionary-python-300x272.jpg 300w\" sizes=\"(max-width: 509px) 100vw, 509px\" title=\"initialize empty dictionary python\"><\/figure>\n<\/div>\n<p>This way we in Python create empty Dictionary using dictionary comprehension.<\/p>\n<p>These were the methods by which we could create an empty dictionary in Python. But, there are many other dictionaries in Python that can be called empty dictionaries.<\/p>\n<h2 class=\"wp-block-heading\">Other empty Python dictionary<\/h2>\n<p>There are many other dictionaries in Python that can be considered as empty and we can create them in Python. Let&#8217;s see them one by one:<\/p>\n<h3 class=\"wp-block-heading\">Python create empty dictionary with keys<\/h3>\n<p>When you need a dictionary with predefined keys but no values, the dict.fromkeys() method is helpful. This method returns a new dictionary with the given keys and a specified value (default is None).<\/p>\n<p>In the example of a store chain across the USA:<\/p>\n<pre class=\"wp-block-code\"><code>store_locations = &#91;'New York', 'California', 'Texas']\nstore_sales = dict.fromkeys(store_locations, None)\nprint(store_sales)<\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>{'New York': None, 'California': None, 'Texas': None}<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"689\" height=\"326\" src=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/create-empty-dictionary-python-with-keys.jpg\" alt=\"create empty dictionary python with keys\" class=\"wp-image-45560\" srcset=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/create-empty-dictionary-python-with-keys.jpg 689w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/create-empty-dictionary-python-with-keys-300x142.jpg 300w\" sizes=\"(max-width: 689px) 100vw, 689px\" title=\"create empty dictionary python with keys\"><\/figure>\n<\/div>\n<p>This way, Python create empty dictionary with keys using dict.fromkeys() method.<\/p>\n<h3 class=\"wp-block-heading\">Create an Empty Nested Dictionary in Python<\/h3>\n<p>When dealing with hierarchical data, an empty nested dictionary may be used. It&#8217;s a dictionary where some keys have dictionaries as values.<\/p>\n<p>In the vaccine distribution example:<\/p>\n<pre class=\"wp-block-code\"><code>vaccine_distribution = {'California': {}, 'Texas': {}}\nprint(vaccine_distributed)<\/code><\/pre>\n<p><strong>Output: <\/strong>The vaccine_distribution is a Python dictionary with states as keys (&#8216;California&#8217; and &#8216;Texas&#8217;) and their values as empty dictionaries ({}).<\/p>\n<pre class=\"wp-block-code\"><code>{'California': {}, 'Texas': {}}<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"275\" src=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/empty-dictionary-python.jpg\" alt=\"empty dictionary python\" class=\"wp-image-45561\" srcset=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/empty-dictionary-python.jpg 728w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/09\/empty-dictionary-python-300x113.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" title=\"empty dictionary python\"><\/figure>\n<\/div>\n<p>This way we can Python create empty Dictionary which is nested.<\/p>\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n<p>Understanding how <strong>Python create empty Dictionary<\/strong> using three different ways using <strong>curly braces {}<\/strong>, the <strong>dict() constructor<\/strong>, and the <strong>dictionary comprehension<\/strong> with illustrative examples after creating we need to check whether the dictionary is empty or not with the <strong>type()<\/strong>, <strong>bool()<\/strong>, and <strong>len()<\/strong> functions in Python.<\/p>\n<p>Lastly, I have also explained what other kinds of dictionaries can be considered empty in Python.<\/p>\n<p>You may also like reading the following tutorials.<\/p>\n<ul>\n<li><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/pythonguides.com\/python-dictionary-pop\/\"  rel=\"noreferrer noopener\" class=\"rank-math-link\">Python dictionary pop<\/a><\/li>\n<li><a aria-label=\" (opens in a new tab)\" class=\"rank-math-link\" href=\"https:\/\/pythonguides.com\/python-loop-through-a-list\/\"  rel=\"noreferrer noopener\">Python loop through a list<\/a><\/li>\n<li><a href=\"https:\/\/pythonhow.com\/how\/check-if-a-list-is-empty\/\" data-type=\"link\" data-id=\"https:\/\/pythonhow.com\/how\/check-if-a-list-is-empty\/\"  rel=\"noreferrer noopener\">Check if a list is empty in Python<\/a><\/li>\n<li><a href=\"https:\/\/pythonguides.com\/python-dictionary-multiple-keys\/\"  aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Python dictionary multiple keys<\/a><\/li>\n<\/ul>\n\n<p class=\"syndicated-attribution\"><figure class= \\\"wp-block-image alignnone \\\"><img src= \\\"http:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-content\/uploads\/2016\/05\/logo2-2.png\\\" alt=\\\"IT\u96fb\u8166\u88dc\u7fd2 java\u88dc\u7fd2 \u70ba\u5927\u5bb6\u914d\u5c0d\u96fb\u8166\u88dc\u7fd2,IT freelance, \u79c1\u4eba\u8001\u5e2b, PHP\u88dc\u7fd2,CSS\u88dc\u7fd2,XML,Java\u88dc\u7fd2,MySQL\u88dc\u7fd2,graphic design\u88dc\u7fd2,\u4e2d\u5c0f\u5b78ICT\u88dc\u7fd2,\u4e00\u5c0d\u4e00\u79c1\u4eba\u88dc\u7fd2\u548cFreelance\u81ea\u7531\u5de5\u4f5c\u914d\u5c0d\u3002\\\"\/><figcaption>\u7acb\u523b\u8a3b\u518a\u53ca\u5831\u540d\u96fb\u8166\u88dc\u7fd2\u8ab2\u7a0b\u5427!<\/figcaption><\/figure>\r\n<\/br>Find A Teacher Form:\r\n<\/br>https:\/\/docs.google.com\/forms\/d\/1vREBnX5n262umf4wU5U2pyTwvk9O-JrAgblA-wH9GFQ\/viewform?edit_requested=true#responses\r\n<\/br><\/br>Email:\r\n<\/br>public1989two@gmail.com<br><br><br><br><br><br><br>\r\n<a href=www.itsec.hk style=color:#FFFFFF;>www.itsec.hk<\/a><br>\r\n<a href=\\\"www.itsec.vip\\\" style=color:#FFFFFF;>www.itsec.vip<\/a><br>\r\n<a href=\\\"www.itseceu.uk\\\" style=color:#FFFFFF;>www.itseceu.uk<\/a><br><\/p>","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>In this article, I will explain How can Python create empty Dictionary with different methods present and we will also see some other dictionaries that can be called empty dictionary Python will illustrative examples. Additionally, we will also see some methods present in Python that will help us to check if the created things is &#8230; <a title=\"Python create empty Dictionary [3 methods]\" class=\"read-more\" href=\"https:\/\/pythonguides.com\/how-to-create-an-empty-python-dictionary\/\" aria-label=\"More on Python create empty Dictionary [3 methods]\">Read more&#8230;<\/a><\/p>\n<\/div>","protected":false},"author":2034,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Python create empty Dictionary [3 methods] - ITTeacherITFreelance.hk","description":"In this article, I will explain How can Python create empty Dictionary with different methods present and we will also see some other dictionaries that can be c"},"footnotes":""},"categories":[10700],"tags":[10763],"_links":{"self":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/329315"}],"collection":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/2034"}],"replies":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=329315"}],"version-history":[{"count":1,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/329315\/revisions"}],"predecessor-version":[{"id":329316,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/329315\/revisions\/329316"}],"wp:attachment":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=329315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=329315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=329315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}