---
title: "Discussion on \"Is unpacking faster than indexing?\" | Hashnode"
description: "Discussion on \"Is unpacking faster than indexing?\". This is a strange story.\nOne morning, I woke up and wrote a few lines of code. Then, there came an interesting situation. I need to assign two elements of an array to two variables. There are many ways of achieving this in python.\nIf you're a javascr..."
url: "https://hashnode.com/posts/is-unpacking-faster-than-indexing/62554552b32ddd968bbeb21b"
---

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

Discussion

# [Is unpacking faster than indexing?](https://maheshchandraregmi.com.np/is-unpacking-faster-than-indexing?utm_source=hashnode&utm_medium=feed)

This is a strange story. One morning, I woke up and wrote a few lines of code. Then, there came an interesting situation. I need to assign two elements of an array to two variables. There are many ways of achieving this in python. If you're a javascr...

Apr 12, 2022 · 3 min read · maheshchandraregmi.com.np  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#developer](https://hashnode.com/tag/developer)
-   [#software-architecture](https://hashnode.com/tag/software-architecture)

## Written by

[Har Har Mahadev!](https://hashnode.com/@maheshcregmi)

@maheshcregmi · Kathmandu, Nepal

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

Backend | Devops | Cloud | Linux

Devops at Leapfrog Technology Inc.

## Responses 2

Markdown supported · ⌘↵ to post

[Nirdesh pokharel](https://hashnode.com/@realNirdesh)

[Feb 2, 2024](https://hashnode.com/posts/is-unpacking-faster-than-indexing/62554552b32ddd968bbeb21b/comment/65bc96fb36e808d2eed3d206)

Nice information.

[Nirajan Dhakal](https://hashnode.com/@nirajandata)

[Apr 12, 2022](https://hashnode.com/posts/is-unpacking-faster-than-indexing/62554552b32ddd968bbeb21b/comment/62554a8fb32ddd968bbeb2c2)

`Thanks bro`
