---
title: "Discussion on \"Python Notes\" | Hashnode"
description: "Discussion on \"Python Notes\". Dictionary:\n# 1. Create an empty dictionary\nmy_dict = {}\nprint(\"1. Empty dictionary:\", my_dict)\n\n# 2. Check if a key exists in a dictionary\nkey_exists = 'key' in my_dict\nprint(\"2. Does 'key' exist in dictionary?\", key_exists)\n\n# 3. Update the value o..."
url: "https://hashnode.com/posts/python-notes-1/6654082e9d0d37fb27acb04b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Python Notes](https://arunudayakumar.hashnode.dev/python-notes-1?utm_source=hashnode&utm_medium=feed)

Dictionary: # 1. Create an empty dictionary my\_dict = {} print("1. Empty dictionary:", my\_dict) # 2. Check if a key exists in a dictionary key\_exists = 'key' in my\_dict print("2. Does 'key' exist in dictionary?", key\_exists) # 3. Update the value o...

May 27, 2024 · 7 min read · arunudayakumar.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)

## Written by

[Arun Udayakumar](https://hashnode.com/@arunudayakumar)

@arunudayakumar · Chennai, India

  
[View profile](https://hashnode.com/@arunudayakumar)

I build C++ applications

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
