Hi there, fellow Machine Learning Junkie!
Ever thought about the languages you wanted to add in to CV? Ever wondered which language would reduce the workload the most in projects and assignments? Well the truth is, there is no clear cut winner out of all the programming/scripting languages out there; each language has its own strengths and weaknesses that identify themselves as unique tools that we use to create a variety of software!
If it's still difficult for you understand this, think of each language as a kind of magic.
C++ could be a more efficient version of the Ancient Magic of C!
The more spells in that field of magic that you know, the bigger your advantage! OR
The more spells you know in DIFFERENT fields of magic, the more flexible you are as a WIZARD HAR- ahem ....as a developer :)
In this post we will now be taking a look at Python and some of the basic tricks that it allows you to do that boasts its flexibility and efficiency.
(Keep note that some of these commands may only work in Python 3 so if you practicing, then I highly recommend you to move to Python 3 instead of an Older Version)
- Unpacking
- Unpacking for swapping variable
- Extended Unpacking
- Negative Indexing
- List Slices (a [start:end])
- List Slices with Negative Indexing
- List Slices with Step (a[start:end:step])
- List Slices with Negative Steps
- List Slice Assignment
- Naming Slices (slice(start,end,step))
- Iterating over List index and value pairs (enumerate)
- Iterating over Dictionary key and value pairs (dict.items)
- Zipping and Unzipping lists and iterables
And there you have it! You now have knowledge to 13 different Python spells to outsmart the beast that stands in your way. Keep in mind that this is but a drop of water in the vast ocean that is Python! But can you master all of them? That is the question.
Look forward to the next post on MORE ADVANCED SPELLS in Python :) !

Thank you for providing this blog really appreciate the efforts taken by you, if you want you can check out
ReplyDeletedata science course in bangalore
data science course