---
title: "Discussion on \"Five Python Tricks to make your work easy\" | Hashnode"
description: "Discussion on \"Five Python Tricks to make your work easy\". Python is one of the world's most popular programming languages. You can use Python for Data Science, Machine Learning, Web Development, Desktop Application.\nPython is very easy to learn and use. So, here are 5 cool python tricks to make everyday wor..."
url: "https://hashnode.com/posts/five-python-tricks-to-make-your-work-easy/5fc929d6df0f3764e3def955"
---

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

Discussion

# [Five Python Tricks to make your work easy](https://parth104.hashnode.dev/five-python-tricks-to-make-your-work-easy?utm_source=hashnode&utm_medium=feed)

Python is one of the world's most popular programming languages. You can use Python for Data Science, Machine Learning, Web Development, Desktop Application. Python is very easy to learn and use. So, here are 5 cool python tricks to make everyday wor...

Dec 3, 2020 · 4 min read · parth104.hashnode.dev  
Read the article

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

## Written by

[Parth Panchal](https://hashnode.com/@parth104)

@parth104 · Ahmedabad, India

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

Software engineer

I am a Software developer at GoBolt, Gurugram. I like competitive coding and like to solve daily life problems through technology.

## Responses 4

Markdown supported · ⌘↵ to post

[Parth Panchal](https://hashnode.com/@parth104)

[Dec 6, 2020](https://hashnode.com/posts/five-python-tricks-to-make-your-work-easy/5fc929d6df0f3764e3def955/comment/5fcc7b27ef5f84019de79926)

Great content 👍

[Siddharth Rout](https://hashnode.com/@routsiddharth0298)

[Dec 5, 2020](https://hashnode.com/posts/five-python-tricks-to-make-your-work-easy/5fc929d6df0f3764e3def955/comment/5fcba57b2e4db7780e48357e)

Merging two dicts is much easier in Python 3.9 with the `|` operator.

```
x = {'p': 1, 'q': 2}
y = {'q': 3, 'r': 4}

z = x | y
```

If you wanted to simply append the k, v pairs of y to the end of x, you can use the shortcut.

```
x |= y
```

Nevertheless, I would never have thought of your method. Great job!

[Parth Panchal](https://hashnode.com/@parth104)

[Dec 7, 2020](https://hashnode.com/posts/five-python-tricks-to-make-your-work-easy/5fc929d6df0f3764e3def955/comment/5fcba57b2e4db7780e48357e#reply-5fce6788b893f0197d598fa5)

Yes [Siddharth Rout](https://hashnode.com/@sidr2911), Thanks for pointing out. I was also not aware about this new feature of Python 3.9.

[GUJJU IS LIVE](https://hashnode.com/@Parth007)

[Dec 4, 2020](https://hashnode.com/posts/five-python-tricks-to-make-your-work-easy/5fc929d6df0f3764e3def955/comment/5fc9b02105b16664beec4cfb)

Nice

[badal panchal](https://hashnode.com/@Badal)

[Dec 4, 2020](https://hashnode.com/posts/five-python-tricks-to-make-your-work-easy/5fc929d6df0f3764e3def955/comment/5fc99071df0f3764e3defec4)

Cool
