Recent Posts

Unpacking



Python tuples are immutable means that they can not be modified in the whole program. Packing and Unpacking a Tuple: In Python, there is a very powerful tuple assignment feature that assigns right-hand side of values into the left-hand side. In another way, it is called unpacking of a tuple of values into a variable


If we leave like this, it could be a complex formula

Line 2,3 and 4 are the same as line 6..We are going to have the same results..

So we can see the results

We can use unpacking  in List as well




Unpacking Unpacking Reviewed by ohhhvictor on May 07, 2019 Rating: 5

No comments:

Facebook

 photo imagen120.jpg
Theme images by 5ugarless. Powered by Blogger.